-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KafkaSinkCluster: Add kafka 3.9 integration test (#1821)
- Loading branch information
Showing
4 changed files
with
166 additions
and
1 deletion.
There are no files selected for viewing
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
96 changes: 96 additions & 0 deletions
96
shotover-proxy/tests/test-configs/kafka/cluster-2-racks/docker-compose-kafka-3.9.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
networks: | ||
cluster_subnet: | ||
name: cluster_subnet | ||
driver: bridge | ||
ipam: | ||
driver: default | ||
config: | ||
- subnet: 172.16.1.0/24 | ||
gateway: 172.16.1.1 | ||
services: | ||
kafka0: | ||
image: &image 'bitnami/kafka:3.9.0-debian-12-r3' | ||
networks: | ||
cluster_subnet: | ||
ipv4_address: 172.16.1.2 | ||
environment: &environment | ||
KAFKA_CFG_LISTENERS: "BROKER://:9092,CONTROLLER://:9093" | ||
KAFKA_CFG_ADVERTISED_LISTENERS: "BROKER://172.16.1.2:9092" | ||
KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: "CONTROLLER:PLAINTEXT,BROKER:PLAINTEXT" | ||
KAFKA_CFG_INTER_BROKER_LISTENER_NAME: "BROKER" | ||
KAFKA_CFG_CONTROLLER_LISTENER_NAMES: "CONTROLLER" | ||
KAFKA_CFG_PROCESS_ROLES: "controller,broker" | ||
KAFKA_KRAFT_CLUSTER_ID: "abcdefghijklmnopqrstuv" | ||
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: "0@kafka0:9093,1@kafka1:9093,2@kafka2:9093,3@kafka3:9093,4@kafka4:9093,5@kafka5:9093" | ||
KAFKA_CFG_NODE_ID: 0 | ||
KAFKA_CFG_BROKER_RACK: "rack1" | ||
ALLOW_PLAINTEXT_LISTENER: "yes" | ||
# Required for high availability | ||
KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3 | ||
KAFKA_CFG_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 3 | ||
KAFKA_CFG_TRANSACTION_STATE_LOG_MIN_ISR: 2 | ||
|
||
# This cfg is set to 3000 by default, which for a typical workload reduces the overhead of creating a | ||
# new consumer group by avoiding constant rebalances as each initial consumer joins. | ||
# See: https://cwiki.apache.org/confluence/display/KAFKA/KIP-134%3A+Delay+initial+consumer+group+rebalance | ||
# | ||
# However for an integration test workload we are constantly spinning up single consumer groups, so the default value makes the tests take twice as long to run. | ||
KAFKA_CFG_GROUP_INITIAL_REBALANCE_DELAY_MS: "0" | ||
volumes: &volumes | ||
- type: tmpfs | ||
target: /bitnami/kafka | ||
kafka1: | ||
image: *image | ||
networks: | ||
cluster_subnet: | ||
ipv4_address: 172.16.1.3 | ||
environment: | ||
<<: *environment | ||
KAFKA_CFG_ADVERTISED_LISTENERS: "BROKER://172.16.1.3:9092" | ||
KAFKA_CFG_NODE_ID: 1 | ||
KAFKA_CFG_BROKER_RACK: "rack1" | ||
volumes: *volumes | ||
kafka2: | ||
image: *image | ||
networks: | ||
cluster_subnet: | ||
ipv4_address: 172.16.1.4 | ||
environment: | ||
<<: *environment | ||
KAFKA_CFG_ADVERTISED_LISTENERS: "BROKER://172.16.1.4:9092" | ||
KAFKA_CFG_NODE_ID: 2 | ||
KAFKA_CFG_BROKER_RACK: "rack1" | ||
volumes: *volumes | ||
kafka3: | ||
image: *image | ||
networks: | ||
cluster_subnet: | ||
ipv4_address: 172.16.1.5 | ||
environment: | ||
<<: *environment | ||
KAFKA_CFG_ADVERTISED_LISTENERS: "BROKER://172.16.1.5:9092" | ||
KAFKA_CFG_NODE_ID: 3 | ||
KAFKA_CFG_BROKER_RACK: "rack2" | ||
volumes: *volumes | ||
kafka4: | ||
image: *image | ||
networks: | ||
cluster_subnet: | ||
ipv4_address: 172.16.1.6 | ||
environment: | ||
<<: *environment | ||
KAFKA_CFG_ADVERTISED_LISTENERS: "BROKER://172.16.1.6:9092" | ||
KAFKA_CFG_NODE_ID: 4 | ||
KAFKA_CFG_BROKER_RACK: "rack2" | ||
volumes: *volumes | ||
kafka5: | ||
image: *image | ||
networks: | ||
cluster_subnet: | ||
ipv4_address: 172.16.1.7 | ||
environment: | ||
<<: *environment | ||
KAFKA_CFG_ADVERTISED_LISTENERS: "BROKER://172.16.1.7:9092" | ||
KAFKA_CFG_NODE_ID: 5 | ||
KAFKA_CFG_BROKER_RACK: "rack2" | ||
volumes: *volumes |
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
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