27.5.3. Configure Multiple Site Masters (Library Mode)


To configure multiple site masters in Red Hat JBoss Data Grid's Library Mode:

Procedure 27.5. Configure Multiple Site Masters (Library Mode)

  1. Configure Cross-Datacenter Replication

    Configure Cross-Datacenter Replication in JBoss Data Grid. Use the instructions in Section 27.3.2.1, “Configure Cross-Datacenter Replication Declaratively” for an XML configuration or the instructions in Section 27.3.2.2, “Configure Cross-Datacenter Replication Programmatically” for a programmatic configuration.
  2. Add the Contents of the Configuration File

    Add the can_become_site_master and max_site_masters parameters to the configuration as follows:
    <config> 
        ... 
        <relay.RELAY2 site="LON" 
                  config="relay.xml" 
                  relay_multicasts="false"
                  can_become_site_master="true" 
                  max_site_masters="16"/>
    </config>
    
    Set the max_site_masters value to the number of nodes in the cluster to make all nodes masters.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat Documentation

Legal Notice

Theme

© 2026 Red Hat
Back to top