...
If per-IP quota is not configured, the default value is Int.MaxValue to ensure backward compatibility.
Tools
kafka-configs.sh
will be extended to support per-IP connection rate quotas. A new entity type “ips
” will be added with the following key (and a value of type Int):
connection_creation_rate
: The total connection rate limit for the connections from a specific IP address.
For example:
bin/kafka-configs --bootstrap-server localhost:9091 --alter --add-config 'connection_creation_rate=100' --entity-name 93.284.53.13 --entity-type ips
Default connection rate quotas for an IP address can be configured by omitting entity name. For example:
bin/kafka-configs --bootstrap-server localhost:9091 --alter --add-config 'connection_creation_rate=100' --entity-type ips
Connection rate throttling behavior
...