You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Larry McCay (JIRA)" <ji...@apache.org> on 2015/03/24 12:31:52 UTC
[jira] [Commented] (KNOX-522) Admin Service API for Stopping the
Gateway
[ https://issues.apache.org/jira/browse/KNOX-522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14377726#comment-14377726 ]
Larry McCay commented on KNOX-522:
----------------------------------
Requires:
* Configurable grace period and options set on server initialization
* Jersey Resource for Stop and maybe Restart
> Admin Service API for Stopping the Gateway
> ------------------------------------------
>
> Key: KNOX-522
> URL: https://issues.apache.org/jira/browse/KNOX-522
> Project: Apache Knox
> Issue Type: Improvement
> Components: Server
> Reporter: Larry McCay
>
> We need to add a graceful way to shutdown the server that allows existing requests to complete but doesn't accept to connections before it actually stops.
> See the embedded Jetty APIs for setting the options:
> server.setGracefulShutdown(millis);
> server.setStopAtShutdown(true);
> The millis provided in the setGracefulShutdown indicates the graceperiod to allow existing requests to complete before killing them.
> The setStopAtShutdown boolean enables or disables the grace period.
> This improvement will be useful in rolling upgrade scenarios where a number of instances are running and we want to cycle one after another without disrupting requests being processed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)