"Drain" option is available from v8.0.0. You can use it by "traffic_ctl
server stop --drain". Details in below.
This works for both of HTTP/1.1 and HTTP/2.
https://docs.trafficserver.apache.org/en/8.0.x/appendices/command-line/traffic_ctl.en.html#cmdoption-traffic-ctl-server-restart-drain
For older version, you can inject "Connection: close" header by
header_rewrite plugin. But please note that this only works for HTTP/1.1.
HTTP/2 graceful shutdown is supported by v8.0.0.
Thanks,
Masaori
2018年10月23日(火) 17:32 ezko <erez.koler@harmonicinc.com>:
> Hi,
> what is the cleanest way to shutdown traffic server in terms of client
> connections.
> The use case is rolling updates insides k8s. During update all new traffic
> is routed to a new instance , but how do we make sure the terminating
> instance has had a change to gracefully complete it's client connections.
> Is using 'traffic_ctl server stop' good enough ?
> what about keep alive ?
> Thanks.
>
>
>
> --
> Sent from: http://apache-traffic-server.24303.n7.nabble.com/
>
|