-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Joyce Fee <102751339+Feediver1@users.noreply.github.com>
- Loading branch information
Showing
13 changed files
with
342 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 81 additions & 0 deletions
81
modules/reference/pages/rpk/rpk-cluster/rpk-cluster-quotas-alter.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
= rpk cluster quotas alter | ||
:description: rpk cluster quotas alter | ||
|
||
Add or delete a client quota. | ||
|
||
A client quota consists of an entity (to which the quota is applied) and a quota type (what is being applied). | ||
|
||
There are two entity types supported by Redpanda: client ID and client ID prefix. Use the `--default` flag to assign quotas to default entity types. | ||
|
||
You can perform a dry run using the `--dry` flag. | ||
|
||
== Usage | ||
|
||
[,bash] | ||
---- | ||
rpk cluster quotas alter [flags] | ||
---- | ||
|
||
== Flags | ||
|
||
[cols="1m,1a,2a"] | ||
|=== | ||
|*Value* |*Type* |*Description* | ||
|
||
|--add |strings |Key=value quota to add, where the value is a float number (repeatable). | ||
|
||
|--default |strings |Entity type for default matching, where type is client-id or client-id-prefix (repeatable). | ||
|
||
|--delete |strings |Key of the quota to delete (repeatable). | ||
|
||
|--dry |- |Key of the quota to delete (repeatable). | ||
|
||
|--format |string |Output format. Possible values: `json`, `yaml`, `text`, `wide`, `help`. Default: `text`. | ||
|
||
|-h, --help |- |Help for alter. | ||
|
||
|--name |strings |Entity for exact matching. Format `type=name` where `type` is the `client-id` or `client-id-prefix` (repeatable). | ||
|
||
|--config |string |Redpanda or `rpk` config file; default search paths are `~/.config/rpk/rpk.yaml`, `$PWD`, and `/etc/redpanda/redpanda.yaml`. | ||
|
||
|-X, --config-opt |stringArray |Override `rpk` configuration settings. See xref:reference:rpk/rpk-x-options.adoc[`rpk -X`] or execute `rpk -X help` for inline detail or `rpk -X list` for terser detail. | ||
|
||
|--profile |string |Profile to use. See xref:reference:rpk/rpk-profile.adoc[`rpk profile`] for more details. | ||
|
||
|-v, --verbose |- |Enable verbose logging. | ||
|=== | ||
|
||
|
||
== Examples | ||
|
||
Add quota (consumer_byte_rate) to client ID `<foo>`: | ||
|
||
[,bash] | ||
---- | ||
rpk cluster quotas alter --add consumer_byte_rate=200000 \ | ||
--name client-id=<foo> | ||
---- | ||
|
||
Add quota (consumer_byte_rate) to client ID starting with `<bar>-`: | ||
|
||
[,bash] | ||
---- | ||
rpk cluster quotas alter --add consumer_byte_rate=200000 \ | ||
--name client-id-prefix=<bar>- | ||
---- | ||
|
||
Add quota (producer_byte_rate) to default client ID: | ||
|
||
[,bash] | ||
---- | ||
rpk cluster quotas alter --add producer_byte_rate=180000 \ | ||
--default client-id=foo | ||
---- | ||
|
||
Remove quota (producer_byte_rate) from client ID `foo`: | ||
|
||
[,bash] | ||
---- | ||
rpk cluster quotas alter --delete producer_byte_rate \ | ||
--name client-id=<foo> | ||
---- |
67 changes: 67 additions & 0 deletions
67
modules/reference/pages/rpk/rpk-cluster/rpk-cluster-quotas-describe.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
= rpk cluster quotas describe | ||
:description: rpk cluster quotas describe | ||
|
||
Describe client quotas. | ||
|
||
This command describes client quotas that match the provided filtering criteria. Running the command without filters returns all client quotas. Use the | ||
`--strict` flag for strict matching, which means that the only quotas returned exactly match the filters. | ||
|
||
You can specify filters in terms of entities. An entity consists of either a client ID or a client ID prefix. | ||
|
||
== Usage | ||
|
||
[,bash] | ||
---- | ||
rpk cluster quotas describe [flags] | ||
---- | ||
|
||
== Flags | ||
|
||
[cols="1m,1a,2a"] | ||
|=== | ||
|*Value* |*Type* |*Description* | ||
|
||
|--any |strings |Type for any matching (names or default), where type is `client-id` or `client-id-prefix` (repeatable). | ||
|
||
|--default |strings |Type for default matching, where type is `client-id` or `client-id-prefix` (repeatable). | ||
|
||
|--format |string |Output format. Possible values: `json`, `yaml`, `text`, `wide`, `help`. Default: `text`. | ||
|
||
|-h, --help |- |Help for describe. | ||
|
||
|--name |strings |The `type=name` pair for exact name matching, where type is `client-id` or `client-id-prefix` (repeatable). | ||
|
||
|--strict |- |Specifies whether matches are strict. If `true`, entities with unspecified entity types are excluded. | ||
|
||
|--config |string |Redpanda or `rpk` config file; default search paths are `~/.config/rpk/rpk.yaml`, `$PWD`, and `/etc/redpanda/redpanda.yaml`. | ||
|
||
|-X, --config-opt |stringArray |Override `rpk` configuration settings. See xref:reference:rpk/rpk-x-options.adoc[`rpk -X`] or execute `rpk -X help` for inline detail or `rpk -X list` for terser detail. | ||
|
||
|--profile |string |Profile to use. See xref:reference:rpk/rpk-profile.adoc[`rpk profile`] for more details. | ||
|
||
|-v, --verbose |- |Enable verbose logging. | ||
|=== | ||
|
||
|
||
== Examples | ||
|
||
Describe all client quotas: | ||
|
||
[,bash] | ||
---- | ||
rpk cluster quotas describe | ||
---- | ||
|
||
Describe all client quota with client ID `<foo>`: | ||
|
||
[,bash] | ||
---- | ||
rpk cluster quotas describe --name client-id=<foo> | ||
---- | ||
|
||
Describe client quotas for a given client ID prefix `<bar>.`: | ||
|
||
[,bash] | ||
---- | ||
rpk cluster quotas describe --name client-id=<bar>. | ||
---- |
37 changes: 37 additions & 0 deletions
37
modules/reference/pages/rpk/rpk-cluster/rpk-cluster-quotas.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
= rpk cluster quotas | ||
:description: rpk cluster quotas | ||
|
||
Manage Redpanda client quotas. | ||
|
||
== Usage | ||
|
||
[,bash] | ||
---- | ||
rpk cluster quotas [command] [flags] | ||
---- | ||
|
||
== Aliases | ||
|
||
[,bash] | ||
---- | ||
quotas, quota | ||
---- | ||
|
||
== Flags | ||
|
||
[cols="1m,1a,2a"] | ||
|=== | ||
|*Value* |*Type* |*Description* | ||
|
||
|--format |string |Output format. Possible values: `json`, `yaml`, `text`, `wide`, `help`. Default: `text`. | ||
|
||
|-h, --help |- |Help for quotas. | ||
|
||
|--config |string |Redpanda or `rpk` config file; default search paths are `~/.config/rpk/rpk.yaml`, `$PWD`, and `/etc/redpanda/redpanda.yaml`. | ||
|
||
|-X, --config-opt |stringArray |Override `rpk` configuration settings. See xref:reference:rpk/rpk-x-options.adoc[`rpk -X`] or execute `rpk -X help` for inline detail or `rpk -X list` for terser detail. | ||
|
||
|--profile |string |Profile to use. See xref:reference:rpk/rpk-profile.adoc[`rpk profile`] for more details. | ||
|
||
|-v, --verbose |- |Enable verbose logging. | ||
|=== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.