Completed for a grade of four

This commit is contained in:
2026-10-23 16:08:53 +03:00
parent 92c2fdc254
commit af184cabe3
50 changed files with 1297 additions and 92 deletions
+10 -2
View File
@@ -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}