I need to configure Kafka never to delete logs. Looking at their documentation, I see two kinds of parameters that control this:
The "log cleaner", described at http://kafka.apache.org/documentation.html#compaction. It seems that setting
log.cleaner.enable = false
prevents the cleaner from deleting or compacting logs.The "log retention" mechanism, described at http://kafka.apache.org/documentation.html#configuration under
log.retention.<time scales>
. It seems that settinglog.retention.ms = -1
signals infinite retention.
My question is:
What is the relationship between these two mechanisms, are these the only two, and are the above settings necessary and sufficient to prevent logs from ever being deleted?