Low-latency, high message size variance

2015-12-11 Thread Jens Rantil
ad tool for our usecase? Thanks and have a nice weekend, Jens -- Jens Rantil Backend engineer Tink AB Email: jens.ran...@tink.se Phone: +46 708 84 18 32 Web: www.tink.se Facebook <https://www.facebook.com/#!/tink.se> Linkedin <http://www.linkedin.com/company/2735919?trk=vsrp_com

Re: Low-latency, high message size variance

2015-12-13 Thread Jens Rantil
Hi again, For the record I filed an issue about this here: https://issues.apache.org/jira/browse/KAFKA-2986 Cheers, Jens – Skickat från Mailbox On Fri, Dec 11, 2015 at 7:56 PM, Jens Rantil wrote: > Hi, > We've been experimenting a little with running Kafka internally

Re: Low-latency, high message size variance

2015-12-15 Thread Jens Rantil
he high level consumer API? I mean, it sounds like it should gracefully handle slow consumption of varying size. I might be wrong. Thanks, Jens -- Jens Rantil Backend engineer Tink AB Email: jens.ran...@tink.se Phone: +46 708 84 18 32 Web: www.tink.se Facebook <https://www.facebook.com/#!/t

Re: Low-latency, high message size variance

2015-12-16 Thread Jens Rantil
essages that I then collect on my first `consumer.poll(0);` call? Since `consumer.poll(0);` then would return a non-empty list, I would essentially ignoring messages? Or is the pause() call both 1) making sure consumer#poll never returns anything _and_ 2) pauses the background fetcher? Cheers,

Low-latency, high message size variance

2015-12-16 Thread Jens Rantil
> > while (running) { > > ConsumerRecords records = consumer.poll(1000); > > Future future = executor.submit(new Processor(records)); > > while (!complete(future, heartbeatIntervalMs, TimeUnit.MILLLISECONDS)) > > consumer.ping(); > > consumer.commitSyn

Re: Kafka User Group meeting Link

2015-12-17 Thread Jens Rantil
Hi, In which part of the world? Cheers, Jens – Skickat från Mailbox On Thu, Dec 17, 2015 at 8:23 AM, prabhu v wrote: > Hi, > Can anyone provide me the link for the KAFKA USER Group meetings which > happened on Jun. 14, 2012 and June 3, 2014?? > Link provided in the below wiki page is

Re: how to reset kafka offset in zookeeper

2015-12-18 Thread Jens Rantil
ume will not > read messages from first offset. > > Is there any way to reset kafka offset in zookeeper? > > Thanks, > Akhilesh > -- Jens Rantil Backend engineer Tink AB Email: jens.ran...@tink.se Phone: +46 708 84 18 32 Web: www.tink.se Facebook <https://www.facebook.

Re: Better strategy for sending a message to multiple topics

2015-12-18 Thread Jens Rantil
Hi, Why don't your consumers instead subscribe to a single topic used to broadcast to all of them? That way your consumers and producer will be much simpler. Cheers, Jens – Skickat från Mailbox On Fri, Dec 18, 2015 at 4:16 PM, Abel . wrote: > Hi, > I have this scenario where I need

Re: How to chose the size of a Kafka broker

2016-01-14 Thread Jens Rantil
GB. We chose this configuration > because our Hadoop cluster has that config and can easily handle that > amount of data. > 2. Having a bigger number of brokers but smaller broker config. > > I was hopping that somebody with more experience in using Kafka can advice > on this. >

Re: Partitions and consumer assignment

2016-01-16 Thread Jens Rantil
Hi, You are correct. The others will remain idle. This is why you generally want to have at least the same number of partitions as consumers. Cheers, Jens – Skickat från Mailbox On Sat, Jan 16, 2016 at 2:34 AM, Jason J. W. Williams wrote: > Hi, > I'm trying to make sure I understand

Re: Apache Kafka Topic Design

2016-01-19 Thread Jens Rantil
27;s start with a simple proposal: How about having a single topic with a single partition and you replicate it to two other brokers? You can increase the number of partitions in the future and you have your "guaranteed" (whatever that means) replication. Cheers, Jens -- Jens Rantil Back

Re: Cluster of two nodes?

2016-01-19 Thread Jens Rantil
n each node? -- Jens Rantil Backend engineer Tink AB Email: jens.ran...@tink.se Phone: +46 708 84 18 32 Web: www.tink.se Facebook <https://www.facebook.com/#!/tink.se> Linkedin <http://www.linkedin.com/company/2735919?trk=vsrp_companies_res_photo&trkInfo=VSRPsearchId%3A105

Re: Apache Kafka Topic Design

2016-01-19 Thread Jens Rantil
s to start with, later scaling it up to 10 > such devices. > > How should I model my topic? Should I create one topic per device? > > Thanks and Regards, > Joe > > On Tue, Jan 19, 2016 at 4:58 PM, Jens Rantil wrote: > > > Hi Joe, > > > > I think you

Re: security: encryption at rest and key rotation idea

2016-01-19 Thread Jens Rantil
Hi Josh, Kafka will/can expire message logs after a certain TTL. You can't simply rely on expiration for key rotation? That is, you start to produce messages with a different key while your consumer temporarily handles the overlap of keys for the duration of the TTL. Just an idea, Jens

Re: security: encryption at rest and key rotation idea

2016-01-24 Thread Jens Rantil
n the size of the topic and your replication factor. > > > >-- Jim > > > >On 1/20/16, 10:37 AM, "Josh Wo" wrote: > > > >>Hi Jens, > >>I got your point but some of our use case cannot just rely on TTL. We try > >>to have long expiry f

Dealing with diverse consumption speeds

2016-01-24 Thread Jens Rantil
ition keys occasionally make the Kafka cluster unbalanced etc. On a larger perspective, maybe it would be nice if a consumer group would occasionally rebalance consumers based on lag. Cheers, Jens -- Jens Rantil Backend engineer Tink AB Email: jens.ran...@tink.se Phone: +46 708 84 18 32 Web: www.ti

Only interested in certain partitions

2016-01-27 Thread Jens Rantil
and a topic, when using the new Java consumer, how can I figure out which partition the key will be written to? If not possible, I will file a JIRA. Thanks, Jens -- Jens Rantil Backend engineer Tink AB Email: jens.ran...@tink.se Phone: +46 708 84 18 32 Web: www.tink.se Facebook <ht

Re: Apache Kafka Case Studies

2016-02-03 Thread Jens Rantil
ggestions? > > Thanks and Regards, > Joe > -- Jens Rantil Backend engineer Tink AB Email: jens.ran...@tink.se Phone: +46 708 84 18 32 Web: www.tink.se Facebook <https://www.facebook.com/#!/tink.se> Linkedin <http://www.linkedin.com/company/2735919?trk=vsrp_companies_res_photo

Session timeout and heartbeat interval

2016-02-08 Thread Jens Rantil
nd a second heartbeat. - Why can't session timeout simply be based on heartbeat interval? Could anyone clarify this a bit? Also, if you are writing a new consumer, what is your reasoning when setting these two value? Thanks, Jens -- Jens Rantil Backend engineer Tink AB Email: jens.ran..

Re: Session timeout and heartbeat interval

2016-02-08 Thread Jens Rantil
Hi again, A somewhat related question is also how the heartbeat interval and session timeout relates to the poll timeout. Must the poll timeout always be lower than the heartbeat interval? Cheers, Jens On Monday, February 8, 2016, Jens Rantil wrote: > Hi, > > I am trying to wra

Re: Log message key content into LOG4j

2016-02-10 Thread Jens Rantil
for consumer/ producer side, I'm responsible for > message broker and after 2 years I will have to prove that message exists > on MessageBroker and I can prove that using e.g. logs from this time. ( log > should look like this : Message ID (from message key ) , timestamp ) > > &

Re: LVM overhead

2016-02-11 Thread Jens Rantil
Hi, I suggest you run a micro benchmark and test it for your usecase. Should be pretty straight forward. Cheers, Jens – Skickat från Mailbox On Thu, Feb 11, 2016 at 4:24 PM, yazgoo wrote: > Hi everyone, > I have multiple disks on my broker. > Do you know if there's a noticeable over

Re: Kafka node liveness check

2016-02-29 Thread Jens Rantil
partitionsFor. If it can > return partitioninfo it is considered live. Is this a good approach? > -- Jens Rantil Backend engineer Tink AB Email: jens.ran...@tink.se Phone: +46 708 84 18 32 Web: www.tink.se Facebook <https://www.facebook.com/#!/tink.se> Linkedin <http://www.linkedin.

Re: Fetching meta from Kafka continuously.

2016-02-29 Thread Jens Rantil
ow it has something to do with the > brokers, I would like to know what has happened and what is the best way to > fix it? > > TIA > -- Jens Rantil Backend engineer Tink AB Email: jens.ran...@tink.se Phone: +46 708 84 18 32 Web: www.tink.se Facebook <https://www.facebook.c

Re: Is it possible to configure Kafka Mirror to specify fixed ports to connect to Remote DC

2016-02-29 Thread Jens Rantil
; Best Regards > Munir Khan > > -- Jens Rantil Backend engineer Tink AB Email: jens.ran...@tink.se Phone: +46 708 84 18 32 Web: www.tink.se Facebook <https://www.facebook.com/#!/tink.se> Linkedin <http://www.linkedin.com/company/2735919?trk=vsrp_companies_res_photo&trkInfo=VSR

Re: Unable to start cluster after crash (0.8.2.2)

2016-02-29 Thread Jens Rantil
gt; file modification stamps). This to me would indicate the above comment > assertion is incorrect; we have encountered a non-ISR leader elected even > though it is configured not to do so. > > Any ideas on how to work around this? > > Thank you, > > Tony Sparks >

Re: About the number of partitions

2016-03-02 Thread Jens Rantil
e from a producer must be > consumed by those kinds of consumers. > > Any advice and help would be really appreciated. > > Thanks in advance! > > Best regards > > Kim > -- Jens Rantil Backend engineer Tink AB Email: jens.ran...@tink.se Phone: +46 708 84 1

Re: Kafka Applicability - Large Messages

2016-03-14 Thread Jens Rantil
Just making it more explicit: AFAIK, all Kafka consumers I've seen loads the incoming messages into memory. Unless you make it possible to stream it do disk or something you need to make sure your consumers has the available memory. Cheers, Jens On Fri, Mar 4, 2016 at 6:07 PM Cees de Groot wrote

Re: Kafka topics with infinite retention?

2016-03-14 Thread Jens Rantil
Martin Kleppmann I would expect that someone > had actually implemented some of the ideas they're been pushing. I'd also > like to know what sort of problems Kafka would pose for long-term storage – > would I need special storage nodes, or would replication be sufficient to > ensur

Querying consumer groups programmatically (from Golang)

2017-08-12 Thread Jens Rantil
Hi, I am one of the maintainers of prometheus-kafka-consumer-group-exporter[1], which exports consumer group offsets and lag to Prometheus. The way we currently scrape this information is by periodically executing `kafka-consumer-groups.sh --describe` for each group and parse the output. Recently

Re: Default behavior for full broker

2016-04-21 Thread Jens Rantil
cause other nodes to fill up. Has that ever happened? > Does Kafka have a contingency plan for such a scenario? > > Thank you so much for your insight and all of your hard work! > > Lawrence > -- Jens Rantil Backend Developer @ Tink Tink AB, Wallingatan 5, 111 60 Stockholm, Sweden For urgent matters you can reach me at +46-708-84 18 32.

Re: poll() semantics

2016-04-24 Thread Jens Rantil
't think it is explained in the > > JavaDoc > > > > > > > http://kafka.apache.org/090/javadoc/index.html?org/apache/kafka/clients/consumer/KafkaConsumer.html > > > > Thanks > > > -- Jens Rantil Backend Developer @ Tink Tink AB, Wallingatan 5, 111 60 Stockholm, Sweden For urgent matters you can reach me at +46-708-84 18 32.

Re: Concurrency and KafkaConsumer?

2016-04-25 Thread Jens Rantil
que >- Ensure only one consumer for each topic is running to avoid >re-balancing > > > > -- > -Richard L. Burton III > @rburton > -- Jens Rantil Backend Developer @ Tink Tink AB, Wallingatan 5, 111 60 Stockholm, Sweden For urgent matters you can reach me at +46-708-84 18 32.

Re: Encryption at Rest

2016-04-25 Thread Jens Rantil
Kafka? > >> > >> Thanks, > >> Dave > >> > >> This e-mail and any files transmitted with it are confidential, may > contain sensitive information, and are intended solely for the use of the > individual or entity to whom they are addressed. If

Adding a broker

2016-05-03 Thread Jens Rantil
Hi, When I added a replicated broker to a cluster, will it first stream historical logs from the master? Or will it simply starts storing new messages from producers? Thanks, Jens -- Jens Rantil Backend Developer @ Tink Tink AB, Wallingatan 5, 111 60 Stockholm, Sweden For urgent matters you

Re: Hash partition of key with skew

2016-05-03 Thread Jens Rantil
custom partitioner. > I'd like to know how it was used to solve such data skew. > We can compute some statistics on key distribution offline and use it in > the partitioner. > Is that a good idea? Or is it way too much logic for a partitioner? > Anything else to consider? &g

Re: Kafka Consumer consuming large number of messages

2016-05-04 Thread Jens Rantil
t; upper limit ? Is there any other setting I am missing here ? > I am myself controlling the message size so it's not that some bigger > messages are coming through, each message must be around 200-300 bytes > only. > > Due the large number of messages it is polling, the inner p

Re: How to build kafka jar with all dependencies?

2016-05-05 Thread Jens Rantil
se let > me know if anyone knows. > > > -- > *Regards,* > *Ravi* > -- Jens Rantil Backend engineer Tink AB Email: jens.ran...@tink.se Phone: +46 708 84 18 32 Web: www.tink.se Facebook <https://www.facebook.com/#!/tink.se> Linkedin <http://www.linkedin.com/company/

Re: Large kafka deployment on virtual hardware

2016-05-23 Thread Jens Rantil
t; > > Kind regards, > > > > Jahn Roux > > > > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > -- Jens Rantil Backend Developer @ Tink Tink AB, Wallingatan 5, 111 60 Stockholm, Sweden For urgent matters you can reach me at +46-708-84 18 32.

Re: Kafka encryption

2016-05-26 Thread Jens Rantil
; > > > Snehalata > > > > > > > > - Original Message - > > > > From: "Mudit Kumar" > > > > > To: users@kafka.apache.org > > > > Sent: Tuesday, May 24, 2016 3:53:26 PM > > > > Subject: Re: Kafka e

Impact of reducing topic retention with lagging consumer group

2016-09-11 Thread Jens Rantil
t day of our logs. If I reduce topic retention to 3 days and brokers purge old logs, will consumer groups automagically start consuming from the "new beginning" (that is, new smallest offset)? This would save us some processing time... Thanks, Jens -- Jens Rantil Backend Developer

Balancing based on lag

2016-09-11 Thread Jens Rantil
lag: 2 }, { partition: 1, consumers: "192.168.1.2", lag: 2 }, { partition: 2, consumers: "192.168.1.3", lag: 0 }, ] Clearly, it would be more optimial if "192.168.1.3" also takes care of partition 1. Cheers, Jens -- Jens Rantil Backend engineer Tink A

Re: Balancing based on lag

2016-09-12 Thread Jens Rantil
; balancing for better throughput), so if test publishes 40k messages only, > only two partitions will actually get the data. > > Kind regards, > Stevo Slavic. > > On Sun, Sep 11, 2016, 22:49 Jens Rantil wrote: > > > Hi, > > > > We have a partition which has many m

Large # of Topics/Partitions

2016-09-16 Thread Jens Rantil
gt;> partitions or topics in Kafka and we’re unsure about this approach if we > >> need to triple our event stream. > >> > >> We’re currently looking at 10,000 event streams (or topics) but we don’t > >> want to be spinning up additional brokers just so we can ad

Re: any update on this?

2016-09-19 Thread Jens Rantil
; > > > > -- > > > Jennifer Fountain > DevOPS > -- Jens Rantil Backend Developer @ Tink Tink AB, Wallingatan 5, 111 60 Stockholm, Sweden For urgent matters you can reach me at +46-708-84 18 32.

Re: any update on this?

2016-09-20 Thread Jens Rantil
e goal shouldn't be moving towards consul. It should just > be > > flexible enough for users to pick any distributed coordinated system. > > > > > > > > > > > > > > On Mon, Sep 19, 2016 2:23 AM, Jens Rantil jens.ran...@tink.se > >

Re: Support for Kafka

2016-10-10 Thread Jens Rantil
> T 0203 701 3177 > > > -- > > Follow us on Twitter: @exchangelab <https://twitter.com/exchangelab> | Visit > us on LinkedIn: The Exchange Lab > <https://www.linkedin.com/company/the-exchange-lab> > > > > > -- Jens Rantil Backe

Re: Having 4 Node Kafka Cluster

2017-03-06 Thread Jens Rantil
n only loose one node just like with a three node cluster. Cheers, Jens -- Jens Rantil Backend engineer Tink AB Email: jens.ran...@tink.se Phone: +46 708 84 18 32 Web: www.tink.se Facebook <https://www.facebook.com/#!/tink.se> Linkedin <http://www.linkedin.com/company/2735919?t