Set the log.retention.bytes in broker.yml #7146
-
Hi! Simple question. I am setting properties like following in the kafka.spec.config part within the strimzi broker.yaml:
and apply it to k8s. But when I do exec into one of my kafka broker pod I see that the value in the server.properties file is still commented out (/opt/kafka/server.properties):
Am I missing something here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
First of all, the |
Beta Was this translation helpful? Give feedback.
First of all, the
/opt/kafka/server.properties
files is not used for anything. The used properties file is in/tmp
. Also, the properties file shows the settings which were used when the broker started. But many Kafka options can be dynamically configured. In whihc case the broker will change them through the Kafka APIs and they will be used but not visible in the properties file until the next broker restart. This is to avoid unnecessary restarts.