Re: Produce 1 million events/seconds

2014-12-22 Thread nitin sharma
Hey Pramod, few things: a. You can keep 2 brokers but you can increase the ProducerSend thread on your producer side to push more messages. best way try to create more threads that execute the loop where "send" is called. b. try to avoid/reduce putting any logic computation in the while loop .. Yo

Re: Produce 1 million events/seconds

2014-12-22 Thread nitin sharma
btw -- curious to know how well your kafka broker handles the load... please do inform us your result. Regards, Nitin Kumar Sharma. On Mon, Dec 22, 2014 at 9:52 AM, nitin sharma wrote: > Hey Pramod, > > few things: > a. You can keep 2 brokers but you can increase the ProducerSend thread on > y

Re: Produce 1 million events/seconds

2014-12-21 Thread Pramod Deshmukh
*Kafka: *Apache Kafka 0.8.1.1 *SImplePartitioner.java* public int partition(Object key, int a_numPartitions) { int partition = Integer.parseInt((String)key); LOG.debug("SimplePartitioner Partion: " + partition); return partition; } On Sun, Dec 21, 2014 at 10:54

Produce 1 million events/seconds

2014-12-21 Thread Pramod Deshmukh
I have a requirement to prove kafka producer can produce 1 million events/second to Kafka cluster. So far, best I could achieve is 200k events/sec on topic with 2 partitions. The latency increases with adding more partitions so I want to test with 2 partitions for now. Below are the details along