Skip to content

Commit

Permalink
Set terminationGracePeriodSeconds to 30
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcrisap committed Apr 22, 2024
1 parent f3690db commit d6cb69d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/trino/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` | | `{}` |
Expand All @@ -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` | | `{}` |
Expand Down
4 changes: 2 additions & 2 deletions charts/trino/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ coordinator:
# exec:
# command: ["/bin/sh", "-c", "sleep 120"]

terminationGracePeriodSeconds: ""
terminationGracePeriodSeconds: "30"

nodeSelector: {}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d6cb69d

Please sign in to comment.