Skip to content

Commit 6c88b78

Browse files
authored
snuba: New subscriptions infrastucture rollout (#1507)
We have rebuilt the Snuba subscriptions infrastructure to help with scaling subscriptions in SaaS. Hopefully it will be a bit more stable for self hosted as well. It's configured to be able to recover more quickly from any downtimes or backlogs as it ignores stale subscriptions and only executes and delivers alerts on recent ones.
1 parent 9eff0c3 commit 6c88b78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,10 @@ services:
250250
command: replacer --storage errors --auto-offset-reset=latest --max-batch-size 3
251251
snuba-subscription-consumer-events:
252252
<<: *snuba_defaults
253-
command: subscriptions --auto-offset-reset=latest --consumer-group=snuba-events-subscriptions-consumers --topic=events --result-topic=events-subscription-results --dataset=events --commit-log-topic=snuba-commit-log --commit-log-group=snuba-consumers --delay-seconds=60 --schedule-ttl=60
253+
command: subscriptions-scheduler-executor --dataset events --entity events --auto-offset-reset=latest --no-strict-offset-reset --consumer-group=snuba-events-subscriptions-consumers --followed-consumer-group=snuba-consumers --delay-seconds=60 --schedule-ttl=60 --stale-threshold-seconds=900
254254
snuba-subscription-consumer-transactions:
255255
<<: *snuba_defaults
256-
command: subscriptions --auto-offset-reset=latest --consumer-group=snuba-transactions-subscriptions-consumers --topic=events --result-topic=transactions-subscription-results --dataset=transactions --commit-log-topic=snuba-commit-log --commit-log-group=transactions_group --delay-seconds=60 --schedule-ttl=60
256+
command: subscriptions-scheduler-executor --dataset transactions --entity transactions --auto-offset-reset=latest --no-strict-offset-reset --consumer-group=snuba-transactions-subscriptions-consumers --followed-consumer-group=transactions_group --delay-seconds=60 --schedule-ttl=60 --stale-threshold-seconds=900
257257
snuba-cleanup:
258258
<<: *snuba_defaults
259259
image: snuba-cleanup-self-hosted-local
@@ -297,7 +297,7 @@ services:
297297
test:
298298
- "CMD"
299299
- "/bin/bash"
300-
- '-c'
300+
- "-c"
301301
# Courtesy of https://unix.stackexchange.com/a/234089/108960
302302
- 'exec 3<>/dev/tcp/127.0.0.1/9000 && echo -e "GET /_health/ HTTP/1.1\r\nhost: 127.0.0.1\r\n\r\n" >&3 && grep ok -s -m 1 <&3'
303303
cron:

0 commit comments

Comments
 (0)