-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Store metadata in ZK with binary protobuf format #281
Comments
👍 We'll need a CLI that knows how to decode into protobuf text so that we can still examine the system: maybe a wrapper around zoosh. How do you propose to rewrite the data in ZK into the new format? We obviously won't want to do it too quickly. |
For the re-writing I was thinking to just do that each of them individually, at the first write occourence. For z-nodes that are not rewritten, we can leave the code that fallback to deserislize the text format indefinitely. |
Added PR with first part of needed changes. About the CLI tool, I'm leaning towards having a REST API that read from ZK and returns the json. The topic won't need to be loaded, just any broker could answer that request. |
This PR bumps project version to 2.8.0-SNAPSHOT. Also it bumps pulsar version to 2.8.0-rc-202012200040 so that we can make use of some latest features. * Bump project version to 2.8.0-SNAPSHOT * Bump pulsar to 2.8.0-rc-202012200040
In Pulsar we are storing a lot of metadata in ZooKeeper using different formats:
Using text formats has been good for quick debugging sessions without special tools but has drawbacks:
Of the 3 categories listed above, I don't think we should bother about load reports, because they're not where the bulk of metadata is.
My proposal would be:
1.17 release:
1.18 release:
Once the change has been implemented it would be easy to pre-verify the size difference and eventually think of storing even BK ledgers in binary format.
cc: @saandrews @rdhabalia @msb-at-yahoo @sschepens
The text was updated successfully, but these errors were encountered: