Retetnion #7422
-
Hi Can I make some topic be retained for ever? Until I drop and recreated the topic? we have a unique situation for the topic to hold moment of truth data, which till recreated need to be retained on topic? is that something possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
From a configuration this is something possible with Kafka. |
Beta Was this translation helpful? Give feedback.
From a configuration this is something possible with Kafka.
You should set the
log.retention.ms
at-1
which will apply no time limit. More info log.retention.msTaking into account that the
log.retention.bytes
is-1
by default, you should have retention "forever" and not deleting on size or time.Of course, it could be dangerous because your disk could be run out of space if log segments are not deleted periodically and you could have a not working broker soon (even not able to start).