【发布时间】:2019-07-23 02:16:15
【问题描述】:
当我需要将负载均衡器放到部署在 WSO2 EI 6.5.0 上的代理服务时,
我需要用它实现集群吗?
1.我在 Docs 上找到了以下示例:
<loadbalance algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin">
<endpoint>
<address uri="service_url (instance21">
<enableAddressing/>
<suspendOnFailure>
<initialDuration>20000</initialDuration>
<progressionFactor>1.0</progressionFactor>
</suspendOnFailure>
</address>
</endpoint>
<endpoint>
<address uri="service_url (instance2)">
<enableAddressing/>
<suspendOnFailure>
<initialDuration>20000</initialDuration>
<progressionFactor>1.0</progressionFactor>
</suspendOnFailure>
</address>
</endpoint>
</loadbalance>
这是创建 LB 的正确方法吗?
2。我也在下面尝试过:
https://medium.com/@snsavithrik1/wso2-ei-worker-manager-clustering-on-a-single-machine-dae1161bcb78
but i think that is not balancing service load through all proxy It only handles request
it's Manager node, Worker node does nothing
注意: i expect that when i send request to proxy services, if this service is busy, it sends coming requests to other node to handling it
类似这样的:
[LOG] Response from service1
[LOG] Response from service2
【问题讨论】:
标签: wso2 wso2esb wso2-am wso2carbon wso2ei