You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/10/26 11:35:40 UTC
[GitHub] [pulsar] Huanli-Meng commented on a change in pull request #8368: [Issue 8364][docs] Update decommission content in different releases
Huanli-Meng commented on a change in pull request #8368:
URL: https://github.com/apache/pulsar/pull/8368#discussion_r511884300
##########
File path: site2/docs/administration-zk-bk.md
##########
@@ -230,15 +230,13 @@ This command creates a new ledger on the local bookie, writes a few entries, rea
### Decommissioning bookies cleanly
Review comment:
```suggestion
### Decommission bookies cleanly
```
##########
File path: site2/docs/administration-zk-bk.md
##########
@@ -230,15 +230,13 @@ This command creates a new ledger on the local bookie, writes a few entries, rea
### Decommissioning bookies cleanly
+When you want to decommission a bookie, the following process is useful to follow in order to verify if the decommissioning was safely done.
-In case the user wants to decommission a bookie, the following process is useful to follow in order to verify if the
-decommissioning was safely done.
-
-#### Before we decommission
+#### Before you decommission
Review comment:
```suggestion
#### Before decommission
```
##########
File path: site2/website/versioned_docs/version-2.6.1/administration-zk-bk.md
##########
@@ -163,17 +163,50 @@ BookKeeper is responsible for all durable message storage in Pulsar. BookKeeper
> For a guide to managing message persistence, retention, and expiry in Pulsar, see [this cookbook](cookbooks-retention-expiry.md).
-### Deploy BookKeeper
+### Hardware considerations
-BookKeeper provides [persistent message storage](concepts-architecture-overview.md#persistent-storage) for Pulsar.
+Bookie hosts are responsible for storing message data on disk. In order for bookies to provide optimal performance, ensuring that the bookies have a suitable hardware configuration is essential. You can choose two key dimensions to bookie hardware capacity:
Review comment:
```suggestion
Bookie hosts are responsible for storing message data on disk. To provide optimal performance, the bookies should have a suitable hardware configuration. You can choose two key dimensions to bookie hardware capacity:
```
##########
File path: site2/docs/administration-zk-bk.md
##########
@@ -252,16 +250,15 @@ If there are, the decommission command will force them to be replicated.
3. Run the decommission command.
If you have logged onto the node you wish to decommission, you don't need to provide `-bookieid`
-If you are running the decommission command for target bookie node from another bookie node you should mention
-the target bookie id in the arguments for `-bookieid`
+If you are running the decommission command for target bookie node from another bookie node you should mention the target bookie id in the arguments for `-bookieid`
`$ bin/bookkeeper shell decommissionbookie`
or
`$ bin/bookkeeper shell decommissionbookie -bookieid <target bookieid>`
-4. Validate that there are no ledgers on decommissioned bookie
+4. Validate that no ledgers are on decommissioned bookie.
Review comment:
```suggestion
4. Validate that no ledgers are on the decommissioned bookie.
```
##########
File path: site2/docs/administration-zk-bk.md
##########
@@ -230,15 +230,13 @@ This command creates a new ledger on the local bookie, writes a few entries, rea
### Decommissioning bookies cleanly
+When you want to decommission a bookie, the following process is useful to follow in order to verify if the decommissioning was safely done.
-In case the user wants to decommission a bookie, the following process is useful to follow in order to verify if the
-decommissioning was safely done.
-
-#### Before we decommission
+#### Before you decommission
1. Ensure state of your cluster can support the decommissioning of the target bookie.
Review comment:
```suggestion
1. Ensure the state of your cluster supports decommissioning the target bookie.
```
##########
File path: site2/docs/administration-zk-bk.md
##########
@@ -230,15 +230,13 @@ This command creates a new ledger on the local bookie, writes a few entries, rea
### Decommissioning bookies cleanly
+When you want to decommission a bookie, the following process is useful to follow in order to verify if the decommissioning was safely done.
Review comment:
To decommission a bookie safely, follow the following process.
##########
File path: site2/docs/administration-zk-bk.md
##########
@@ -230,15 +230,13 @@ This command creates a new ledger on the local bookie, writes a few entries, rea
### Decommissioning bookies cleanly
+When you want to decommission a bookie, the following process is useful to follow in order to verify if the decommissioning was safely done.
-In case the user wants to decommission a bookie, the following process is useful to follow in order to verify if the
-decommissioning was safely done.
-
-#### Before we decommission
+#### Before you decommission
1. Ensure state of your cluster can support the decommissioning of the target bookie.
Check if `EnsembleSize >= Write Quorum >= Ack Quorum` stays true with one less bookie
-2. Ensure target bookie shows up in the listbookies command.
+2. Ensure target bookie shows up in the `listbookies` command.
Review comment:
```suggestion
2. Ensure the target bookie shows up in the `listbookies` command.
```
##########
File path: site2/docs/administration-zk-bk.md
##########
@@ -252,16 +250,15 @@ If there are, the decommission command will force them to be replicated.
3. Run the decommission command.
If you have logged onto the node you wish to decommission, you don't need to provide `-bookieid`
-If you are running the decommission command for target bookie node from another bookie node you should mention
-the target bookie id in the arguments for `-bookieid`
+If you are running the decommission command for target bookie node from another bookie node you should mention the target bookie id in the arguments for `-bookieid`
Review comment:
```suggestion
If you are running the decommission command for the target bookie node from another bookie node, you should mention the target bookie ID in the arguments for `-bookieid`
```
##########
File path: site2/website/versioned_docs/version-2.6.1/administration-zk-bk.md
##########
@@ -163,17 +163,50 @@ BookKeeper is responsible for all durable message storage in Pulsar. BookKeeper
> For a guide to managing message persistence, retention, and expiry in Pulsar, see [this cookbook](cookbooks-retention-expiry.md).
-### Deploy BookKeeper
+### Hardware considerations
Review comment:
Hardware requirements?
##########
File path: site2/website/versioned_docs/version-2.6.1/administration-zk-bk.md
##########
@@ -163,17 +163,50 @@ BookKeeper is responsible for all durable message storage in Pulsar. BookKeeper
> For a guide to managing message persistence, retention, and expiry in Pulsar, see [this cookbook](cookbooks-retention-expiry.md).
-### Deploy BookKeeper
+### Hardware considerations
-BookKeeper provides [persistent message storage](concepts-architecture-overview.md#persistent-storage) for Pulsar.
+Bookie hosts are responsible for storing message data on disk. In order for bookies to provide optimal performance, ensuring that the bookies have a suitable hardware configuration is essential. You can choose two key dimensions to bookie hardware capacity:
-Each Pulsar broker needs to have its own cluster of bookies. The BookKeeper cluster shares a local ZooKeeper quorum with the Pulsar cluster.
+* Disk I/O capacity read/write
+* Storage capacity
-### Configure bookies
+Message entries written to bookies are always synced to disk before returning an acknowledgement to the Pulsar broker. To ensure low write latency, BookKeeper is designed to use multiple devices:
+
+* A **journal** to ensure durability. For sequential writes, having fast [fsync](https://linux.die.net/man/2/fsync) operations on bookie hosts is critical. Typically, small and fast [solid-state drives](https://en.wikipedia.org/wiki/Solid-state_drive) (SSDs) should suffice, or [hard disk drives](https://en.wikipedia.org/wiki/Hard_disk_drive) (HDDs) with a [RAID](https://en.wikipedia.org/wiki/RAID)s controller and a battery-backed write cache. Both solutions can reach fsync latency of ~0.4 ms.
+
+* A **ledger storage device** is where data is stored until all consumers have acknowledged the message. Writes happen in the background, so write I/O is not a big concern. Reads happen sequentially most of the time and the backlog is drained only in case of consumer drain. To store large amounts of data, a typical configuration involves multiple HDDs with a RAID controller.
+
+### Configure BookKeeper
You can configure BookKeeper bookies using the [`conf/bookkeeper.conf`](reference-configuration.md#bookkeeper) configuration file. The most important aspect of configuring each bookie is ensuring that the [`zkServers`](reference-configuration.md#bookkeeper-zkServers) parameter is set to the connection string for local ZooKeeper of the Pulsar cluster.
-### Start up bookies
+Minimum configuration changes required in `conf/bookkeeper.conf` are:
+
+```properties
+# Change to point to journal disk mount point
+journalDirectory=data/bookkeeper/journal
+
+# Point to ledger storage disk mount point
+ledgerDirectories=data/bookkeeper/ledgers
+
+# Point to local ZK quorum
+zkServers=zk1.example.com:2181,zk2.example.com:2181,zk3.example.com:2181
+
+# Change the ledger manager type
+ledgerManagerType=hierarchical
+```
+
+To change the zookeeper root path that Bookkeeper uses, use zkLedgersRootPath=/MY-PREFIX/ledgers instead of zkServers=localhost:2181/MY-PREFIX
Review comment:
```suggestion
To change the ZooKeeper root path that Bookkeeper uses, use `zkLedgersRootPath=/MY-PREFIX/ledgers` instead of `zkServers=localhost:2181/MY-PREFIX`.
```
##########
File path: site2/website/versioned_docs/version-2.6.1/administration-zk-bk.md
##########
@@ -163,17 +163,50 @@ BookKeeper is responsible for all durable message storage in Pulsar. BookKeeper
> For a guide to managing message persistence, retention, and expiry in Pulsar, see [this cookbook](cookbooks-retention-expiry.md).
-### Deploy BookKeeper
+### Hardware considerations
-BookKeeper provides [persistent message storage](concepts-architecture-overview.md#persistent-storage) for Pulsar.
+Bookie hosts are responsible for storing message data on disk. In order for bookies to provide optimal performance, ensuring that the bookies have a suitable hardware configuration is essential. You can choose two key dimensions to bookie hardware capacity:
-Each Pulsar broker needs to have its own cluster of bookies. The BookKeeper cluster shares a local ZooKeeper quorum with the Pulsar cluster.
+* Disk I/O capacity read/write
+* Storage capacity
-### Configure bookies
+Message entries written to bookies are always synced to disk before returning an acknowledgement to the Pulsar broker. To ensure low write latency, BookKeeper is designed to use multiple devices:
+
+* A **journal** to ensure durability. For sequential writes, having fast [fsync](https://linux.die.net/man/2/fsync) operations on bookie hosts is critical. Typically, small and fast [solid-state drives](https://en.wikipedia.org/wiki/Solid-state_drive) (SSDs) should suffice, or [hard disk drives](https://en.wikipedia.org/wiki/Hard_disk_drive) (HDDs) with a [RAID](https://en.wikipedia.org/wiki/RAID)s controller and a battery-backed write cache. Both solutions can reach fsync latency of ~0.4 ms.
Review comment:
```suggestion
* A **journal** to ensure durability. For sequential writes, having fast [fsync](https://linux.die.net/man/2/fsync) operations on bookie hosts is critical. Typically, small and fast [solid-state drives](https://en.wikipedia.org/wiki/Solid-state_drive) (SSDs) should suffice, or [hard disk drives](https://en.wikipedia.org/wiki/Hard_disk_drive) (HDDs) with a [RAID](https://en.wikipedia.org/wiki/RAID) controller and a battery-backed write cache. Both solutions can reach fsync latency of ~0.4 ms.
```
##########
File path: site2/website/versioned_docs/version-2.6.2/administration-zk-bk.md
##########
@@ -197,44 +230,43 @@ $ bin/bookkeeper shell bookiesanity
This command creates a new ledger on the local bookie, writes a few entries, reads them back and finally deletes the ledger.
-### Hardware considerations
-
-Bookie hosts are responsible for storing message data on disk. In order for bookies to provide optimal performance, ensuring that the bookies have a suitable hardware configuration is essential. You can choose two key dimensions to bookie hardware capacity:
-
-* Disk I/O capacity read/write
-* Storage capacity
+### Decommissioning bookies cleanly
-Message entries written to bookies are always synced to disk before returning an acknowledgement to the Pulsar broker. To ensure low write latency, BookKeeper is designed to use multiple devices:
+When you want to decommission a bookie, the following process is useful to follow in order to verify if the decommissioning was safely done.
-* A **journal** to ensure durability. For sequential writes, having fast [fsync](https://linux.die.net/man/2/fsync) operations on bookie hosts is critical. Typically, small and fast [solid-state drives](https://en.wikipedia.org/wiki/Solid-state_drive) (SSDs) should suffice, or [hard disk drives](https://en.wikipedia.org/wiki/Hard_disk_drive) (HDDs) with a [RAID](https://en.wikipedia.org/wiki/RAID)s controller and a battery-backed write cache. Both solutions can reach fsync latency of ~0.4 ms.
-* A **ledger storage device** is where data is stored until all consumers have acknowledged the message. Writes happen in the background, so write I/O is not a big concern. Reads happen sequentially most of the time and the backlog is drained only in case of consumer drain. To store large amounts of data, a typical configuration involves multiple HDDs with a RAID controller.
+#### Before you decommission
+1. Ensure state of your cluster can support the decommissioning of the target bookie.
+Check if `EnsembleSize >= Write Quorum >= Ack Quorum` stays true with one less bookie
+2. Ensure target bookie shows up in the `listbookies` command.
+3. Ensure that there is no other process ongoing (upgrade etc).
-### Configure BookKeeper
+#### Process of Decommissioning
+1. Log on to the bookie node, check if there are underreplicated ledgers.
-you can find configurable parameters for BookKeeper bookies in the [`conf/bookkeeper.conf`](reference-configuration.md#bookkeeper) file.
+If there are, the decommission command will force them to be replicated.
+`$ bin/bookkeeper shell listunderreplicated`
-Minimum configuration changes required in `conf/bookkeeper.conf` are:
+2. Stop the bookie by killing the bookie process. Make sure there are no liveness / readiness probes setup for the bookies to spin them back up if you are deployed in a kubernetes environment.
Review comment:
```suggestion
2. Stop the bookie by killing the bookie process. Make sure there are no liveness/readiness probes setup for the bookies to spin them back up if you are deployed in a kubernetes environment.
```
"if you are deployed in a kubernetes environment", this sentence does not use correct grammatical structure, please improve it.
##########
File path: site2/website/versioned_docs/version-2.6.2/administration-zk-bk.md
##########
@@ -197,44 +230,43 @@ $ bin/bookkeeper shell bookiesanity
This command creates a new ledger on the local bookie, writes a few entries, reads them back and finally deletes the ledger.
-### Hardware considerations
-
-Bookie hosts are responsible for storing message data on disk. In order for bookies to provide optimal performance, ensuring that the bookies have a suitable hardware configuration is essential. You can choose two key dimensions to bookie hardware capacity:
-
-* Disk I/O capacity read/write
-* Storage capacity
+### Decommissioning bookies cleanly
-Message entries written to bookies are always synced to disk before returning an acknowledgement to the Pulsar broker. To ensure low write latency, BookKeeper is designed to use multiple devices:
+When you want to decommission a bookie, the following process is useful to follow in order to verify if the decommissioning was safely done.
-* A **journal** to ensure durability. For sequential writes, having fast [fsync](https://linux.die.net/man/2/fsync) operations on bookie hosts is critical. Typically, small and fast [solid-state drives](https://en.wikipedia.org/wiki/Solid-state_drive) (SSDs) should suffice, or [hard disk drives](https://en.wikipedia.org/wiki/Hard_disk_drive) (HDDs) with a [RAID](https://en.wikipedia.org/wiki/RAID)s controller and a battery-backed write cache. Both solutions can reach fsync latency of ~0.4 ms.
-* A **ledger storage device** is where data is stored until all consumers have acknowledged the message. Writes happen in the background, so write I/O is not a big concern. Reads happen sequentially most of the time and the backlog is drained only in case of consumer drain. To store large amounts of data, a typical configuration involves multiple HDDs with a RAID controller.
+#### Before you decommission
+1. Ensure state of your cluster can support the decommissioning of the target bookie.
+Check if `EnsembleSize >= Write Quorum >= Ack Quorum` stays true with one less bookie
+2. Ensure target bookie shows up in the `listbookies` command.
+3. Ensure that there is no other process ongoing (upgrade etc).
-### Configure BookKeeper
+#### Process of Decommissioning
+1. Log on to the bookie node, check if there are underreplicated ledgers.
Review comment:
```suggestion
1. Log in to the bookie node, check if there are underreplicated ledgers.
```
##########
File path: site2/website/versioned_docs/version-2.6.2/administration-zk-bk.md
##########
@@ -197,44 +230,43 @@ $ bin/bookkeeper shell bookiesanity
This command creates a new ledger on the local bookie, writes a few entries, reads them back and finally deletes the ledger.
-### Hardware considerations
-
-Bookie hosts are responsible for storing message data on disk. In order for bookies to provide optimal performance, ensuring that the bookies have a suitable hardware configuration is essential. You can choose two key dimensions to bookie hardware capacity:
-
-* Disk I/O capacity read/write
-* Storage capacity
+### Decommissioning bookies cleanly
-Message entries written to bookies are always synced to disk before returning an acknowledgement to the Pulsar broker. To ensure low write latency, BookKeeper is designed to use multiple devices:
+When you want to decommission a bookie, the following process is useful to follow in order to verify if the decommissioning was safely done.
-* A **journal** to ensure durability. For sequential writes, having fast [fsync](https://linux.die.net/man/2/fsync) operations on bookie hosts is critical. Typically, small and fast [solid-state drives](https://en.wikipedia.org/wiki/Solid-state_drive) (SSDs) should suffice, or [hard disk drives](https://en.wikipedia.org/wiki/Hard_disk_drive) (HDDs) with a [RAID](https://en.wikipedia.org/wiki/RAID)s controller and a battery-backed write cache. Both solutions can reach fsync latency of ~0.4 ms.
-* A **ledger storage device** is where data is stored until all consumers have acknowledged the message. Writes happen in the background, so write I/O is not a big concern. Reads happen sequentially most of the time and the backlog is drained only in case of consumer drain. To store large amounts of data, a typical configuration involves multiple HDDs with a RAID controller.
+#### Before you decommission
+1. Ensure state of your cluster can support the decommissioning of the target bookie.
+Check if `EnsembleSize >= Write Quorum >= Ack Quorum` stays true with one less bookie
+2. Ensure target bookie shows up in the `listbookies` command.
+3. Ensure that there is no other process ongoing (upgrade etc).
-### Configure BookKeeper
+#### Process of Decommissioning
+1. Log on to the bookie node, check if there are underreplicated ledgers.
-you can find configurable parameters for BookKeeper bookies in the [`conf/bookkeeper.conf`](reference-configuration.md#bookkeeper) file.
+If there are, the decommission command will force them to be replicated.
+`$ bin/bookkeeper shell listunderreplicated`
-Minimum configuration changes required in `conf/bookkeeper.conf` are:
+2. Stop the bookie by killing the bookie process. Make sure there are no liveness / readiness probes setup for the bookies to spin them back up if you are deployed in a kubernetes environment.
-```properties
-# Change to point to journal disk mount point
-journalDirectory=data/bookkeeper/journal
+3. Run the decommission command.
+If you have logged onto the node you wish to decommission, you don't need to provide `-bookieid`
Review comment:
```suggestion
If you have logged in to the node to be decommissioned, you don't need to provide `-bookieid`
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org