You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.*: Introduce graceful shutdown for gRPC Servers (#1687)
* Inroduce graceful shutdown for gRPC
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
* Add missed cancel branch
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
* Remove stutter from server structs
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
* Close servers immediately if grace period is not specified
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
* Update CHANGELOG
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
* Rename TLS methods, clarify log messages
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
* Document public functions
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
* Fix review issues
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
* Update bucket docs
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
* trigger checks
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
* trigger checks
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ We use *breaking* word for marking changes that are not backward compatible (rel
13
13
14
14
### Added
15
15
16
+
-[#1687](https://github.com/thanos-io/thanos/pull/1687) Add a new `--grpc-grace-period` CLI option to components which serve gRPC to set how long to wait until gRPC Server shuts down.
16
17
-[#1660](https://github.com/thanos-io/thanos/pull/1660) Add a new `--prometheus.ready_timeout` CLI option to the sidecar to set how long to wait until Prometheus starts up.
17
18
-[#1573](https://github.com/thanos-io/thanos/pull/1573)`AliYun OSS` object storage, see [documents](docs/storage.md#aliyun-oss) for further information.
18
19
-[#1680](https://github.com/thanos-io/thanos/pull/1680) Add a new `--http-grace-period` CLI option to components which serve HTTP to set how long to wait until HTTP Server shuts down.
grpcBindAddr=cmd.Flag("grpc-address", "Listen ip:port address for gRPC endpoints (StoreAPI). Make sure this address is routable from other components.").
27
28
Default("0.0.0.0:10901").String()
29
+
grpcGracePeriod=modelDuration(cmd.Flag("grpc-grace-period", "Time to wait after an interrupt received for GRPC Server.").Default("2m")) // by default it's the same as query.timeout.
28
30
29
31
grpcTLSSrvCert=cmd.Flag("grpc-server-tls-cert", "TLS Certificate for gRPC server, leave blank to disable TLS").Default("").String()
30
32
grpcTLSSrvKey=cmd.Flag("grpc-server-tls-key", "TLS Key for the gRPC server, leave blank to disable TLS").Default("").String()
31
33
grpcTLSSrvClientCA=cmd.Flag("grpc-server-tls-client-ca", "TLS CA to verify clients against. If no client CA is specified, there is no client verification on server side. (tls.NoClientCert)").Default("").String()
httpBindAddr=cmd.Flag("http-address", "Listen host:port for HTTP endpoints.").Default("0.0.0.0:10902").String()
44
+
httpGracePeriod=modelDuration(cmd.Flag("http-grace-period", "Time to wait after an interrupt received for HTTP Server.").Default("2m")) // by default it's the same as query.timeout.
0 commit comments