Re: API to to query messages amount under one topic

2013-05-17 Thread Jun Rao
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] > >>> Sent: Thursday,

Re: API to to query messages amount under one topic

2013-05-17 Thread Rob Withers
mailto:jun...@gmail.com] > Sent: Friday, May 17, 2013 8:52 AM > To: users@kafka.apache.org > Subject: Re: API to to query messages amount under one topic > > For monitoring, we have jmxs on the broker for both the message and the byte > rate. > > Thanks, > > Jun &

RE: API to to query messages amount under one topic

2013-05-17 Thread Withers, Robert
...@gmail.com] Sent: Friday, May 17, 2013 8:52 AM To: users@kafka.apache.org Subject: Re: API to to query messages amount under one topic For monitoring, we have jmxs on the broker for both the message and the byte rate. Thanks, Jun On Thu, May 16, 2013 at 10:04 PM, Rob Withers wrote: > Immediat

Re: API to to query messages amount under one topic

2013-05-17 Thread Jun Rao
> > > Any possibility for a queuedMessageCount(topic, partitionNumber) > > protocol? > > > > > > thanks, > > > rob > > > ________________ > > > From: Jun Rao [jun...@gmail.com] > > > Sent: Wednesday, May 15, 2013 10

RE: API to to query messages amount under one topic

2013-05-16 Thread Rob Withers
il.com] > Sent: Thursday, May 16, 2013 10:00 PM > To: users@kafka.apache.org > Subject: Re: API to to query messages amount under one topic > > What do you plan to use this information for? > > Thanks, > > Jun > > > On Thu, May 16, 2013 at 5:57 AM, Withers, Ro

Re: API to to query messages amount under one topic

2013-05-16 Thread Jun Rao
@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, you can get the earliest and the latest offset using the > getOffsetBefore api. The difference btw the two gives th

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

Re: API to to query messages amount under one topic

2013-05-15 Thread Jun Rao
In 0.8, you can get the earliest and the latest offset using the getOffsetBefore api. The difference btw the two gives the number of messages on the broker. Thanks, Jun On Wed, May 15, 2013 at 6:05 PM, Sining Ma wrote: > Hi, > Is there any APIs in kafka that I can use to query how many messag

RE: API to to query messages amount under one topic

2013-05-15 Thread Rob Withers
ing Ma [mailto:sinin...@aol.com] > Sent: Wednesday, May 15, 2013 7:05 PM > To: users@kafka.apache.org > Subject: API to to query messages amount under one topic > > Hi, > Is there any APIs in kafka that I can use to query how many messages there > are under one topic? > This topic