Skip to content

Commit

Permalink
adjusted gateway.conf to let "service-requests-done" coordinated shut…
Browse files Browse the repository at this point in the history
…down phase timeout be 12s, 2s longer than the "ditto.gateway.http.coordinated-shutdown-timeout"

Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch.io>
  • Loading branch information
thjaeckle committed Jun 11, 2021
1 parent 1c86e71 commit 9835f42
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion connectivity/service/src/main/resources/connectivity.conf
Expand Up @@ -504,7 +504,8 @@ akka {
before-service-unbind {
# default timeout is 5s for the phase - give a longer timeout in order
# to be able to send disconnect announcements of connections:
timeout = 10 s
timeout = 10s
timeout = ${?AKKA_COORDINATED_SHUTDOWN_PHASES_BEFORE_SERVICE_UNBIND_TIMEOUT}
}
}
}
Expand Down
12 changes: 12 additions & 0 deletions gateway/service/src/main/resources/gateway.conf
Expand Up @@ -369,6 +369,18 @@ akka {
]
}

coordinated-shutdown {
phases {
service-requests-done {
# default timeout is 5s for the phase - give a longer timeout in order
# to be able to let ongoing HTTP requests take longer:
# must be higher than ${ditto.gateway.http.coordinated-shutdown-timeout} !
timeout = 12s
timeout = ${?AKKA_COORDINATED_SHUTDOWN_PHASES_SERVICE_REQUESTS_DONE_TIMEOUT}
}
}
}

http {

server {
Expand Down

0 comments on commit 9835f42

Please sign in to comment.