Skip to content
No description, website, or topics provided.
Go Makefile
Branch: master
Clone or download
mikkeloscar Update test application
Signed-off-by: Mikkel Oscar Lyderik Larsen <m@moscar.net>
Latest commit 3f9af9c May 26, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Init commit Feb 21, 2017
Dockerfile Init commit Feb 21, 2017
Makefile Update test application May 26, 2018
README.md Init commit Feb 21, 2017
deployment.yaml Update test application May 26, 2018
keep_alive_disabled_after_sigterm.log Init commit Feb 21, 2017
keep_alive_enabled.log Init commit Feb 21, 2017
main.go Update test application May 26, 2018

README.md

Test graceful termination in Kubernetes

Tests were run using this deployment, service, and ingress.

Steps:

  • Made sure two pods were running.
  • Generated traffic
    $ ab -n 10000 -c 20 https://myhost.example.org/
    
  • Deleted one of the pods with kubectl delete pod <pod-name>

When keep-alive connections are allowed after SIGTERM

Active keep-alive connections will stay active until termination. New connections are not established after the SIGTERM but requests are still incomming on the active connections.

keep_alive_enabled.log

When keep-alive connections are disabled after SIGTERM

keep-alive connections are closed and no new connections are established after the SIGTERM.

keep_alive_disabled_after_sigterm.log

You can’t perform that action at this time.