Wso2 WS02 ESB GREG:远程实例和装载配置

Wso2 WS02 ESB GREG:远程实例和装载配置,wso2,wso2esb,wso2greg,Wso2,Wso2esb,Wso2greg,这是我在ESB4.9.0上的注册表,指向我的Greg5.2.0实例 <dbConfig name="remote_registry"> <dataSource>jdbc/WSO2CarbonDB_GREG</dataSource> </dbConfig> <remoteInstance url="https://y.y.y.46:9445/registry"> <id>gregid</id>

这是我在ESB4.9.0上的注册表,指向我的Greg5.2.0实例

<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>regadmin@jdbc: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>

jdbc/WSO2Carbond b_GREG
格雷吉德
远程注册
regadmin@jdbc:mysql://x.x.x.45:3306/governancedb
真的
真的
/
格雷吉德
/_系统/治理
没有错误,但被简单忽略,注册表是本地的 如果我像那样改变挂载点

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

格雷吉德
/_系统/治理
一切正常。 这是一种预期的行为,而我在这里遗漏了什么


TIA

您的配置看起来很好

因为我们已经从config挂载了所有治理注册表

<mount path="/_system/governance" overwrite="true">
        <instanceId>gregid</instanceId>
        <targetPath>/_system/governance</targetPath>
</mount>
欲了解更多信息,请浏览以下帖子

补充阅读


请确保registry.xml中的/u system/governance没有重复的装载配置部分。

[SOLVED]

我确实忽略了原因,但我检查了系统/本地注册表

/_system/local/repository/components/org.wso2.carbon.registry/mount/-_system-governance
并注意到,在属性中,target指向旧值“instanceid”

手动纠正,现在一切正常

下面是我的ansible模板中的Correspondent位

<remoteInstance url="https://{{ greg_ip }}:{{ greg_carbon_port }}/registry">
    <id>gregid</id>
    <dbConfig>remote_registry</dbConfig>
    <cacheId>regadmin@jdbc:mysql://{{ mysql_db }}:3306/governancedb</cacheId>
    {% if  'WKR' in group_names %}
    <readOnly>true</readOnly>
    {% else %}
    <readOnly>false</readOnly>
    {% endif %}
    <enableCache>true</enableCache>
    <registryRoot>/</registryRoot>
</remoteInstance>

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

格雷吉德
远程注册
regadmin@jdbc:mysql://{mysql_db}}:3306/governancedb
{%if'WKR'在组_names%}
真的
{%else%}
假的
{%endif%}
真的
/
格雷吉德
/_系统/治理

如果下面的答案对您没有帮助,请告诉我。您好@thusharaK谢谢您的回答。不幸的是,第一次装载对我不起作用。它只在我指定的装载路径不同于\u system/governance时起作用。您说它不起作用是什么意思?请分享错误信息。@thusharaK我的意思是_system/governance是本地的,而不是greg中的那一个在日志TID:[-1234][[2016-06-27 13:41:19229]INFO{org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent}-写入日志{org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent}}TID:[-1234]][2016-06-27 13:41:38481]INFO{org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent}-注册表模式:读写{org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent}TID:[-1234][[2016-06-27 13:41:54096]INFO{org.wso2.carbon.registry.eventing.internal.RegistryEventingServiceComponent}-已成功在注册表{org.wso2.carbon.Registry.Eventing.internal.RegistryEventingServiceComponent}上初始化事件。我没有任何重复项:(然后,尝试删除repository/databases/folder中的h2数据库,并使用“/wso2server.sh-Dsetup”命令启动服务器。
<remoteInstance url="https://{{ greg_ip }}:{{ greg_carbon_port }}/registry">
    <id>gregid</id>
    <dbConfig>remote_registry</dbConfig>
    <cacheId>regadmin@jdbc:mysql://{{ mysql_db }}:3306/governancedb</cacheId>
    {% if  'WKR' in group_names %}
    <readOnly>true</readOnly>
    {% else %}
    <readOnly>false</readOnly>
    {% endif %}
    <enableCache>true</enableCache>
    <registryRoot>/</registryRoot>
</remoteInstance>

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