이 콘텐츠는 선택한 언어로 제공되지 않습니다.

15.5. Governance and S-RAMP in a Clustered Environment


In a clustered environment, it is recommended to have a dedicated runtime governance server separate from the execution servers. In this case, all execution servers connect to the governance server via the runtime governance client.
Depending upon the load of the runtime governance server, it may be necessary to set up a cluster of governance servers as well. If you have a cluster of runtime governance servers, then they only need to connect to the same database instance. However, it is also possible to configure each runtime governance server to have its own S-RAMP database. The JBoss Fuse installer configures all components to use the same database by default so that runtime governance and S-RAMP share the same database instance. However, this is not mandatory.

Procedure 15.1. Configuring Governance and S-RAMP in a Clustered Environment

Perform the following steps on all servers in the cluster. Please note that this is just one of several possible configurations of governance components in a clustered environment.
  1. Add the <distributable/> entry inside the <web-app> element of the following web.xml files:
    • standalone/deployments/s-ramp-server.war/WEB-INF/web.xml
    • standalone/deployments/s-ramp-ui.war/WEB-INF/web.xml
    • standalone/deployments/dtgov.war/WEB-INF/web.xml
    • standalone/deployments/dtgov-ui.war/WEB-INF/web.xml
    • standalone/deployments/overlord-commons-idp.war/WEB-INF/web.xml
    • standalone/deployments/overlord-rtgov/gadget-web.war/WEB-INF/web.xml
    • standalone/deployments/overlord-rtgov/gadgets.war/WEB-INF/web.xml
    • standalone/deployments/overlord-rtgov/overlord-rtgov.war/WEB-INF/web.xml
  2. Add the <replication-config> entry:
    <replication-config>
      <cache-name>web/sso</cache-name>
    </replication-config>
    Copy to Clipboard Toggle word wrap
    inside the <jboss-web> element of the following jboss-web.xml files:
    • standalone/deployments/s-ramp-server.war/WEB-INF/jboss-web.xml
    • standalone/deployments/s-ramp-ui.war/WEB-INF/jboss-web.xml
    • standalone/deployments/dtgov.war/WEB-INF/jboss-web.xml
    • standalone/deployments/dtgov-ui.war/WEB-INF/jboss-web.xml
    • standalone/deployments/overlord-commons-idp.war/WEB-INF/jboss-web.xml
    • standalone/deployments/overlord-rtgov/gadget-web.war/WEB-INF/jboss-web.xml
    • standalone/deployments/overlord-rtgov/gadgets.war/WEB-INF/jboss-web.xml
    • standalone/deployments/overlord-rtgov/overlord-rtgov.war/WEB-INF/jboss-web.xml
  3. Configure the ModeShape and Infinispan subsystems, and the jGroups TCP Stack in the standalone/configuration/standalone-ha.xml file as in the following code sample:
    <!-- Infinispan subsystem configuration -->
    
    <cache-container name="modeshape" module="org.modeshape"
      start="EAGER">
      <transport lock-timeout="60000" />
      <replicated-cache name="sramp" mode="SYNC" batching="true">
        <locking isolation="NONE" />
        <transaction mode="NON_XA" />
        <string-keyed-jdbc-store datasource="java:jboss/datasources/srampDS"
          passivation="false" purge="false">
          <string-keyed-table prefix="ispn_bucket">
            <id-column name="id" type="VARCHAR(500)" />
            <data-column name="datum" type="VARBINARY(60000)" />
            <timestamp-column name="version" type="BIGINT" />
          </string-keyed-table>
        </string-keyed-jdbc-store>
      </replicated-cache>
    </cache-container>
    <cache-container name="modeshape-binary-cache-container"
      aliases="modeshape-binary-cache" module="org.modeshape">
      <transport lock-timeout="60000" />
      <replicated-cache name="sramp-binary-fs" mode="SYNC"
        batching="true">
        <transaction mode="NON_XA" />
        <file-store relative-to="jboss.server.data.dir"
          path="modeshape/binary-store/sramp-binary-data-${jboss.node.name}"
          passivation="false" purge="false" />
      </replicated-cache>
    </cache-container>
    
    <!-- ModeShape subsystem configuration -->
    
    <subsystem xmlns="urn:jboss:domain:modeshape:1.0">
      <repository name="sramp" cache-name="sramp" cache-container="modeshape"
        security-domain="overlord-idp" anonymous-roles="readonly"
        cluster-name="sramp-cluster" cluster-stack="tcp">
        <indexing rebuild-upon-startup="if_missing" />
        <local-file-index-storage
          path="modeshape/clustered-repo/${jboss.node.name}_indexes" />
        <cache-binary-storage data-cache-name="binary-fs"
          metadata-cache-name="binary-fs-meta" cache-container="modeshape-binary-cache-container" />
      </repository>
    </subsystem>
    
    <!-- jgroups tcp stack configuration -->
    
    <subsystem xmlns="urn:jboss:domain:jgroups:1.1" default-stack="udp">
      ...
      <stack name="tcp">
      ...
        <protocol type="TCPPING">
          <property name="initial_hosts">0.0.0.0[7600],0.0.0.0[7600]</property>
          <property name="num_initial_members">2</property>
          <property name="port_range">0</property>
          <property name="timeout">2000</property>
        </protocol>
      </stack>
    </subsystem>
    Copy to Clipboard Toggle word wrap
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat