[jboss-jira] [JBoss JIRA] (WFCORE-1531) The HC shutdown operation should accept a restart-servers param like reload does

Brian Stansberry (JIRA) issues at jboss.org
Thu May 5 17:10:00 EDT 2016


    [ https://issues.jboss.org/browse/WFCORE-1531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201790#comment-13201790 ] 

Brian Stansberry commented on WFCORE-1531:
------------------------------------------

Note there needs to be some validation, as restart=false and restart-servers=false is an invalid combination. The user isn't allowed to ask for servers without an HC.

The default for restart-servers would be true, which is the current behavior.

> The HC shutdown operation should accept a restart-servers param like reload does
> --------------------------------------------------------------------------------
>
>                 Key: WFCORE-1531
>                 URL: https://issues.jboss.org/browse/WFCORE-1531
>             Project: WildFly Core
>          Issue Type: Feature Request
>          Components: CLI, Domain Management
>            Reporter: Brian Stansberry
>
> If a user uses a management op to restart the HC, e.g. one of these:
> {code}          
> [domain at localhost:9990 /] /host=master:shutdown(restart=true) 
> {"outcome" => "success"} 
> [domain at localhost:9990 /] shutdown --host=master --restart=true
> {code}
> then they should also be able to configure restart-servers=false so the servers remain alive and reconnect to the HC when the PC spawns a new one.
> Doing "kill -9 <hc_pid>" works fine, with the PC spawning a new HC and the servers reconnecting, so it seems the main thing here is adding the parameter and wiring in the mechanicsm such that the ServerInventory doesn't stop the servers. Perhaps the same thing can be done as HostProcessReloadHandler does, using HostRunningModeControl.setRestartMode().



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list