简体   繁体   中英

WSO2 application instance ID in program environment

I am developing an application service based on WSO2 AS. my intention is that the application should be deployed in an AS-cluster in order to cope with the high volume traffic.

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/ ).

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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