2016-04-08 9 views
0

2ノードのWSO2 IS 5.1クラスタをデプロイしました。セカンダリユーザストアをノードの1つに追加すると、設定はそのノードのファイルシステムに保存されます。もう一方のノードには、追加されたセカンダリ・ユーザーストアに関する詳細は表示されません。すべてのファイルシステムベースの設定がクラスタ内のノード間で複製されるように設定するにはどうすればよいですか?WSO2アイデンティティ・サーバー・クラスタ内の2次ユーザー・ストア構成をレプリケート

レジストリベースのdepSyncを使用する必要がありますか?私は共有の設定とガバナンスのためのjdbcベースのレジストリをセットアップしようとしましたが、私はまだ二次的なユーザストア設定の複製が表示されません。

マイregistry.xmlの各ノードのcarbon.xmlで

<wso2registry> 
<currentDBConfig>wso2registry</currentDBConfig> 
<readOnly>false</readOnly> 
<enableCache>true</enableCache> 
<registryRoot>/</registryRoot> 

<dbConfig name="wso2registry"> 
    <dataSource>jdbc/WSO2LocalRegistry</dataSource> 
</dbConfig> 

<dbConfig name="sharedregistry"> 
    <dataSource>jdbc/WSO2RegistryDB</dataSource> 
</dbConfig> 

    <handler class="org.wso2.carbon.identity.entitlement.policy.finder.registry.RegistryPolicyHandler"> 
     <filter class="org.wso2.carbon.identity.entitlement.policy.finder.registry.RegistryPolicyMediaTypeMatcher"> 
      <property name="mediaType">application/xacml-policy+xml</property> 
     </filter> 
    </handler> 

<remoteInstance url="https://localhost:9443/registry"> 
    <id>instanceid</id> 
    <dbConfig>sharedregistry</dbConfig> 
    <readOnly>false</readOnly> 
    <enableCache>true</enableCache> 
    <registryRoot>/</registryRoot> 
</remoteInstance> 

<mount path="/_system/config" overwrite="true"> 
    <instanceId>instanceid</instanceId> 
    <targetPath>/_system/config</targetPath> 
</mount> 

<mount path="/_system/governance" overwrite="true"> 
    <instanceId>instanceid</instanceId> 
    <targetPath>/_system/governance</targetPath> 
</mount> 

<versionResourcesOnChange>false</versionResourcesOnChange> 

<staticConfiguration> 
    <versioningProperties>true</versioningProperties> 
    <versioningComments>true</versioningComments> 
    <versioningTags>true</versioningTags> 
    <versioningRatings>true</versioningRatings> 
</staticConfiguration> 
</wso2registry> 

<!-- Deployment Synchronizer Configuration. Uncomment the following section when running with "registry based" dep sync. 
    In master nodes you need to set both AutoCommit and AutoCheckout to true 
    and in worker nodes set only AutoCheckout to true. 
--> 
<DeploymentSynchronizer> 
    <Enabled>true</Enabled> 
    <AutoCommit>true</AutoCommit> 
    <AutoCheckout>true</AutoCheckout> 
</DeploymentSynchronizer> 
+0

をチェックしましたか?そうでない場合は設定上の問題があります。 – Ushani

答えて

0

あなたは(あなたが複数のテナントを持っている場合<IS_HOME>/repository/tenants/フォルダ)<IS_HOME>/repository/deployment/server/フォルダ内のファイルを同期する必要があります適切なISクラスターに入れてください。

ISにはデプロイメントシンクロナイザと呼ばれる機能が組み込まれています。あなたはそれを設定するために正確な詳細について[1]を参照することができます。

[1]あなたはDEP同期が動作するかどうかhttps://docs.wso2.com/display/Cluster/SVN-based+Deployment+Synchronizer

よろしく、

+0

jdbcレジストリベースの同期を使用しようとしましたが、動作させることができませんでした – naresh

+0

レジストリベースの同期が廃止されました。したがって、svnベースのdep同期やrsyncのような他のファイル同期機構で試してみるのが良いでしょう。 – DarRay

関連する問題