Refreshing Bootstrap Servers for AdminClient on Runtime #3516
-
Hello! I am wondering if there is any way to reconnect to a Kafka cluster (with changed IPs) without having to restart the whole application? We have a staging cluster running, which is teared down outside our business hours. The cluster runs in the cloud and the brokers get new IPs assigned after spinning the cluster up again. As bootstrap servers is a DNS record (kafka-xxxx.awesome.cloud:4123) set. Kafka UI then isn't able to reconnect to those brokers, as the AdminClient fetches the broker information only on application startup. I would like to avoid restarting the application every time the staging cluster is spin up again. Do you have any ideas how to achieve that? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey, sorry for the delay. Out of the box we have configuration wizard. Meanwhile, let me take a look at other possible solutions. |
Beta Was this translation helpful? Give feedback.
-
Hello @theurichde How I tested that:
After all that steps kafka-ui is able to connect to the cluster. Can you please provide some additional details and logs that you got? |
Beta Was this translation helpful? Give feedback.
Hello @theurichde
I tested the behavior you described - and it works fine for me.
How I tested that:
After all that steps kafka-ui is able to connect to the cluster.
Can you please provide some additional details and logs that you got?