Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-7326

Enable domain sites to be created from a single profile

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Major
    • None
    • None
    • Server
    • None

    Description

      In domain mode, it should be possible to start two nodes, each belonging to a different site and get them to join the inter-site cluster providing a single profile.

      To be able to do that, the following needs to happen:

      • A cache's backup site name needs to be able to be defined via a system property, e.g.
                <backups>
                  <backup site="${test.site.local.name:NA}" strategy="SYNC"/>
                </backups>
      
      • A jgroup stack's relay remote site name needs to be able to be defined via a system property, e.g.
                <relay site="${test.site.local.name:NA}">
                  <remote-site name="${test.site.remote.name:NA}" channel="xsite"/>
                </relay>
      

      With these changes, it should be possible to define a single profile, and then override site local and remote names via system properties, e.g.

              <server-group name="site-earth" profile="clustered">
                  <jvm name="default">
                      <heap size="64m" max-size="512m"/>
                      <jvm-options>
                          <option value="-Djgroups.join_timeout=1000"/>
                          <option value="-Djboss.default.multicast.address=234.99.74.14"/>
                          <option value="-Dtest.site.local.name=EARTH"/>
                          <option value="-Dtest.site.remote.name=MOON"/>
                      </jvm-options>
                  </jvm>
                  <socket-binding-group ref="xsite-sockets"/>
              </server-group>
              <server-group name="site-moon" profile="clustered">
                  <jvm name="default">
                      <heap size="64m" max-size="512m"/>
                      <jvm-options>
                          <option value="-Djgroups.join_timeout=1000"/>
                          <option value="-Djboss.default.multicast.address=234.99.74.24"/>
                          <option value="-Dtest.site.local.name=MOON"/>
                          <option value="-Dtest.site.remote.name=EARTH"/>
                      </jvm-options>
                  </jvm>
                  <socket-binding-group ref="xsite-sockets"/>
              </server-group>
      

      Right now no system property substitution happens for the elements above and hence it's not possible to achieve this with a single profile. Instead, profiles need to be duplicated making it hard to maintain.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rh-ee-galder Galder ZamarreƱo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: