From d6cb69d5255f4f67da53cd6de98b6def0794ebcb Mon Sep 17 00:00:00 2001 From: Daniel Cristian Date: Mon, 22 Apr 2024 10:18:13 -0300 Subject: [PATCH] Set terminationGracePeriodSeconds to 30 --- charts/trino/README.md | 4 ++-- charts/trino/values.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/trino/README.md b/charts/trino/README.md index 28798379..1fed8169 100644 --- a/charts/trino/README.md +++ b/charts/trino/README.md @@ -64,7 +64,7 @@ The following table lists the configurable parameters of the Trino chart and the | `coordinator.livenessProbe` | | `{}` | | `coordinator.readinessProbe` | | `{}` | | `coordinator.lifecycle` | | `{}` | -| `coordinator.terminationGracePeriodSeconds` | | `""` | +| `coordinator.terminationGracePeriodSeconds` | | `"30"` | | `coordinator.nodeSelector` | | `{}` | | `coordinator.tolerations` | | `[]` | | `coordinator.affinity` | | `{}` | @@ -82,7 +82,7 @@ The following table lists the configurable parameters of the Trino chart and the | `worker.livenessProbe` | | `{}` | | `worker.readinessProbe` | | `{}` | | `worker.lifecycle` | | `{}` | -| `worker.terminationGracePeriodSeconds` | | `""` | +| `worker.terminationGracePeriodSeconds` | | `"30"` | | `worker.nodeSelector` | | `{}` | | `worker.tolerations` | | `[]` | | `worker.affinity` | | `{}` | diff --git a/charts/trino/values.yaml b/charts/trino/values.yaml index 8ec26c11..ad63fef0 100644 --- a/charts/trino/values.yaml +++ b/charts/trino/values.yaml @@ -197,7 +197,7 @@ coordinator: # exec: # command: ["/bin/sh", "-c", "sleep 120"] - terminationGracePeriodSeconds: "" + terminationGracePeriodSeconds: "30" nodeSelector: {} @@ -260,7 +260,7 @@ worker: # command: ["/bin/sh", "-c", "curl -v -X PUT -d '\"SHUTTING_DOWN\"' -H \"Content-type: application/json\" http://localhost:8081/v1/info/state"] # https://trino.io/docs/current/admin/graceful-shutdown.html#admin-graceful-shutdown--page-root - terminationGracePeriodSeconds: "" + terminationGracePeriodSeconds: "30" # Sleep for shutdown.grace-period, which defaults to 2 minutes. # After this, the coordinator is aware of the shutdown and stops sending tasks to the worker. # https://trino.io/docs/current/admin/graceful-shutdown.html#shutdown-behavior