我正在尝试配置网关集群(1 个管理器,2 个带有 Nginx 的工作人员)。
网关集群指南给了我很多帮助,但实际上还不够。文件的某些部分让我感到困惑,所以我不确定它是否朝着正确的方向前进。请使用下面的概览图检查我的配置。
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;
}
}
* 商店、出版商、密钥管理器设置
每个 api-manager.xml 文件 (/repository/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 文件 (/repository/conf/)
<HostName>???</HostName> <!-- should be nginx host? worker host?-->
<MgtHostName>???</MgtHostName> <!-- should be nginx host? or manager node? -->
网关工作节点设置
carbon.xml 文件 (/repository/conf/)
<HostName>???</HostName> <!-- should be nginx host? or worker node? -->
<MgtHostName>???</MgtHostName> <!-- should be nginx host? or manager node? -->
任何评论都会对我有所帮助。
感谢和问候