We are considerring putting kafka into production.

One thing we are not sure about is how many partitions for a topic is
suitable.

I notice that in the operations page(
https://cwiki.apache.org/confluence/display/KAFKA/Operations#kafka),linkedin
choose just one partition:

kafka.num.partitions=1


Though have been explained in one discussing,I still don't quite get why
you choose only 1 partition:

Pierre-Yves Ritschard:
> one partition only ? so the key here is that you start as many brokers
> as there are consumers ?



>

Jay Kreps:
> Yeah technically that is not 100% correct. We have tuned about 10 topics by
> adding more partitions to add parallelism.


 "tuned about 10 topics by adding more partitions to add parallelism",does
this mean you dispatch
the same group of logs into 10 different topics,thus you get more
partitions(one partition for a topic and totally 10 topic,thus 10
partitions on one broker) on each broker,and thus
you add parallelism?

if yes,why not just increase the # of partitions of one certain topic?

and how many partitions would you advise to assign for a topic?

-- 
Best Regards

----------------------
刘明敏 | mmLiu

Reply via email to