2016-08-23 10 views
0

私はクラスタ化されたAPIのマネージャーを5台の仮想マシンと2.0.0のインストールを展開しています:んのAPI - WSO2 APIマネージャ2.0.0

VM1 は鍵マネージャ+分析ノードを共有しない:

/var/wso2am/bin/wso2server.sh -Dprofile = API鍵マネージャとデフォルトのポートを使用して実行
  • wso2am分析を実行
    • 専用キーマネージャは/ VAR/wso2am-分析/ビンによって(+1)をオフセット/wso2server.sh

    VM2

    デフォルトで実行する専用ゲートウェイノードオフセット(+0)/var/wso2am/bin/wso2server.sh -Dprofile =ゲートウェイマネージャによって

    VM3

    /var/wso2am/var/wso2am/bin/wso2server.sh -Dprofile = api-storeによってデフォルトのオフセット(+0)で実行される専用ストアノード。

    V M4デフォルトで実行

    専用トラフィック・マネージャ・ノードは/var/wso2am/bin/wso2server.sh -Dprofile =トラフィックマネージャ

    VM5

    専用パブリッシャノード実行して(+0)オフセットデフォルトで私はClustering API Manager 2.0.0

    I s内のすべてのステップを完了し/var/wso2am/bin/wso2server.sh -Dprofile = API-出版社

    によって(0)オフセットVM3とVM5を持つ2つのクラスタノードがあり、storeノードとpublisherノードの両方で/ _system/governance/apimgt/applicationdataレジストリが表示されます。 私は、店舗カーボン管理インターフェース(メタデータ - >リスト> API)のパブリッシャーノードで作成されたAPIを閲覧することもできます。

    しかし、VM3の専用店頭(「VM3/store」)ではAPIは表示されません。同じ時間で

    私はパブリッシャノードの「VM5 /ストア」ページを開きますならば、私は何をチェックする必要があり、公開APIにうまく

    を見ることができるのですか?

    UPD:

    APIはそれはそれに応じて更新されていない「作成」間違ったライフサイクルステータスを持つストアのノードにプッシュされます。ストアノードでLifecycle Statusを手動で変更しようとしましたが、APIはストアモードで正常に公開されています。

    したがって、ストアノードのライフサイクルステータスのライブアップデートに問題があるようです。どうすれば修正できますか?

    UPD2:ここ

    が店に私のaxis2.xmlをコンフィグある(IPはx.x.x.ですここでは15)

    <clustering class="org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent" 
           enable="true"> 
        <parameter name="membershipScheme">wka</parameter> 
        <parameter name="domain">wso2.carbon.domain</parameter> 
        <parameter name="localMemberHost">x.x.x.15</parameter> 
        <parameter name="localMemberPort">4000</parameter> 
         <members> 
          <member> 
           <hostName>x.x.x.17</hostName> 
           <port>4000</port> 
          </member> 
          <member> 
           <hostName>x.x.x.15</hostName> 
           <port>4000</port> 
          </member>    
         </members> 
    

    `

    パブリッシャ上の私のaxis2.xmlをコンフィグある(IPは店舗ログファイルにxxx17)

    <clustering class="org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent" 
           enable="true"> 
        <parameter name="membershipScheme">wka</parameter> 
        <parameter name="domain">wso2.carbon.domain</parameter> 
        <parameter name="localMemberHost">x.x.x.17</parameter> 
        <parameter name="localMemberPort">4000</parameter> 
    
         <members> 
          <member> 
           <hostName>x.x.x.15</hostName> 
           <port>4000</port> 
          </member> 
          <member> 
           <hostName>x.x.x.17</hostName> 
           <port>4000</port> 
          </member>    
         </members> 
    

    メッセージ

    Cluster domain: wso2.carbon.domain 
        Loading hazelcast configuration from axis2 clustering configuration 
        Using wka based membership management scheme 
        Added member: Host:x.x.x.17, Remote Host:null, Port: 4000, HTTP:-1, HTTPS:-1, Domain: null, Sub-domain:null, Active:true 
        Added member: Host:x.x.x.15, Remote Host:null, Port: 4000, HTTP:-1, HTTPS:-1, Domain: null, Sub-domain:null, Active:true 
        Hazelcast initialized in 9167ms 
        Local member: [3c9c1b66-9ad9-4e4f-8d7e-de2864e8d56d] - Host:x.x.x.15, Remote Host:null, Port: 4000, HTTP:8280, HTTPS:8243, Domain: wso2.carbon.domain, Sub-domain:worker, Active:true 
        Cluster initialization completed 
        Task service starting in CLUSTERED mode... 
        Successfully Initialized Eventing on Registry 
    

    メッセージでありますサイト運営者ログファイル

    Cluster domain: wso2.carbon.domain 
    Loading hazelcast configuration from axis2 clustering configuration 
    Using wka based membership management scheme 
    Added member: Host:x.x.x.15, Remote Host:null, Port: 4000, HTTP:-1, HTTPS:-1, Domain: null, Sub-domain:null, Active:true 
    Added member: Host:x.x.x.17, Remote Host:null, Port: 4000, HTTP:-1, HTTPS:-1, Domain: null, Sub-domain:null, Active:true 
    Hazelcast initialized in 10380ms 
    Local member: [094f544b-1cfe-41b1-9a5f-0664aefc1ba5] - Host:x.x.x.17, Remote Host:null, Port: 4000, HTTP:8280, HTTPS:8243, Domain: wso2.carbon.domain, Sub-domain:worker, Active:true 
    Cluster initialization completed 
    Error in instantiating class : org.wso2.carbon.apimgt.usage.publisher.APIMgtThrottleUsageHandler 
    Sequence Deployment from the file : /var/wso2am/repository/deployment/server/synapse-configs/default/sequences/_throttle_out_handler_.xml : Failed. 
    Deployment of the Synapse Artifact from file : /var/wso2am/repository/deployment/server/synapse-configs/default/sequences/_throttle_out_handler_.xml : Failed! 
    The file has been backed up into : NO_BACKUP_ON_WORKER.INFO 
    Deployment of synapse artifact failed. Error reading /var/wso2am/repository/deployment/server/synapse-configs/default/sequences/_throttle_out_handler_.xml : Sequence Deployment from the file : /var/wso2am/repository/deployment/server/synapse-configs/default/sequences/_throttle_out_handler_.xml : Failed. 
    org.apache.axis2.deployment.DeploymentException: Sequence Deployment from the file : /var/wso2am/repository/deployment/server/synapse-configs/default/sequences/_throttle_out_handler_.xml : Failed. 
    Error in instantiating class : org.wso2.carbon.apimgt.usage.publisher.APIMgtFaultHandler 
    Sequence Deployment from the file : /var/wso2am/repository/deployment/server/synapse-configs/default/sequences/fault.xml : Failed. 
    Deployment of the Synapse Artifact from file : /var/wso2am/repository/deployment/server/synapse-configs/default/sequences/fault.xml : Failed! 
    The file has been backed up into : NO_BACKUP_ON_WORKER.INFO 
    Deployment of synapse artifact failed. Error reading /var/wso2am/repository/deployment/server/synapse-configs/default/sequences/fault.xml : Sequence Deployment from the file : /var/wso2am/repository/deployment/server/synapse-configs/default/sequences/fault.xml : Failed. 
    org.apache.axis2.deployment.DeploymentException: Sequence Deployment from the file : /var/wso2am/repository/deployment/server/synapse-configs/default/sequences/fault.xml : Failed. 
    Task service starting in CLUSTERED mode... 
    Successfully Initialized Eventing on Registry 
    
  • 答えて

    0

    これには2つの理由があります。

    1)軸2.xmlの<localMemberHost>とセクションのホスト名を使用する。代わりにIPを使用してください。

    2)axis2.xmlを

    更新<parameter name="domain">wso2.carbon.domain</parameter>のための店や出版社で同じ値を持っていない: 添付の構成は罰金に見えます。もう一つの可能​​性は、これがレジストリのインデックス作成の問題だということです。そのために、再索引付けを試すことができます。

    このように店舗ノードにregistry.xmlという値を更新し、サーバーを再起動します。

    <lastAccessTimeLocation>/_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime2</lastAccessTimeLocation> 
    
    +0

    私はconfigsとログでトピックを更新しました。間違いを起こす可能性がありますか?更新された回答 –

    +0

    。 – Bee

    +0

    ここで、 'registry.xml 'の設定は です。 このURLはどのような点を指摘すべきですか? 9443ポートでローカルIPを設定する必要がありますか、443ポートでパブリックDNS名を設定する必要があります(正面に逆NGINXがあります)。 –

    関連する問題