rpk cluster quotas alter
Add or delete a client quota.
This command allows you to add or delete a client quota.
A client quota consists of an entity (to whom the quota is applied) and a quota type (what is being applied).
There are three entity types supported by Redpanda: user, client ID, and client ID prefix.
Assigning quotas to default entity types is possible using the --default flag.
You can perform a dry run using the --dry flag.
Examples
This section provides examples of how to use rpk cluster quotas alter.
Add quota (consumer_byte_rate) to client ID <foo>.
rpk cluster quotas alter --add consumer_byte_rate=200000 --name client-id=<foo>
Add quota (consumer_byte_rate) to client ID starting with <bar>-.
rpk cluster quotas alter --add consumer_byte_rate=200000 --name client-id-prefix=<bar>-
Add quota (producer_byte_rate) to default client ID.
rpk cluster quotas alter --add producer_byte_rate=180000 --default client-id
Remove quota (producer_byte_rate) from client ID foo.
rpk cluster quotas alter --delete producer_byte_rate --name client-id=<foo>
Flags
| Value | Type | Description |
|---|---|---|
|
stringSlice |
Key=value quota to add, where the value is a float number ( |
|
stringSlice |
Entity type for default matching, where type is client-id or client-id-prefix ( |
|
stringSlice |
Key of the quota to delete ( |
|
bool |
Dry run: validate the request without altering the quotas. |
|
stringSlice |
Entity for exact matching. Format type=name where type is client-id or client-id-prefix ( |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |