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/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,HOST://:29092
listeners=PLAINTEXT://:9092,HOST://:9192
advertised.listeners=PLAINTEXT://node-${NODE_ID}:9092,HOST://localhost:${HOST_PORT}
2 changes: 1 addition & 1 deletion 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,HOST://:29092
listeners=PLAINTEXT://:9092,CONTROLLER://:9093,HOST://:9192
advertised.listeners=PLAINTEXT://node-${NODE_ID}:9092,CONTROLLER://node-${NODE_ID}:9093,HOST://localhost:${HOST_PORT}
20 changes: 5 additions & 15 deletions devkit/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ services:
hostname: node-0
profiles: [single, cluster, cluster4, cluster5]
ports:
- "9092:9092"
- "9093:9093"
- "9192:29092"
- "9092:9192"
- "5005:5005"
- "9999:9999"
command:
Expand All @@ -94,9 +92,7 @@ services:
hostname: node-1
profiles: [cluster, cluster4, cluster5]
ports:
- "19092:9092"
- "19093:9093"
- "19192:29092"
- "19092:9192"
- "5006:5005"
command:
- bash
Expand All @@ -114,9 +110,7 @@ services:
hostname: node-2
profiles: [cluster, cluster4, cluster5]
ports:
- "29092:9092"
- "29093:9093"
- "29192:29092"
- "29092:9192"
- "5007:5005"
command:
- bash
Expand All @@ -134,9 +128,7 @@ services:
hostname: node-3
profiles: [cluster4, cluster5]
ports:
- "39092:9092"
- "39093:9093"
- "39192:29092"
- "39092:9192"
- "5008:5005"
command:
- bash
Expand All @@ -154,9 +146,7 @@ services:
hostname: node-4
profiles: [cluster5]
ports:
- "49092:9092"
- "49093:9093"
- "49192:29092"
- "49092:9192"
- "5009:5005"
command:
- bash
Expand Down
2 changes: 1 addition & 1 deletion devkit/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +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 + 9192))
export HOST_PORT=$(({{node}} * 10000 + 9092))
export AZ_NAME="${AZS[$(({{node}} % ${#AZS[@]}))]}"

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