Skip to content

feat(devkit): add HOST listener for host-side client access#3280

Merged
Gezi-lzq merged 1 commit into
1.6from
Gezi-lzq/devkit-host-listener
Apr 3, 2026
Merged

feat(devkit): add HOST listener for host-side client access#3280
Gezi-lzq merged 1 commit into
1.6from
Gezi-lzq/devkit-host-listener

Conversation

@Gezi-lzq

@Gezi-lzq Gezi-lzq commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a HOST listener (port 29092 in container) so host-side Kafka clients (Python, Java) can connect directly
  • Each node maps to localhost:<NODE_ID*10000+9192> (9192, 19192, 29192, 39192, 49192)
  • Previously advertised.listeners used container hostnames (node-0:9092) which are unresolvable from the host

Test plan

  • just start-build 3 — all nodes healthy
  • Host-side Python KafkaProducer connects via localhost:9192
  • Transactional produce/consume verified (commit + abort + isolation levels)

Add a HOST listener on port 29092 (container) mapped to
NODE_ID*10000+9192 (host) so that host-side Kafka clients
(Python, Java) can connect without /etc/hosts hacks.

Previously advertised.listeners used container hostnames
(node-0:9092) which are unresolvable from the host.
@Gezi-lzq
Gezi-lzq enabled auto-merge (squash) April 2, 2026 15:15
@Gezi-lzq
Gezi-lzq merged commit af1fe7e into 1.6 Apr 3, 2026
9 checks passed
@Gezi-lzq
Gezi-lzq deleted the Gezi-lzq/devkit-host-listener branch April 3, 2026 07:51
Gezi-lzq added a commit that referenced this pull request Apr 3, 2026
Add a HOST listener on port 29092 (container) mapped to
NODE_ID*10000+9192 (host) so that host-side Kafka clients
(Python, Java) can connect without /etc/hosts hacks.

Previously advertised.listeners used container hostnames
(node-0:9092) which are unresolvable from the host.
Gezi-lzq added a commit that referenced this pull request Apr 7, 2026
* feat(devkit): add HOST listener for host-side client access (#3280)

Add a HOST listener on port 29092 (container) mapped to
NODE_ID*10000+9192 (host) so that host-side Kafka clients
(Python, Java) can connect without /etc/hosts hacks.

Previously advertised.listeners used container hostnames
(node-0:9092) which are unresolvable from the host.

* refactor(devkit): simplify host port mappings and remove unused PLAINTEXT/CONTROLLER exports

Remove unused PLAINTEXT and CONTROLLER host port mappings since they are
unreachable from the host (advertised.listeners uses container hostnames).
Reuse the X9092 port slots for HOST listener and change the container-side
HOST port from 29092 to 9192 to avoid confusing collision with node-2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants