Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion devkit/config/defaults.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# KRaft mode
controller.listener.names=CONTROLLER
inter.broker.listener.name=PLAINTEXT
listener.security.protocol.map=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
listener.security.protocol.map=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,HOST:PLAINTEXT

# S3 storage (MinIO)
elasticstream.enable=true
Expand Down
4 changes: 2 additions & 2 deletions devkit/config/role/broker.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Variable: ${NODE_ID} is replaced by generate-config

process.roles=broker
listeners=PLAINTEXT://:9092
advertised.listeners=PLAINTEXT://node-${NODE_ID}:9092
listeners=PLAINTEXT://:9092,HOST://:9192
advertised.listeners=PLAINTEXT://node-${NODE_ID}:9092,HOST://localhost:${HOST_PORT}
4 changes: 2 additions & 2 deletions devkit/config/role/server.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Variable: ${NODE_ID} is replaced by generate-config

process.roles=broker,controller
listeners=PLAINTEXT://:9092,CONTROLLER://:9093
advertised.listeners=PLAINTEXT://node-${NODE_ID}:9092,CONTROLLER://node-${NODE_ID}:9093
listeners=PLAINTEXT://:9092,CONTROLLER://:9093,HOST://:9192
advertised.listeners=PLAINTEXT://node-${NODE_ID}:9092,CONTROLLER://node-${NODE_ID}:9093,HOST://localhost:${HOST_PORT}
15 changes: 5 additions & 10 deletions devkit/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ services:
hostname: node-0
profiles: [single, cluster, cluster4, cluster5]
ports:
- "9092:9092"
- "9093:9093"
- "9092:9192"
- "5005:5005"
- "9999:9999"
command:
Expand All @@ -93,8 +92,7 @@ services:
hostname: node-1
profiles: [cluster, cluster4, cluster5]
ports:
- "19092:9092"
- "19093:9093"
- "19092:9192"
- "5006:5005"
command:
- bash
Expand All @@ -112,8 +110,7 @@ services:
hostname: node-2
profiles: [cluster, cluster4, cluster5]
ports:
- "29092:9092"
- "29093:9093"
- "29092:9192"
- "5007:5005"
command:
- bash
Expand All @@ -131,8 +128,7 @@ services:
hostname: node-3
profiles: [cluster4, cluster5]
ports:
- "39092:9092"
- "39093:9093"
- "39092:9192"
- "5008:5005"
command:
- bash
Expand All @@ -150,8 +146,7 @@ services:
hostname: node-4
profiles: [cluster5]
ports:
- "49092:9092"
- "49093:9093"
- "49092:9192"
- "5009:5005"
command:
- bash
Expand Down
1 change: 1 addition & 0 deletions devkit/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ _render-node node ctrl_count cluster_id voters bootstrap features="":
export VOTERS="{{voters}}"
export BOOTSTRAP="{{bootstrap}}"
export NODE_ID="{{node}}"
export HOST_PORT=$(({{node}} * 10000 + 9092))
export AZ_NAME="${AZS[$(({{node}} % ${#AZS[@]}))]}"

render() { envsubst < "$1" | grep -v '^#' | grep -v '^$'; }
Expand Down
Loading