-
1. Re: Server Suspend Mode allowing new requests with started session - graceful draining of sessions without a load balancer
ctomc Aug 24, 2015 6:43 AM (in response to jjakub)how do you shutdown / suspend the server?
to use new graceful shutdown you need to pass timeout parameter to :shutdown or :suspend operations, without it it wont do it grecefuly
-
2. Re: Server Suspend Mode allowing new requests with started session - graceful draining of sessions without a load balancer
jjakub Aug 24, 2015 6:56 AM (in response to ctomc)I haven't tested it yet, I want to know in theory, but assuming I pass timeout of 2 hours, will it allow new requests from client that already have session on this node ?
If yes, if it will allow new requests with session on this node, than this is what I need, but from description, I think it will not allow any new requests at all:
Previously, in order to achieve graceful draining of sessions/requests, a load balancer was required. The new server suspend mode in WildFly, once activated rejects new requests but allows old ones to complete.
but than there still is a problem of graceful draining of sessions not only previously, but also in WildFly9, so this advertising description would be misleading.
-
3. Re: Server Suspend Mode allowing new requests with started session - graceful draining of sessions without a load balancer
ctomc Aug 24, 2015 7:52 AM (in response to jjakub)1 of 1 people found this helpfulif you are interested in theory then you should read design documents on this subject
Wildfly suspend and resume (aka graceful shutdown)
https://docs.jboss.org/author/display/WFLY9/Suspend,+Resume+and+Graceful+shutdown
-
4. Re: Server Suspend Mode allowing new requests with started session - graceful draining of sessions without a load balancer
pferraro Aug 24, 2015 7:57 AM (in response to jjakub)1 of 1 people found this helpfulServer suspend does not work this way. Suspending a server rejects *all* new requests and waits for requests that have already been received to complete. There is no exception case for web requests for existing sessions.
At present, true session draining be achieved via mod_cluster, but this operates completely outside of the deployment/shutdown mechanism;