简体   繁体   English

程序环境中的WSO2应用程序实例ID

[英]WSO2 application instance ID in program environment

I am developing an application service based on WSO2 AS. 我正在开发基于WSO2 AS的应用程序服务。 my intention is that the application should be deployed in an AS-cluster in order to cope with the high volume traffic. 我的意图是应将应用程序部署在AS群集中,以应对大量流量。

the cluster should be a dynamic one in order to scale up or down as per the traffic changes. 群集应为动态群集,以便根据流量变化进行扩展或缩减。

also, a user's service might persist in one of the instances for quite some time; 同样,用户的服务可能会在其中一个实例中保留相当长的一段时间; in case of failure, a user's service should be restored in a peer instance by the backup and restore mechanism of an object archive(database). 万一发生故障,应通过对象归档(数据库)的备份和还原机制在对等实例中还原用户的服务。

So, the challenge is: 因此,挑战在于:

I need to tell the load balancer something about the instance in which the user service persists. 我需要告诉负载均衡器有关用户服务持续存在的实例的信息。 so that the load balancer will always route the same user's requests to the same instance in the cluster. 这样负载平衡器将始终将同一用户的请求路由到集群中的同一实例。 and in case of failure, I could update the load balancer with the new instance in which the user's service had been restored. 并且在发生故障的情况下,我可以使用已还原用户服务的新实例来更新负载均衡器。

preferably it could be something that could be generated dynamically by a application server instance; 最好是可以由应用服务器实例动态生成的东西; accessible in the program environment; 在程序环境中可访问; understood and used by the load balancer to route request... 负载均衡器理解并用于路由请求...

anyone has any idea? 有人有什么主意吗?

thanks a lot 非常感谢

After googling around for some time. 谷歌搜索一段时间后。 I found an alternative which WSO2 claimed supporting( http://wso2.com/products/elastic-load-balancer/ ). 我找到了WSO2声称支持的替代方法( http://wso2.com/products/elastic-load-balancer/ )。

NGinx Plus comes with a feature named Session Persistence ( https://www.nginx.com/products/session-persistence/ ) which provides methods directing load balancer of its routing of incoming requests to a specific back end server NGinx Plus带有一个称为会话持久性(Session Persistence)的功能( https://www.nginx.com/products/session-persistence/ ),该功能提供了将负载均衡器将传入请求路由到特定后端服务器的方法

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM