Azhar Ahmed created KAFKA-18637:
-----------------------------------

             Summary: Dynamic override for max.connections.per.ip is not honored
                 Key: KAFKA-18637
                 URL: https://issues.apache.org/jira/browse/KAFKA-18637
             Project: Kafka
          Issue Type: Bug
          Components: config
            Reporter: Azhar Ahmed


After dynamically modifying the max.connections.per.ip configuration from 1000 
to 10000, the update initially worked as expected. However, after multiple 
broker restarts, the value reverted to 1000, leading to numerous connection 
closures.

This issue occurs because the max.connections.per.ip and 
max.connections.per.ip.override configurations are defined using val. As a 
result, the values set in server.properties are assigned at initialization, and 
the KafkaConfig reference used by SocketServer continues to hold the initial 
static value.

Client Logs when multiple perf producer clients are started on the same machine

{code:java}
2025-01-24 02:17:02,953] WARN [Producer clientId=perf-producer-client] 
Bootstrap broker <Bootstrap broker URL>:9092 (id: -1 rack: null) disconnected 
(org.apache.kafka.clients.NetworkClient)
[2025-01-24 02:17:04,008] WARN [Producer clientId=perf-producer-client] 
Bootstrap broker <Bootstrap broker URL>:9092 (id: -1 rack: null) disconnected 
(org.apache.kafka.clients.NetworkClient)
[2025-01-24 02:17:04,912] WARN [Producer clientId=perf-producer-client] 
Bootstrap broker <Bootstrap broker URL>:9092 (id: -1 rack: null) disconnected
{code}




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to