Re: Time difference between message fetch and message send is very high (~900-1200ms)

2013-05-16 Thread Kishore V. Kopalle
Hi Frank, Here are the explicitly set properties: Consumer: Properties props = new Properties(); props.put("zk.connect", KafkaProperties.zkConnect); props.put("groupid", KafkaProperties.groupId); props.put("zk.sessiontimeout.ms", "400"); props.put("zk.synctime.ms", "200");

Re: Kafka performance

2013-05-16 Thread Kishore V. Kopalle
Hi Francis/Stone, I have modified log.default.flush.interval.ms to have a value of 1 in config/server.properties file. The time did not come down as can be seen from the following output: Message received at 2013-05-17 11:54:02.973: Message produced at 2013-05-17 11:54:01.444: Message_1 Message r

Re: Kafka performance

2013-05-16 Thread Francis Dallaire
+1 ... very good suggestion. Sent from Samsung Mobile Original message From: Stone Date: 05-17-2013 2:16 AM (GMT-05:00) To: users@kafka.apache.org Subject: Re: Kafka performance Hi Kishore, Since a message is only exposed to the consumers after it is flushed. Maybe you ca

Re: Time difference between message fetch and message send is very high (~900-1200ms)

2013-05-16 Thread Francis Dallaire
What are the settings you have set on the producer ... is there any sync ack ? If so which type ? In any case, it would be useful to know the parameters you set on the consumer and producer. Thanks Frank Sent from Samsung Mobile Original message From: "Kishore V. Kopalle

Re: Kafka performance

2013-05-16 Thread Stone
Hi Kishore, Since a message is only exposed to the consumers after it is flushed. Maybe you can try lower log.default.flush.interval.ms which controls the maximum time that a message in any topic is kept in memory before flushed to disk ( by default it's 3000ms ) ref - http://kafka.apache.org/07/

Re: Time difference between message fetch and message send is very high (~900-1200ms)

2013-05-16 Thread Kishore V. Kopalle
Hi Frank, Yes, they are on the same machine. Zoo Keeper, Kafka server and the KafkaConsumerProducerDemo (with one producer and one consumer) are running on the same computer. Regards, Kishore On Fri, May 17, 2013 at 11:38 AM, Francis Dallaire < francis.dalla...@ubisoft.com> wrote: > Quick ques

Re: Time difference between message fetch and message send is very high (~900-1200ms)

2013-05-16 Thread Francis Dallaire
Quick question. Are the producer and consumer on the same machine ? If not, are you accounting for any difference in the time setting between producer and consumer ? Frank Sent from Samsung Mobile Original message From: Kishore Kopalle Date: 05-17-2013 1:41 AM (GMT-05:00)

Time difference between message fetch and message send is very high (~900-1200ms)

2013-05-16 Thread Kishore Kopalle
Hello All, In my earlier mail, I am sorry I did not give lot of details on my setup where I am measuring performance between producer and consumer. Here are the details: - I am using Kafka version 0.7 downloaded from Apache web site. - I am using a modified version of KafkaConsumerProducerDemo e

Time difference between message fetch and message send is very high (~900-1200ms)

2013-05-16 Thread Kishore V. Kopalle
Hello All, In my earlier mail, I am sorry I did not give lot of details on my setup where I am measuring performance between producer and consumer. Here are the details: - I am using Kafka version 0.7 downloaded from Apache web site. - I am using a modified version of KafkaConsumerProducerDemo e

RE: are commitOffsets botched to zookeeper?

2013-05-16 Thread Rob Withers
Can a request be made to zookeeper for this feature? Thanks, rob > -Original Message- > From: Neha Narkhede [mailto:neha.narkh...@gmail.com] > Sent: Thursday, May 16, 2013 9:53 PM > To: users@kafka.apache.org > Subject: Re: are commitOffsets botched to zookeeper? > > Currently Kafka depe

RE: only-once consumer groups

2013-05-16 Thread Rob Withers
We want to ensure only-once message processing, but we also want the benefit of rebalancing. commitOffsets updates all partitions from out of a connector instance. We want to commit the offset for just the partition that delivered a message to the iterator, even if several fetchers are feeding a

Is it possible to channelize high priority data and ordinary data in the same kafka cluster ???

2013-05-16 Thread Chitra Raveendran
HI I have a 3 node kafka cluster, and i have 2 topics( one of very high priority and other normal data), i need to transmit the normal data to two brokers in the cluster , and the high priority data directly to the 3rd broker. This is so that my high priority data has a clear path and can be tran

What happens if one broker goes down

2013-05-16 Thread Chitra Raveendran
Hi I was just doing some benchmarking with a 3node cluster. If one broker goes down , what happens? Does the producer go down ? that's what happened in my case. Is the data lost? Or does it get distributed amongst the other brokers? -- Chitra Raveendran Data Scientist *Flutura | Decision Scienc

RE: could an Encoder/Decoder be stateful?

2013-05-16 Thread Rob Withers
Could the producer be adapted to support the interface of the consumer? Thanks, rob > -Original Message- > From: Jun Rao [mailto:jun...@gmail.com] > Sent: Thursday, May 16, 2013 10:04 PM > To: users@kafka.apache.org > Subject: Re: could an Encoder/Decoder be stateful? > > The encoder ins

RE: API to to query messages amount under one topic

2013-05-16 Thread Rob Withers
Immediately monitoring. Later, possible thresholding to evoke a reconfiguration of the number of partitions into a new topic and migrate message index/logs and redirect pubs/subs to the new topic, during a traffic spike. > -Original Message- > From: Jun Rao [mailto:jun...@gmail.com] > Sen

Kafka performance

2013-05-16 Thread Kishore Kopalle
Hello All, I am evaluating Kafka for use in a real time financial product. I am tying to calculate the time it takes for a message to be fetched by the consumer after it has been sent by a producer. I am finding that this takes a long time of between 900-1200 ms per message on Windows 7 single cor

Re: could an Encoder/Decoder be stateful?

2013-05-16 Thread Jun Rao
The encoder instance can't be shared in different producers since it's instantiated through java reflection. Decoder instance can actually be shared by different consumers since it's passed in directly through the consumer api. Thanks, Jun On Thu, May 16, 2013 at 5:58 AM, Withers, Robert wrote:

Re: only-once consumer groups

2013-05-16 Thread Neha Narkhede
Can you describe your requirements in a little more detail? Thanks, Neha On May 16, 2013 6:11 AM, "Withers, Robert" wrote: > is it technically feasible to use an only-once simple consumer within a > consumer group? > > thanks, > rob

Re: Consumers in a consumer group not owning partitions

2013-05-16 Thread Neha Narkhede
Can you share the consumer log4j files during the time it rebalances? Thanks, Neha On May 16, 2013 10:28 AM, "Javier Iseruk" wrote: > Hi. > I have a consumer group with five consumers, but only three are consuming. > The topic has 25 partitions (5 brokers with 5 partitions each one), so it > sho

Re: WebMethods consumer for Kafka.

2013-05-16 Thread Neha Narkhede
It seems that the zookeeper host string is null or empty. Can you paste the code you used to instantiate the consumer? Thanks, Neha On May 16, 2013 12:45 PM, "Seshadri, Balaji" wrote: > Hi, > > I'm trying to write webMethods consumer for Kafka and I get the following > error when I try to integr

Re: API to to query messages amount under one topic

2013-05-16 Thread Jun Rao
What do you plan to use this information for? Thanks, Jun On Thu, May 16, 2013 at 5:57 AM, Withers, Robert wrote: > Any possibility for a queuedMessageCount(topic, partitionNumber) protocol? > > thanks, > rob > > From: Jun Rao [jun...@gmail.com] > Sent:

Re: are commitOffsets botched to zookeeper?

2013-05-16 Thread Neha Narkhede
Currently Kafka depends on zookeeper 3.3.4 that doesn't have a batch write api. So if you commit after every message at a high rate, it will be slow and inefficient. Besides it will cause zookeeper performance to degrade. Thanks, Neha On May 16, 2013 6:54 PM, "Rob Withers" wrote: > We are callin

are commitOffsets botched to zookeeper?

2013-05-16 Thread Rob Withers
We are calling commitOffsets after every message consumption. It looks to be ~60% slower, with 29 partitions. If a single KafkaStream thread is from a connector, and there are 29 partitions, then commitOffsets sends 29 offset updates, correct? Are these offset updates batched in one send to z

WebMethods consumer for Kafka.

2013-05-16 Thread Seshadri, Balaji
Hi, I'm trying to write webMethods consumer for Kafka and I get the following error when I try to integrate. java.lang.NullPointerException at org.apache.zookeeper.ClientCnxn.(ClientCnxn.java:360) at org.apache.zookeeper.ClientCnxn.(ClientCnxn.java:331)

Consumers in a consumer group not owning partitions

2013-05-16 Thread Javier Iseruk
Hi. I have a consumer group with five consumers, but only three are consuming. The topic has 25 partitions (5 brokers with 5 partitions each one), so it shouldn't be the problem the partitions quantity. In zookeeper, I see the five consumers in /consumers/$GROUP/ids, but in /consumers/$GROUP/owner

only-once consumer groups

2013-05-16 Thread Withers, Robert
is it technically feasible to use an only-once simple consumer within a consumer group? thanks, rob

RE: when do you think 0.8 could get promoted from beta to a release?

2013-05-16 Thread Withers, Robert
Excellent news. Thanks, Neha. From: Neha Narkhede [neha.narkh...@gmail.com] Sent: Wednesday, May 15, 2013 10:25 PM To: users@kafka.apache.org Subject: Re: when do you think 0.8 could get promoted from beta to a release? We are currently working on fixing a

RE: could an Encoder/Decoder be stateful?

2013-05-16 Thread Withers, Robert
Is there a way to share an encoder instance, or inject shared state, across producers/consumers? Guice? From: Jun Rao [jun...@gmail.com] Sent: Wednesday, May 15, 2013 11:02 PM To: users@kafka.apache.org Subject: Re: could an Encoder/Decoder be stateful? E

RE: API to to query messages amount under one topic

2013-05-16 Thread Withers, Robert
Any possibility for a queuedMessageCount(topic, partitionNumber) protocol? thanks, rob From: Jun Rao [jun...@gmail.com] Sent: Wednesday, May 15, 2013 10:59 PM To: users@kafka.apache.org Subject: Re: API to to query messages amount under one topic In 0.8, y