2016-10-04 27 views
0

我有一個ESB 4.9.0和5.2.0格雷格WS02 ESB GREG:遠程實例,並在集羣安裝配置在我的實驗室

<dbConfig name="remote_registry"> 
     <dataSource>jdbc/WSO2CarbonDB_GREG</dataSource> 
</dbConfig> 

<remoteInstance url="https://y.y.y.46:9445/registry"> 
    <id>gregid</id> 
    <dbConfig>remote_registry</dbConfig> 
    <cacheId>[email protected]:mysql://x.x.x.45:3306/governancedb</cacheId> 
     <readOnly>true</readOnly> 
     <enableCache>true</enableCache> 
    <registryRoot>/</registryRoot> 
</remoteInstance> 

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

現在我已經創建了兩個集羣,格雷格之間的這種設置一個(在前面的greg.my.cluster中有一個LB)和一個MGR(mgt-esb.my.cluster)和兩個工人(esb.my.cluster)

我的問題是:如何配置ESB實例? 我認爲

<remoteInstance url="https://y.y.y.46:9445/registry">

成爲

<remoteInstance url="https://greg.my.cluster/registry">

,但把它放在哪裏? 只能在ESB MGR上重現該conf嗎?只有工人?還是在他們三個?

預先感謝您

回答

0

既然你有一個JDBC安裝,remoteInstance應設置爲在carbon.xml文件中的主機名值。

舉個例子,如果您已經定義了主機名governance.wso2.com和服務器與2端口偏移運行時,remoteInstance URL應該是:

<remoteInstance url="https://governance.wso2.com:9445/registry"> 
+0

感謝@chandana –

+0

您可能還回答主要問題? –

+0

這個remoteInstance是G-Reg節點必須的。但是,最好將它配置爲esb mgt和worker節點。 – Chandana