RE: log compaction v log rotation - best of the two worlds

2018-03-21 Thread Kopacki, Tomasz (Nokia - PL/Wroclaw)
karls...@csi.se] Sent: Wednesday, March 21, 2018 11:21 AM To: users@kafka.apache.org Subject: Re: log compaction v log rotation - best of the two worlds alt1) if you can store a generation counter in the value of the "latest value" topic you could do as follows topic latest_value key [id] top

Re: log compaction v log rotation - best of the two worlds

2018-03-21 Thread Svante Karlsson
> > Tomasz Kopacki > > DevOps Engineer @ Nokia > > > > -Original Message- > > From: Manikumar [mailto:manikumar.re...@gmail.com] > > Sent: Wednesday, March 21, 2018 11:03 AM > > To: users@kafka.apache.org > > Subject: Re: log compaction v log rot

Re: log compaction v log rotation - best of the two worlds

2018-03-21 Thread Manikumar
e 'old' messages because I > > need to do this based of the lifecycle of the resource not just their > age. > > > > > > > > Sincerely, > > Tomasz Kopacki > > DevOps Engineer @ Nokia > > > > -Original Message- > > From: Manikumar [ma

RE: log compaction v log rotation - best of the two worlds

2018-03-21 Thread Kopacki, Tomasz (Nokia - PL/Wroclaw)
heir age. > > > > Sincerely, > Tomasz Kopacki > DevOps Engineer @ Nokia > > -Original Message- > From: Manikumar [mailto:manikumar.re...@gmail.com] > Sent: Wednesday, March 21, 2018 10:17 AM > To: users@kafka.apache.org > Subject: Re: log compaction v l

Re: log compaction v log rotation - best of the two worlds

2018-03-21 Thread Manikumar
; From: Manikumar [mailto:manikumar.re...@gmail.com] > Sent: Wednesday, March 21, 2018 10:17 AM > To: users@kafka.apache.org > Subject: Re: log compaction v log rotation - best of the two worlds > > We can enable both compaction and retention for a topic by setting > cleanup.policy=&q

RE: log compaction v log rotation - best of the two worlds

2018-03-21 Thread Kopacki, Tomasz (Nokia - PL/Wroclaw)
bject: Re: log compaction v log rotation - best of the two worlds We can enable both compaction and retention for a topic by setting cleanup.policy="delete,compact" http://kafka.apache.org/documentation/#topicconfigs Does this handle your requirement? On Wed, Mar 21, 2018 at 2:3

Re: log compaction v log rotation - best of the two worlds

2018-03-21 Thread Manikumar
We can enable both compaction and retention for a topic by setting cleanup.policy="delete,compact" http://kafka.apache.org/documentation/#topicconfigs Does this handle your requirement? On Wed, Mar 21, 2018 at 2:36 PM, Kopacki, Tomasz (Nokia - PL/Wroclaw) < tomasz.kopa...@nokia.com> wrote: > Hi,