From 3741b945dcaf2e432f9e0088b4553d17f5c68f2b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 30 Oct 2013 18:32:53 +0000 Subject: implement shutdown_timeout and expiry on graceful shutdown Otherwise, the server may stay running forever if a client chooses to stay forever (and there is no FD pressure). --- Documentation/yahns_config.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Documentation/yahns_config.txt') diff --git a/Documentation/yahns_config.txt b/Documentation/yahns_config.txt index db2634c..b49617b 100644 --- a/Documentation/yahns_config.txt +++ b/Documentation/yahns_config.txt @@ -419,6 +419,17 @@ Ruby it is running under. Default: uses the global, :default queue if none is specified +* shutdown_timeout SECONDS + + This defines the timeout for gracefully exiting the process if there + are still connected clients. This should generally be higher or equal + to the app with the highest client_timeout value. + + Increase this if your application has slow endpoints which may take + longer than the default timeout. + + Default: max client_timeout value of all apps in the process + * worker_processes INTEGER [&BLOCK] This directive allows yahns to use a master/worker configuration to -- cgit v1.2.3-24-ge0c7