A Kafka cluster is a limited resource that is used jointly by multiple clients. If some clients use a lot of resources, other clients may not be able to use the Kafka cluster. Using quota registration, usage can be allocated to each client to prevent some clients from using the cluster exclusively.
You can register quotas for each client by accessing the cluster settings screen through the Settings menu on the left side of the screen and selecting the Client Quotas tab at the top.
Quota registration
You can register a new quota item using the Add quotas icon at the top of the quota list. Quota items are applied per broker, so the total quota varies depending on the number of brokers.
The following fields are available:
- Type. Types of Quota Targets
- Kafka User. Kafka user. Authentication must be set up.
- Client ID. Client ID set when creating a producer/consumer.
- IP Address. Host IP address where the client runs.
- Target. Quota target. Username, Client ID, or IP Address, based on the Type selected.
- Quota Type. Quota items. Applies to each broker.
- Producer byte rate. Producer bytes per second rate threshold.
- Consumer byte rate. Producer bytes per second rate threshold.
- Request percentage. Percentage of time available to I/O threads and network threads for requests. Maximum (number of I/O threads + number of network threads) x 100%.
- Value. Set values according to the quota type.