ゲートウェイのクラスタリングを設定しようとしています(1人のマネージャー、2人のNginx担当者)。WSO2 API Managerクラスタリング>このモデルを動作させるにはどうすれば設定できますか?
ゲートウェイクラスタリングガイドは私に多くの助けをもたらしましたが、実際は十分ではありませんでした。 文書の中には混乱してしまったので、目標に向かうのが正しいかどうかはわかりません。私の設定を下の画像で確認してください。
nginxのhttps.confという設定
upstream wso2.am.com {
sticky cookie JSESSIONID;
server xxx.xxx.xxx.22:9443; <!-- worker node 1 -->
server xxx.xxx.xxx.33:9443; <!-- worker node 2 -->
}
server {
listen 443;
server_name nginx.wso2.com;
location/{
...
proxy_pass http://wso2.am.com;
}
}
*店、出版社は、のKeyManagerが設定
各API-manager.xmlファイル(/リポジトリ/ confに/)
<APIGateway>
...
<ServerURL>https://xxx.xxx.xxx.x11:9444/services/</ServerURL>
...
<!-- Does this endpoint work? I received nothing through this setting -->
<GatewayEndpoint>http://nginx.wso2.com, https://nginx.wso2.com</GatewayEndpoint>
...
ゲートウェイマネージャノードの設定
特に、以下の設定は最も混乱します。
carbon.xmlファイル(/リポジトリ/ CONF /)
<HostName>???</HostName> <!-- should be nginx host? worker host?-->
<MgtHostName>???</MgtHostName> <!-- should be nginx host? or manager node? -->
carbon.xmlファイル(/リポジトリ/ CONF /)
<HostName>???</HostName> <!-- should be nginx host? or worker node? -->
<MgtHostName>???</MgtHostName> <!-- should be nginx host? or manager node? -->
任意のコメントを設定
ゲートウェイワーカーノード私のために役立つだろう。
ありがとうございます。