-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat: no more zookeeper #55742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
feat: no more zookeeper #55742
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
019cdcf
redpanda
joshuarli 6be6472
fix
joshuarli 731822c
Merge remote-tracking branch 'origin/master' into feat-redpanda
joshuarli 9388d63
Merge remote-tracking branch 'origin/master' into feat-redpanda
joshuarli 7126921
try it out
joshuarli fa94837
Merge remote-tracking branch 'origin/master' into kafka-no-zookeeper
joshuarli 7dd7e0f
network hostnames no longer necessary
joshuarli 5e64d0e
wups fix
joshuarli 95768b4
Merge remote-tracking branch 'origin' into kafka-no-zookeeper
joshuarli 04c71ac
try again after anthony's changes
joshuarli f5ab846
[skip ci] fix tools test
joshuarli f5e484e
apply anthonys patch
joshuarli ca7b3b1
Merge remote-tracking branch 'origin' into kafka-no-zookeeper
joshuarli 2c9f502
restore
joshuarli e140bb4
fix
joshuarli 8577152
Merge remote-tracking branch 'origin' into kafka-no-zookeeper
joshuarli 8ade1e4
back to internal access
joshuarli 15d166f
update
joshuarli 85cac7a
Merge remote-tracking branch 'origin/master' into kafka-no-zookeeper
joshuarli b99dd2c
temporary compat code
joshuarli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2676,37 +2676,28 @@ def build_cdc_postgres_init_db_volume(settings: Any) -> dict[str, dict[str, str] | |
| "entrypoint": "/cdc/postgres-entrypoint.sh" if settings.SENTRY_USE_CDC_DEV else None, | ||
| } | ||
| ), | ||
| "zookeeper": lambda settings, options: ( | ||
| { | ||
| # On Apple arm64, we upgrade to version 6.x to allow zookeeper to run properly on Apple's arm64 | ||
| # See details https://github.com/confluentinc/kafka-images/issues/80#issuecomment-855511438 | ||
| "image": "ghcr.io/getsentry/image-mirror-confluentinc-cp-zookeeper:6.2.0", | ||
| "environment": { | ||
| "ZOOKEEPER_CLIENT_PORT": "2181", | ||
| "KAFKA_OPTS": "-Dzookeeper.4lw.commands.whitelist=ruok", | ||
| }, | ||
| "volumes": {"zookeeper_6": {"bind": "/var/lib/zookeeper/data"}}, | ||
| "only_if": "kafka" in settings.SENTRY_EVENTSTREAM or settings.SENTRY_USE_RELAY, | ||
| } | ||
| ), | ||
| "kafka": lambda settings, options: ( | ||
| { | ||
| "image": "ghcr.io/getsentry/image-mirror-confluentinc-cp-kafka:6.2.0", | ||
| "image": "ghcr.io/getsentry/image-mirror-confluentinc-cp-kafka:7.5.0", | ||
| "ports": {"9092/tcp": 9092}, | ||
| # https://docs.confluent.io/platform/current/installation/docker/config-reference.html#cp-kakfa-example | ||
| "environment": { | ||
| "KAFKA_ZOOKEEPER_CONNECT": "{containers[zookeeper][name]}:2181", | ||
| "KAFKA_LISTENERS": "INTERNAL://0.0.0.0:9093,EXTERNAL://0.0.0.0:9092", | ||
| "KAFKA_ADVERTISED_LISTENERS": "INTERNAL://{containers[kafka][name]}:9093,EXTERNAL://{containers[kafka]" | ||
| "[ports][9092/tcp][0]}:{containers[kafka][ports][9092/tcp][1]}", | ||
| "KAFKA_LISTENER_SECURITY_PROTOCOL_MAP": "INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT", | ||
| "KAFKA_INTER_BROKER_LISTENER_NAME": "INTERNAL", | ||
| "KAFKA_PROCESS_ROLES": "broker,controller", | ||
| "KAFKA_CONTROLLER_QUORUM_VOTERS": "[email protected]:29093", | ||
| "KAFKA_CONTROLLER_LISTENER_NAMES": "CONTROLLER", | ||
| "KAFKA_NODE_ID": "1", | ||
| "CLUSTER_ID": "MkU3OEVBNTcwNTJENDM2Qk", | ||
| "KAFKA_LISTENERS": "PLAINTEXT://0.0.0.0:29092,INTERNAL://0.0.0.0:9093,EXTERNAL://0.0.0.0:9092,CONTROLLER://0.0.0.0:29093", | ||
| "KAFKA_ADVERTISED_LISTENERS": "PLAINTEXT://127.0.0.1:29092,INTERNAL://sentry_kafka:9093,EXTERNAL://127.0.0.1:9092", | ||
| "KAFKA_LISTENER_SECURITY_PROTOCOL_MAP": "PLAINTEXT:PLAINTEXT,INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT,CONTROLLER:PLAINTEXT", | ||
| "KAFKA_INTER_BROKER_LISTENER_NAME": "PLAINTEXT", | ||
| "KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR": "1", | ||
| "KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS": "1", | ||
| "KAFKA_LOG_RETENTION_HOURS": "24", | ||
| "KAFKA_MESSAGE_MAX_BYTES": "50000000", | ||
| "KAFKA_MAX_REQUEST_SIZE": "50000000", | ||
| }, | ||
| "volumes": {"kafka_6": {"bind": "/var/lib/kafka/data"}}, | ||
| "volumes": {"kafka": {"bind": "/var/lib/kafka/data"}}, | ||
| "only_if": "kafka" in settings.SENTRY_EVENTSTREAM | ||
| or settings.SENTRY_USE_RELAY | ||
| or settings.SENTRY_DEV_PROCESS_SUBSCRIPTIONS | ||
|
|
||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.