trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ezko <>
Subject Re: ATS 7.1 graceful shutdown - client connections
Date Thu, 08 Nov 2018 13:54:19 GMT
Hi Phillip,
we used Jermy's suggestion for draining keep-alives with k8s as follows: 

              - /bin/bash
              - -c
              - rm /etc/environment;
                traffic_ctl config set
proxy.config.http.keep_alive_enabled_in 0; sleep 10;
                traffic_ctl server stop; sleep 5;
            - cat
            - /etc/environment

so prior to terminating the POD , k8s will run our preStop hook where we do
the following:
1) remove the file so readiness probe starts to fail , and thus K8s stops
sending us new connections
2) set keep_alive_enabled to 0 , so any current keep alive connections are
3) gracefully stop traffic server

we did some limited scope load testing with Jmeter (our use case is live
HLS) and rolling updates passed without errors. 
But interestingly enough they also passed without steps 2) and 3) above. i'm
not sure why (maybe due to some Jmeter keep-alive configuration)

Additionally we tried using nginx ingress controller. this one had some
errors with Jmeter due to:

Sent from:

View raw message