Re: Kafka 0.8.2 new producer blocking on metadata

2014-12-21 Thread Paul Pearcy
Sounds good. Yes, I'd want a guarantee that every future I get will always return the recordmeta or an exception eventually. Running into a similar issue with futures never returning with a pretty straightforward case: - Healthy producer/server setup - Stop the server - Send a message - Call get

RE: Trying to figure out kafka latency issues

2014-12-21 Thread Thunder Stumpges
Did you see my response and have you checked the server logs especially the GC logs? It still sounds like you are running out of memory on the broker. What is your max heap memory and are you thrashing once you start writing to all those partitions? You have measured very thoroughly from an

Re: Trying to figure out kafka latency issues

2014-12-21 Thread Rajiv Kurian
I'll take a look at the GC profile of the brokers Right now I keep a tab on the CPU, Messages in, Bytes in, Bytes out, free memory (on the machine not JVM heap) free disk space on the broker. I'll need to take a look at the JVM metrics too. What seemed strange is that going from 8 - 512 partitions

RE: Trying to figure out kafka latency issues

2014-12-21 Thread Thunder Stumpges
Ah I thought it was restarting the broker that made things better :) Yeah I have no experience with the Java client so can't really help there. Good luck! -Original Message- From: Rajiv Kurian [ra...@signalfuse.com] Received: Sunday, 21 Dec 2014, 12:25PM To: users@kafka.apache.org

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

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

Re: Kafka 0.8.2 new producer blocking on metadata

2014-12-21 Thread Paul Pearcy
FYI, I bumped server to 0.8.2-beta and I don't hit the basic failure I mentioned above, which is great. I haven't been able to find confirmation in the docs, but from past conversation(

Producer is very slow in Kafka .8

2014-12-21 Thread Saurabh Minni
Hi, I was trying out Kafka .8 and was using PHP kafka( https://github.com/salebab/phpkafka ) extension to produce in PHP Unfortunately it does not produce faster than a 3 messages per second reliably. Was wondering if anyone can help me speed this up. Thanks, Saurabh