diff --git a/site2/docs/reference-pulsar-admin.md b/site2/docs/reference-pulsar-admin.md index 4564aa758c1c6..935b0f2b0ae91 100644 --- a/site2/docs/reference-pulsar-admin.md +++ b/site2/docs/reference-pulsar-admin.md @@ -391,6 +391,7 @@ Subcommands * `stats` * `list` * `querystate` +* `putstate` * `trigger` @@ -696,6 +697,23 @@ Options |`--tenant`|The function's tenant|| |`-w`, `--watch`|Watch for changes in the value associated with a key for a Pulsar Function|false| +### `putstate` +Put a key/value pair to the state associated with a Pulsar Function + +Usage +```bash +$ pulsar-admin functions putstate options +``` + +Options + +|Flag|Description|Default| +|---|---|---| +|`--fqfn`|The Fully Qualified Function Name (FQFN) for the Pulsar Function|| +|`--name`|The name of a Pulsar Function|| +|`--namespace`|The namespace of a Pulsar Function|| +|`--tenant`|The tenant of a Pulsar Function|| +|`-s`, `--state`|The FunctionState that needs to be put|| ### `trigger` Triggers the specified Pulsar Function with a supplied value @@ -757,6 +775,8 @@ Subcommands * `split-bundle` * `set-dispatch-rate` * `get-dispatch-rate` +* `set-replicator-dispatch-rate` +* `get-replicator-dispatch-rate` * `set-subscribe-rate` * `get-subscribe-rate` * `set-subscription-dispatch-rate` @@ -1130,6 +1150,29 @@ Usage $ pulsar-admin namespaces get-dispatch-rate tenant/namespace ``` +### set-replicator-dispatch-rate +Set replicator message-dispatch-rate for all topics of the namespace + +Usage +```bash +$ pulsar-admin namespaces set-replicator-dispatch-rate tenant/namespace options +``` + +Options +|Flag|Description|Default| +|----|---|---| +|`-bd`, `--byte-dispatch-rate`|The byte dispatch rate (default -1 will be overwrite if not passed)|-1| +|`-dt`, `--dispatch-rate-period`|The dispatch rate period in second type (default 1 second will be overwrite if not passed)|1| +|`-md`, `--msg-dispatch-rate`|The message dispatch rate (default -1 will be overwrite if not passed)|-1| + +### get-replicator-dispatch-rate +Get replicator configured message-dispatch-rate for all topics of the namespace (Disabled if value < 0) + +Usage +```bash +$ pulsar-admin namespaces get-replicator-dispatch-rate tenant/namespace +``` + ### `set-subscribe-rate` Set subscribe-rate per consumer for all topics of the namespace