Discussion:
[jboss-user] [JBoss Web Services] - restart jboss in "drain" mode
ian diddams
2013-01-17 14:38:08 UTC
Permalink
ian diddams [https://community.jboss.org/people/didds] created the discussion

"restart jboss in "drain" mode"

To view the discussion, visit: https://community.jboss.org/message/792617#792617

--------------------------------------------------------------
Hi all,

we are running jboss-as-7.1.1.Final.

We would like to see if it is possible to stop the jboss instance ...  BUT...  not lose any connected sessions.  That is, say we have 10 sessions connected to our instance.  We want to NOT accept any more connections but serve these 10 until they are completed - or 20 minutes anyway.

So is it possible to tell the jboss instance to stop in 20 minut6es time but not accept any new connections in that time, darining the instance in the interim of existing connections?

cheers

Ian
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/792617#792617]

Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
Alessio Soldano
2013-01-28 11:43:09 UTC
Permalink
Alessio Soldano [https://community.jboss.org/people/asoldano] created the discussion

"Re: restart jboss in "drain" mode"

To view the discussion, visit: https://community.jboss.org/message/794581#794581

--------------------------------------------------------------
I *think* that's not doable, at least wrt WS. I would achieve that by having an additional host (loadbalancer or such) in front of the actual JBoss AS and rejecting new requests on that while letting the AS finish serving already in progress ones.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/794581#794581]

Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
Loading...