Completed for a grade of four
This commit is contained in:
@@ -8,11 +8,19 @@ ktor {
|
||||
host = ${?APP_HOST}
|
||||
port = 8080
|
||||
port = ${?APP_PORT}
|
||||
shutdownGracePeriod = 3000
|
||||
shutdownTimeout = 10000
|
||||
# After the drain (see `shutdown`): Netty waits for 1 s without new activity, at most 5 s in total.
|
||||
shutdownGracePeriod = 1000
|
||||
shutdownTimeout = 5000
|
||||
}
|
||||
}
|
||||
|
||||
shutdown {
|
||||
# Time between SIGTERM and closing the socket while /health/ready is already 503.
|
||||
# Behind HAProxy (check every 1 s, 2 failures) 3 s is enough to leave rotation; a single local process needs none.
|
||||
drainDelayMs = 0
|
||||
drainDelayMs = ${?SHUTDOWN_DRAIN_DELAY_MS}
|
||||
}
|
||||
|
||||
database {
|
||||
host = "localhost"
|
||||
host = ${?DB_HOST}
|
||||
|
||||
Reference in New Issue
Block a user