Skip to content

Commit

Permalink
'worker_shutdown_timeout 240s' in nginx.conf is better. (#1883)
Browse files Browse the repository at this point in the history
  • Loading branch information
Miss-you authored Jul 24, 2020
1 parent ffa0e1e commit d079b3d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .travis/apisix_cli_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,15 @@ fi
set -ex

echo "passed: rollback to the default admin config"

# check the 'worker_shutdown_timeout' in 'nginx.conf' .

make init

grep -E "worker_shutdown_timeout 240s" conf/nginx.conf > /dev/null
if [ ! $? -eq 0 ]; then
echo "failed: worker_shutdown_timeout in nginx.conf is required 240s"
exit 1
fi

echo "passed: worker_shutdown_timeout in nginx.conf is ok"
2 changes: 1 addition & 1 deletion conf/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ nginx_config: # config for render the template to genarate n
error_log: "logs/error.log"
error_log_level: "warn" # warn,error
worker_rlimit_nofile: 20480 # the number of files a worker process can open, should be larger than worker_connections
worker_shutdown_timeout: 3s # timeout for a graceful shutdown of worker processes
worker_shutdown_timeout: 240s # timeout for a graceful shutdown of worker processes
event:
worker_connections: 10620
http:
Expand Down

0 comments on commit d079b3d

Please sign in to comment.