Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BookKeeper client should handle IP address changes of bookkeeper pods #2382

Closed
sijie opened this issue Jul 20, 2020 · 2 comments
Closed

BookKeeper client should handle IP address changes of bookkeeper pods #2382

sijie opened this issue Jul 20, 2020 · 2 comments

Comments

@sijie
Copy link
Member

sijie commented Jul 20, 2020

When bookies are running on Kubernetes and are using useHostNameAsBookieID to advertise bookie address, bookies are using pod names as advertised addresses. When a bookie pod is restarted, the pod name is not changed but the IP address has been changed. The bookkeeper client doesn't have a mechanism to realize the IP address change. So the bookkeeper client has to wait until TCP timeout to re-establish the connections to the new bookie pod.

@eolivelli
Copy link
Contributor

This issue will be covered by BP-41

@eolivelli
Copy link
Contributor

this issue is covered by BP-41.

the fix is to set bookieId in your bk_server.conf.
we should document a possible upgrade story, but for new clusters it is quite easy to do it.

This is how we did it in HerdDB
diennea/herddb@a77804d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants