we'd like to migrate to nginx and want to have the same behaviour as we have at the moment:
We're using the following load balancing setup: Apache mod_jk with AJP connected to JBoss 4.2.3 workers. Installed JKStatusManager to configure worker settings online. Workers have sticky sessions. There is no session replication for session failover.
Unfortunately we cannot enable session replication for session failover because our session state is too big (JSF). We cannot move to client side replication because the session state is too big.
When we need to update the workers we do the following:
- Disable 50% of the workers
- wait about 60 minutes until these workers have 0 clients connected
- update these workers
- enable these workers
- do the same for the other 50%
This is not optimal but it works very well.
Question: is it possible to achieve the same behaviour with nginx? (except AJP connections. We would like to use HTTPS in the backend with nginx-module HttpProxyModule)