Skip to content

Commit af31b5e

Browse files
authored
ref(k8s): Increase the timeout for the sigterm (#362)
1 parent 5d14c2b commit af31b5e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

etl-api/src/k8s/http.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,9 @@ impl K8sClient for HttpK8sClient {
362362
"nodeSelector": {
363363
"nodeType": "workloads"
364364
},
365-
// We want to wait at most 60 seconds before K8S sends a `SIGKILL` to the containers.
366-
"terminationGracePeriodSeconds": 60,
365+
// We want to wait at most 5 minutes before K8S sends a `SIGKILL` to the containers,
366+
// this way we let the system finish any in-flight transaction, if there are any.
367+
"terminationGracePeriodSeconds": 300,
367368
"initContainers": [
368369
{
369370
"name": vector_container_name,

etl/src/replication/apply.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ struct ApplyLoopState {
338338
///
339339
/// When a shutdown has been discarded, the apply loop will continue processing events until a
340340
/// transaction boundary is found. If not found, the process will continue until it is killed via
341-
/// a `SIGTERM`.
341+
/// a `SIGKILL`.
342342
shutdown_discarded: bool,
343343
}
344344

0 commit comments

Comments
 (0)