|
|
-
broker id configuration?
xiaoyu wang 2012-05-31, 20:44
Hello,
I am setting up a kafka cluster and want to use our unique id generation algorithm to generate broker id. The algorithm will generate an id between 1000-4000. Is it OK? Based on my understanding, broker id does not affect how data is distributed within the cluster. Is it correct? Thanks,
-Xiaoyu
-
Re: broker id configuration?
Jay Kreps 2012-05-31, 22:17
Theoretically it should work with any set of unique ids, but we run with sequential ids beginning with 0. If you see any problems let us know and we will fix it.
-Jay
On Thu, May 31, 2012 at 1:44 PM, xiaoyu wang <[EMAIL PROTECTED]> wrote:
> Hello, > > I am setting up a kafka cluster and want to use our unique id generation > algorithm to generate broker id. The algorithm will generate an id between > 1000-4000. Is it OK? Based on my understanding, broker id does not affect > how data is distributed within the cluster. Is it correct? > > > Thanks, > > -Xiaoyu >
-
Re: broker id configuration?
Chris Burroughs 2012-06-19, 01:29
For what it's worth we ended up using the last octet of the IP as the broker id. Global sequential or UUID would be the most foolproof methods.
You are correct that the broker id does not affect how data is distributed.
On 05/31/2012 04:44 PM, xiaoyu wang wrote: > Hello, > > I am setting up a kafka cluster and want to use our unique id generation > algorithm to generate broker id. The algorithm will generate an id between > 1000-4000. Is it OK? Based on my understanding, broker id does not affect > how data is distributed within the cluster. Is it correct? > > > Thanks, > > -Xiaoyu >
|
|
All projects made searchable here are trademarks of the Apache Software Foundation.
Service operated by
Sematext