【问题标题】:WSO2 EI - Proxy Services with Load BalancerWSO2 EI - 带负载均衡器的代理服务
【发布时间】: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


    【解决方案1】:

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

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

    【讨论】:

    • 不需要集群节点来配置负载均衡器。如果您已经实现了计划任务、入站端点、消息处理器等配置,则只需要集群。在集群环境中,它们将仅在一个节点中执行。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多