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

How to handle broker decommissioning and partition rebalance? #105

Closed
kchodnicki opened this issue Dec 13, 2017 · 4 comments
Closed

How to handle broker decommissioning and partition rebalance? #105

kchodnicki opened this issue Dec 13, 2017 · 4 comments

Comments

@kchodnicki
Copy link

Typically it's a troublesome thing to do, how to handle it inside k8s?

@solsson
Copy link
Contributor

solsson commented Dec 13, 2017

I did a concept for something like that in #95. Do you think it's a useful approach? If so please close this ticket and comment there.

@kchodnicki
Copy link
Author

@solsson ok, but how do you actually automate it? Each time a broker is created I want to do rebalancing. Same for broker graceful shutdown.

@solsson
Copy link
Contributor

solsson commented Dec 15, 2017

I guess you could listen to events such as those from #92 and execute jobs using the kube API. But you'll probably want some grace period, for example at graceful shutdown followed by restart.

How often will you scale up and down? Often enough to motivate the maintenance of such automation? Are you looking for something like HPA? I'm not sure StatefulSet supports that. If you have some custom automation in place to trigger scaling, maybe you can trigger rebalance from there too?

@kchodnicki
Copy link
Author

I think I will have to provide API for scaling this, and rebalance on API call.
Thanks!

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