-
-
Save tycho/4279ce2ca47b293a856966959682637d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -ex | |
docker-compose down | |
docker-compose up -d kafka zookeeper | |
KAFKA_GROUPS=( | |
transactions_group | |
snuba-replacers | |
query-subscription-consumer | |
snuba-consumers | |
ingest-consumer | |
snuba-transactions-subscriptions-consumers | |
snuba-events-subscriptions-consumers | |
snuba-post-processor | |
) | |
for KAFKA_GROUP in "${KAFKA_GROUPS[@]}"; do | |
echo $KAFKA_GROUP | |
docker exec -it sentry-self-hosted-kafka-1 kafka-consumer-groups --bootstrap-server 127.0.0.1:9092 --group "${KAFKA_GROUP}" --topic events --reset-offsets --to-latest --execute | |
done | |
docker-compose stop | |
docker-compose up -d | |
docker-compose run --rm web sentry upgrade |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment