[pulsar] pulsar standalone to have embedded zookeeper
nareshv opened this issue · comments
Search before asking
- I searched in the issues and found nothing similar.
Motivation
We've been evaluating pulsar standalone for edge/low-footprint use cases and seem to work pretty well. As mentioned in #22438 (reply in thread) we would like to make the pulsar standalone robust with an embedded zookeeper.
Solution
PulsarStandalone.java
supports multiple command line parameters. Adding --run-zookeeper
flag to start the zookeeper on the same JVM
Alternatives
Running zookeeper as a separate process.
We have to rule this option due to large fleet management needs. A single JVM management with (Pulsar + Zookeeper + Bookeeper) is much more deployment friendly on tiny devices than multiple processes.
Anything else?
No response
Are you willing to submit a PR?
- I'm willing to submit a PR!
going through the sourcecode, found out that when running with PULSAR_STANDALONE_USE_ZOOKEEPER=1
pulsar starts zookeeper