WSO2 EI-带有负载均衡器的代理服务

时间:2019-07-23 02:16:15

标签: wso2 wso2esb wso2-am wso2carbon wso2ei

当我需要将负载均衡器放到WSO2 EI 6.5.0上部署的代理服务中时,

我需要使用它来实现集群吗?

1。我在Google文档上找到了以下示例:

       <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

1 个答案:

答案 0 :(得分:0)

请参阅[1]上的文档。提供的博客不包含负载均衡器配置。除此之外,在EI服务器中,我们没有工作人员,管理人员的概念。这是ESB服务器中引入的一个概念,在该服务器中,工作节点为请求提供服务,管理节点用于管理部署的工件。

[1]-https://docs.wso2.com/display/EI650/Clustering+the+ESB+Profile