[jboss-dev-forums] [JBoss AS7 Development] - Process Manager

Kabir Khan do-not-reply at jboss.com
Fri Aug 13 13:54:00 EDT 2010


Kabir Khan [http://community.jboss.org/people/kabir.khan%40jboss.com] replied to the discussion

"Process Manager"

To view the discussion, visit: http://community.jboss.org/message/557357#557357

--------------------------------------------------------------
> Brian Stansberry wrote:
> 
> > David Lloyd wrote:
> > 
> > Might be easier to use specific exit values: 0 means shut down on purpose, anything else means crash?
> 
> That certainly seems simpler.  :) 
> 
> > Either way the SM should be notified if a Server exits, regardless of the cause: if the server is not configured to be shut down but it returns 0, the SM needs to kick it back alive again.  Also the same respawn logic has to apply; otherwise a poorly-placed System.exit(0) can bog down the system with fork/execs.
> 
> +1 on notifying the SM and the restart rules. Whether the SM should automatically restart the server following getting a signal that one shut down cleanly, I'm not so sure. The signal should imply some human action was taken to cause the shutdown, and if that's the case I think requiring human action to restart makes sense. The SM should squawk in the logs though if the shutdown happens via something other than the intended managment API.
I have handled exit code = 0 to not respawn in  http://github.com/kabir/jboss-as/commit/8862da78064ca95b5ff8d2e866e38093e2a12294 http://github.com/kabir/jboss-as/commit/8862da78064ca95b5ff8d2e866e38093e2a12294

I'll look at notifying the SM next week when I get to implementing the SM<->Server protocol.

I have made a start on socket-base PM-process communication but should probably hold off until some consensus on if we want that is reached?

--------------------------------------------------------------

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

Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20100813/87bf7954/attachment.html 


More information about the jboss-dev-forums mailing list