feat(events): add idempotent Kafka event consumer runtime
This commit is contained in:
1 parent
565ef8d4f5
commit
3adb0ef9e4
47 files changed
+5018
-105
No files matched your search
@@ -213,11 +213,16 @@ services:
|
||||
expose:
|
||||
- "8080"
|
||||
- "9090"
|
||||
# SHUTDOWN_TIMEOUT (10s by default) bounds both the HTTP shutdown and the
|
||||
# outbox relay pass in progress, which run at the same time. The grace
|
||||
# period leaves room for that and for closing connections, so Docker does
|
||||
# not kill the process while a pass is committing.
|
||||
stop_grace_period: 20s
|
||||
# Shutdown budget with the defaults (see docs/en/DEPLOY.md):
|
||||
# - in parallel: the HTTP shutdown (SHUTDOWN_TIMEOUT, 10s), the relay
|
||||
# pass (10s plus a 5s rollback), and each event consumer
|
||||
# (CONSUMER_SHUTDOWN_GRACE 5s, a 5s rollback, CONSUMER_COMMIT_TIMEOUT
|
||||
# 5s): 15s;
|
||||
# - then the consumers leave their groups in parallel (commit timeout
|
||||
# plus 2s) and the clients close (about 1s): 8s.
|
||||
# About 23s in total; 30s leaves a margin so Docker does not kill the
|
||||
# process while a pass or a consumer transaction is committing.
|
||||
stop_grace_period: 30s
|
||||
restart: unless-stopped
|
||||
logging:
|
||||
driver: json-file
|
||||
|
||||
Reference in new issue
Block a user