File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -384,6 +384,12 @@ services:
384
384
ingest-monitors :
385
385
<< : *sentry_defaults
386
386
command : run consumer --no-strict-offset-reset ingest-monitors --consumer-group ingest-monitors
387
+ monitors-clock-tick :
388
+ << : *sentry_defaults
389
+ command : run consumer --no-strict-offset-reset monitors-clock-tick --consumer-group monitors-clock-tick
390
+ monitors-clock-tasks :
391
+ << : *sentry_defaults
392
+ command : run consumer --no-strict-offset-reset monitors-clock-tasks --consumer-group monitors-clock-tasks
387
393
post-process-forwarder-errors :
388
394
<< : *sentry_defaults
389
395
command : run consumer post-process-forwarder-errors --consumer-group post-process-forwarder --synchronize-commit-log-topic=snuba-commit-log --synchronize-commit-group=snuba-consumers
Original file line number Diff line number Diff line change 14
14
15
15
# XXX(BYK): We cannot use auto.create.topics as Confluence and Apache hates it now (and makes it very hard to enable)
16
16
EXISTING_KAFKA_TOPICS=$( $dc exec -T kafka kafka-topics --list --bootstrap-server kafka:9092 2> /dev/null)
17
- NEEDED_KAFKA_TOPICS=" ingest-attachments ingest-transactions ingest-events ingest-replay-recordings profiles ingest-occurrences ingest-metrics ingest-performance-metrics ingest-monitors"
17
+ NEEDED_KAFKA_TOPICS=" ingest-attachments ingest-transactions ingest-events ingest-replay-recordings profiles ingest-occurrences ingest-metrics ingest-performance-metrics ingest-monitors monitors-clock-tasks "
18
18
for topic in $NEEDED_KAFKA_TOPICS ; do
19
19
if ! echo " $EXISTING_KAFKA_TOPICS " | grep -qE " (^| )$topic ( |$)" ; then
20
20
$dc exec kafka kafka-topics --create --topic $topic --bootstrap-server kafka:9092
21
21
echo " "
22
22
fi
23
23
done
24
24
25
+ # This topic must have only a single partition for the consumer to work correctly
26
+ # https://github.com/getsentry/ops/blob/7dbc26f39c584ec924c8fef2ad5c532d6a158be3/k8s/clusters/us/_topicctl.yaml#L288-L295
27
+
28
+ if ! echo " $EXISTING_KAFKA_TOPICS " | grep -qE " (^| )monitors-clock-tick( |$)" ; then
29
+ $dc exec kafka kafka-topics --create --topic monitors-clock-tick --bootstrap-server kafka:9092 --partitions 1
30
+ fi
31
+
25
32
echo " ${_endgroup} "
You can’t perform that action at this time.
0 commit comments