Skip to content

Commit

Permalink
[Doc] add explanations for setting bookie rack name (#13913)
Browse files Browse the repository at this point in the history
* [Doc] add explanations for setting bookie rack name

* update

* update

* update

* update
  • Loading branch information
Anonymitaet authored Jan 25, 2022
1 parent 5b39913 commit 262c653
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ private class UpdateBookie extends CliCommand {
description = "Bookie address (format: `address:port`)", required = true)
private String bookieAddress;

@Parameter(names = { "-r", "--rack" }, description = "Bookie rack name", required = true)
@Parameter(names = { "-r", "--rack" }, description = "Bookie rack name. "
+ "If you set a bookie rack name to slash (/) "
+ "or an empty string (\"\"): "
+ "if you use Pulsar earlier than 2.7.5, 2.8.3, and 2.9.2, "
+ "an an exception is thrown; "
+ "if you use Pulsar later than 2.7.5, 2.8.3, and 2.9.2, "
+ "it falls back to /default-rack or /default-region/default-rack.", required = true)
private String bookieRack;

@Parameter(names = { "--hostname" }, description = "Bookie host name", required = false)
Expand Down
4 changes: 4 additions & 0 deletions site2/docs/administration-isolation.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ bin/pulsar-admin namespaces set-bookie-affinity-group public/default \
--primary-group group-bookie1
```

> **Note**
>
> Do not set a bookie rack name to slash (`/`) or an empty string (`""`) if you use Pulsar earlier than 2.7.5, 2.8.3, and 2.9.2. For the bookie rack name restrictions, see [pulsar-admin bookies set-bookie-rack](https://pulsar.apache.org/tools/pulsar-admin/).
<!--REST API-->

[POST /admin/v2/namespaces/{tenant}/{namespace}/persistence/bookieAffinity](https://pulsar.apache.org/admin-rest-api/?version=master&apiversion=v2#operation/setBookieAffinityGroup)
Expand Down

0 comments on commit 262c653

Please sign in to comment.