WSO2 API Manager网关集群无法正常工作

时间:2017-05-16 05:52:31

标签: wso2 wso2-am

我按照本指南配置网关集群:https://docs.wso2.com/display/AM210/Clustering+the+Gateway

172.19.28.71:网关管理器主机 172.19.28.84:网关工作人员主持人

网关管理器axis2.xml:

<clustering class="org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent"
                enable="true">
        <parameter name="membershipScheme">wka</parameter>
        <parameter name="domain">wso2.am.internal.domain</parameter>
        <parameter name="localMemberHost">172.19.28.71</parameter>
        <parameter name="localMemberPort">4500</parameter>
        <members>
            <member>
                  <hostName>172.19.28.71</hostName>
                  <port>4500</port>
            </member>
            <member>
                  <hostName>172.19.28.84</hostName>
                  <port>4200</port>
            </member>
        </members>

Gateway Worker axis2.xml:

<clustering class="org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent"
                enable="true">
    <parameter name="membershipScheme">wka</parameter>
    <parameter name="domain">wso2.am.internal.domain</parameter>
    <parameter name="localMemberHost">172.19.28.84</parameter>
    <parameter name="localMemberPort">4200</parameter>
    <members>
        <member>
              <hostName>172.19.28.71</hostName>
              <port>4500</port>
        </member>
        <member>
              <hostName>172.19.28.84</hostName>
              <port>4200</port>
        </member>
    </members>

Publiser和Store api-manager.xml:

    <Environment type="hybrid" api-console="true">
        <Name>Internal</Name>
        <Description>This is a hybrid gateway that handles both production and sandbox token traffic.</Description>
        <ServerURL>https://172.19.28.71:9443/services/</ServerURL> 
        <Username>${admin.username}</Username>
        <Password>${admin.password}</Password>
 <GatewayEndpoint>http://172.19.28.84:8280,https://172.19.28.84:8243</GatewayEndpoint>
    </Environment>

但是当我在API控制台(网关工作者网址:https://172.19.28.84:8243/pizzashack/3.0.0)中进行测试时,没有任何响应,以下是网关工作人员的日志: < / p>

[2017-05-16 10:15:57,996]  INFO {org.apache.synapse.mediators.builtin.LogMediator} -  STATUS = Message dispatched to the main sequence. Invalid URL., RESOURCE = /pizzashack/3.0.0/menu {org.apache.synapse.mediators.builtin.LogMediator}

网关管理员网址(172.19.28.71:8243/pizzashack/3.0.0)正在运行。

1 个答案:

答案 0 :(得分:0)

您需要在网关之间启用SVN based deployment synchronizer。否则,pizzashack API将无法部署在所有网关中。