This is an automated email from the ASF dual-hosted git repository.
heesung pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
The following commit(s) were added to refs/heads/main by this push:
new f5692585aa9f Added split and unload command example (#884)
f5692585aa9f is described below
commit f5692585aa9f6c1e74873766dea6736661f64c18
Author: Heesung Sohn <[email protected]>
AuthorDate: Mon Apr 15 15:43:38 2024 -0700
Added split and unload command example (#884)
---------
Co-authored-by: Dragos Misca <[email protected]>
---
docs/concepts-broker-load-balancing-concepts.md | 30 ++++++++++++++++++++++---
1 file changed, 27 insertions(+), 3 deletions(-)
diff --git a/docs/concepts-broker-load-balancing-concepts.md
b/docs/concepts-broker-load-balancing-concepts.md
index 2b7d5a1f1f1c..68c09e0218fd 100644
--- a/docs/concepts-broker-load-balancing-concepts.md
+++ b/docs/concepts-broker-load-balancing-concepts.md
@@ -173,7 +173,17 @@ Based on the broker resource usage (for example, the
number of topics or session
Step 3: split bundles at the specific boundaries from step 2.
-For how to split bundles manually, see TBD (the docs is WIP, stay tuned!).
+For how to split bundles manually, please refer to
[`split-bundle`](pathname:///reference/#/@pulsar:version_reference@/pulsar-admin/namespaces?id=split-bundle)
admin command.
+
+Examples:
+
+Split the largest bundle at the position that equally divides the topic count,
and unload the child bundles immediately.
+
+`pulsar-admin namespaces split-bundle -b LARGEST -san
topic_count_equally_divide -u my-tenant/my-namespace`
+
+If you already know the target bundle to split, you can specify it using the
`--bundle(-b)` flag:
+
+`pulsar-admin namespaces split-bundle --bundle 0x00000000_0xffffffff
my-tenant/my-namespace`
</TabItem>
@@ -413,7 +423,7 @@ You can unload bundles in the following ways:
- Automatic: enable Pulsar's automatic bundle unloading process when a broker
is overloaded.
-- Manual: trigger bundle splitting manually, to unload a bundle from one
broker to another broker within a Pulsar cluster.
+- Manual: trigger bundle unloading manually, to unload a bundle from one
broker to another broker within a Pulsar cluster.
Bundle unloading methods | Definition | When to use
|---|---|---
@@ -448,7 +458,21 @@ The unloaded bundles are assigned to less loaded brokers,
and the clients connec
When unloading happens, the client experiences a small latency blip while the
topic is reassigned.
-For how to unload bundles automatically, see TBD (the docs is WIP, stay
tuned!).
+For how to unload bundles manually, please refer to
[`unload`](pathname:///reference/#/@pulsar:version_reference@/pulsar-admin/namespaces?id=unload)
admin command.
+
+Examples:
+
+Unload a specific bundle (future topic lookup will assign the bundle to a new
owner broker)
+
+`pulsar-admin namespaces unload my-tenant/my-namespace -b
0x00000000_0xffffffff`
+
+Unload a specific bundle to a destination broker
+
+`pulsar-admin namespaces unload my-tenant/my-namespace -b
0x00000000_0xffffffff -d broker-1`
+
+Unload all bundles in a namespace
+
+`pulsar-admin namespaces unload my-tenant/my-namespace`
</TabItem>
<TabItem value="Manual bundle unloading">