Jai
Jai

Reputation: 75

Does an update on the Kafka Log Retention default value requires any downtime?

Is any downtime/restart required for updating the log retention default configuration in Kafka

Property Name - log.retention.hours in Server.Properties

I performed runtime updates for a given topic, but couldn't find a perfect answer.

Upvotes: 1

Views: 305

Answers (1)

Michael Heil
Michael Heil

Reputation: 18495

According to the documentation on Updating Broker Configs you need to restart your broker before this configuration comes into effect:

From Kafka version 1.1 onwards, some of the broker configs can be updated without restarting the broker. See the Dynamic Update Mode column in Broker Configs for the update mode of each broker config.

  • read-only: Requires a broker restart for update

  • per-broker: May be updated dynamically for each broker

  • cluster-wide: May be updated dynamically as a cluster-wide default. May also be updated as a per-broker value for testing.

The description of the configuration log.retention.hours is shown below:

enter image description here

which means an update requires a broker restart.

Upvotes: 1

Related Questions