Skip to content

Commit

Permalink
sett lavere grace period. Hadde ikke noen effekt
Browse files Browse the repository at this point in the history
  • Loading branch information
kenglxn committed Sep 6, 2023
1 parent 40ed281 commit 9b6800a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion nais/dev-gcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ spec:
readiness:
path: /min-side-arbeidsgiver/internal/isReady
initialDelay: 20
terminationGracePeriodSeconds: 60
prometheus:
enabled: true
path: /min-side-arbeidsgiver/internal/metrics
Expand Down
1 change: 0 additions & 1 deletion nais/prod-gcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ spec:
readiness:
path: /min-side-arbeidsgiver/internal/isReady
initialDelay: 20
terminationGracePeriodSeconds: 60
prometheus:
enabled: true
path: /min-side-arbeidsgiver/internal/metrics
Expand Down
2 changes: 1 addition & 1 deletion server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ const main = async () => {

const terminator = createHttpTerminator({
server,
gracefulTerminationTimeout: 30_000, // defaults: terminator=5s, k8s=30s
gracefulTerminationTimeout: 15_000, // defaults: terminator=5s, k8s=30s
});

process.on('SIGTERM', () => {
Expand Down

0 comments on commit 9b6800a

Please sign in to comment.