cp-docker-images
cp-docker-images copied to clipboard
Setting connections.max.idle.ms does not work
I'm trying to set connections.max.idle.ms
property, but it doesn't seem to be working.
According to kafka documentation all is needed is to add a prefix CONNECT_
and replace periods with underscores.
Here's how I'm trying to set it in my docker-compose file:
environment:
CONNECT_CONNECTIONS_MAX_IDLE_MS: 10000
...
but when I'm checking the logs of kafka connect the property is remaining unchanged:
[main] INFO org.apache.kafka.clients.admin.AdminClientConfig - AdminClientConfig values: bootstrap.servers = [kafka:29092] client.dns.lookup = default client.id = connections.max.idle.ms = 300000 ...
Could you please point me to what I'm doing wrong here?
Thank you.
Update:
I also tried using following properties:
CONNECT_ADMIN_OVERRIDE_CONNECTIONS_MAX_IDLE_MS
CONNECT_CONSUMER_OVERRIDE_CONNECTIONS_MAX_IDLE_MS
but this did not work as well.