1

如果我有多个网关工作节点,我该如何配置 GatewayEndpoint?

我阅读了setup gateway endpoint的帖子,这种情况下只有一个网关工作节点。在 WSO2 集群之前我也有 nginx 节点,所以我们还需要在商店中向最终用户显示最终端点 URL。对于 ServerURL,我可以将其配置为 url:“ https://mgt.gw.devzone.com/services/ ”。

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

1 回答 1

0

是的,对于ServerURL,您应该指向GW Manager节点。指定 GW 工作人员 URL 时,您需要指向 NginX。您在此处包含的 GatewayEndpoint 应该解析为 NginX,并且 NginX 将在工作节点之间对请求进行负载平衡。您在此处添加的 URL 将显示在 API Store 中。

于 2016-08-29T02:15:46.967 回答