WSO2 EI-具有负载平衡器的代理服务
当我需要将负载平衡器放到部署在WSO2 EI 6.5.0上的代理服务时 我需要用它实现集群吗 1。我在文档中找到了以下示例:WSO2 EI-具有负载平衡器的代理服务,wso2,wso2esb,wso2-am,wso2carbon,wso2ei,Wso2,Wso2esb,Wso2 Am,Wso2carbon,Wso2ei,当我需要将负载平衡器放到部署在WSO2 EI 6.5.0上的代理服务时 我需要用它实现集群吗 1。我在文档中找到了以下示例: <loadbalance algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin"> <endpoint> <address uri="service_url (instance21">
<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>
[LOG] Response from service1
[LOG] Response from service2
注意:我希望当我向代理服务发送请求时,如果此服务正忙,它会将即将到来的请求发送到其他节点来处理它
类似这样的内容:
<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>
[LOG] Response from service1
[LOG] Response from service2
请参阅[1]中的文档。提供的日志不包含负载平衡器配置。除此之外,在EI服务器中,我们没有工作者、管理者的概念。这是ESB服务器中引入的一个概念,在ESB服务器中,工作节点为请求提供服务,而管理节点用于管理部署的工件
[1] -请参阅[1]上的文档。提供的日志不包含负载平衡器配置。除此之外,在EI服务器中,我们没有工作者、管理者的概念。这是ESB服务器中引入的一个概念,在ESB服务器中,工作节点为请求提供服务,而管理节点用于管理部署的工件
[1] -无需群集节点以配置负载平衡器。只有在已实现配置(如计划任务、入站端点、消息处理器等)的情况下,才有必要对进行群集。在群集环境中,它们将仅在一个节点中执行。无需对节点进行群集以配置负载平衡器。只有在已实现配置(如计划任务、入站端点、消息处理器等)的情况下,才需要对进行群集。在群集环境中,这些配置将仅在一个节点中执行。