kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Will Weber <rwawe...@gmail.com>
Subject How to manipulate client settings through AdminAPI?
Date Mon, 08 Oct 2018 15:58:46 GMT
Hey all,

Working on a tool for Kafka lifecycle management and one of the features
we're keen to try to wrap is user quotas.

This capability definitely exists through sets of scripts included with
Kafka, case and point: https://kafka.apache.org/documentation/#quotas

For context:

> bin/kafka-configs.sh  --zookeeper localhost:2181 --alter --add-config
--entity-type users --entity-name user1 --entity-type clients --entity-name

Updated config for entity: user-principal 'user1', client-id 'clientA'.

Which would set limits on a given client.

Based on this command, it leads me to believe that the
is probably the way to go.

However, I noticed that in the ConfigResource.Type
 enum, there are only Broker, Unknown and Topic options. Naively, I imagine
there to be a corresponding Enum to match the entity-type flag options as
well, but no such luck.

Anyone have recommendations as to how I could go about enforcing quotas
through the admin api?

Mostly just looking for a nudge in the right direction, any help is



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message