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 2021/02/24 12:17:26 UTC
[GitHub] [pulsar] yufan022 opened a new pull request #9696: [docs] Add documents for Aliyun OSS offload
yufan022 opened a new pull request #9696:
URL: https://github.com/apache/pulsar/pull/9696
Fixes #8887
### Motivation
Add Aliyun OSS offload document.
### Modifications
add document
----------------------------------------------------------------
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
[GitHub] [pulsar] yufan022 commented on a change in pull request #9696: [docs] Add documents for Aliyun OSS offload
Posted by GitBox <gi...@apache.org>.
yufan022 commented on a change in pull request #9696:
URL: https://github.com/apache/pulsar/pull/9696#discussion_r610601147
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,217 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
+
+### Step
+
+This example uses Pulsar 2.8.0.
+
+1. Download the Pulsar tarball, see [here](https://pulsar.apache.org/docs/en/standalone/#install-pulsar-using-binary-release).
+
+2. Download and untar the Pulsar offloaders package, then copy the Pulsar offloaders as `offloaders` in the Pulsar directory, see [here](https://pulsar.apache.org/docs/en/standalone/#install-tiered-storage-offloaders-optional).
+
+ **Output**
+
+ As shown from the output, Pulsar uses [Apache jclouds](https://jclouds.apache.org) to support [AWS S3](https://aws.amazon.com/s3/), [GCS](https://cloud.google.com/storage/), [Azure](https://portal.azure.com/#home), and [Aliyun OSS](https://www.aliyun.com/product/oss) for long-term storage.
+
+ ```
+ tiered-storage-file-system-2.8.0.nar
+ tiered-storage-jcloud-2.8.0.nar
+ ```
+
+ > **Note**
+ >
+ > * If you are running Pulsar in a bare-metal cluster, make sure that `offloaders` tarball is unzipped in every broker's Pulsar directory.
+ >
+ > * If you are running Pulsar in Docker or deploying Pulsar using a Docker image (such as K8s and DCOS), you can use the `apachepulsar/pulsar-all` image. The `apachepulsar/pulsar-all` image has already bundled tiered storage offloaders.
+
+## Configuration
+
+> **Note**
+>
+> Before offloading data from BookKeeper to Aliyun OSS, you need to configure some properties of the Aliyun OSS offload driver.
+
+Besides, you can also configure the Aliyun OSS offloader to run it automatically or trigger it manually.
+
+### Configure Aliyun OSS offloader driver
+
+You can configure the Aliyun OSS offloader driver in the configuration file `broker.conf` or `standalone.conf`.
+
+- **Required** configurations are as below.
+
+ | Required configuration | Description | Example value |
+ | --- | --- |--- |
+ | `managedLedgerOffloadDriver` | Offloader driver name, which is case-insensitive. | aliyun-oss |
+ | `offloadersDirectory` | Offloader directory | offloaders |
+ | `managedLedgerOffloadBucket` | Bucket | pulsar-topic-offload |
+ | `managedLedgerOffloadServiceEndpoint` | Endpoint | http://oss-cn-hongkong.aliyuncs.com |
+
+- **Optional** configurations are as below.
+
+ | Optional | Description | Example value |
+ | --- | --- | --- |
+ | `managedLedgerOffloadReadBufferSizeInBytes` | Size of block read | 1 MB |
+ | `managedLedgerOffloadMaxBlockSizeInBytes` | Size of block write | 64 MB |
+ | `managedLedgerMinLedgerRolloverTimeMinutes` | Minimum time between ledger rollover for a topic<br><br>**Note**: it is not recommended that you set this configuration in the production environment. | 2 |
+ | `managedLedgerMaxEntriesPerLedger` | Maximum number of entries to append to a ledger before triggering a rollover.<br><br>**Note**: it is not recommended that you set this configuration in the production environment. | 5000 |
+
+#### Bucket (required)
+
+A bucket is a basic container that holds your data. Everything you store in Aliyun OSS must be contained in a bucket. You can use a bucket to organize your data and control access to your data, but unlike directory and folder, you cannot nest a bucket.
+
+##### Example
+
+This example names the bucket as _pulsar-topic-offload_.
+
+```conf
+managedLedgerOffloadBucket=pulsar-topic-offload
+```
+
+#### Endpoint (required)
+
+The endpoint is the region where a bucket is located.
+
+> **Tip**
+>
+> For more information about Aliyun OSS regions and endpoints, see [International website](https://www.alibabacloud.com/help/doc-detail/31837.htm) or [Chinese website](https://help.aliyun.com/document_detail/31837.html).
+
+##### Example
+
+This example sets the endpoint as _oss-us-west-1-internal_.
+
+```
+managedLedgerOffloadServiceEndpoint=http://oss-us-west-1-internal.aliyuncs.com
+```
+
+#### Authentication (required)
+
+To be able to access Aliyun OSS, you need to authenticate with Aliyun OSS.
+
+Set the environment variables `ALIYUN_OSS_ACCESS_KEY_ID` and `ALIYUN_OSS_ACCESS_KEY_SECRET` in `conf/pulsar_env.sh`.
+
+"export" is important so that the variables are made available in the environment of spawned processes.
+
+```bash
+export ALIYUN_OSS_ACCESS_KEY_ID=ABC123456789
+export ALIYUN_OSS_ACCESS_KEY_SECRET=ded7db27a4558e2ea8bbf0bf37ae0e8521618f366c
+```
+
+#### Size of block read/write
+
+You can configure the size of a request sent to or read from Aliyun OSS in the configuration file `broker.conf` or `standalone.conf`.
+
+| Configuration | Description | Default value |
+| --- | --- | --- |
+| `managedLedgerOffloadReadBufferSizeInBytes` | Block size for each individual read when reading back data from Aliyun OSS. | 1 MB |
+| `managedLedgerOffloadMaxBlockSizeInBytes` | Maximum size of a "part" sent during a multipart upload to Aliyun OSS. It **cannot** be smaller than 5 MB. | 64 MB |
+
+### Run Aliyun OSS offloader automatically
+
+Namespace policy can be configured to offload data automatically once a threshold is reached. The threshold is based on the size of data that a topic has stored on a Pulsar cluster. Once the topic reaches the threshold, an offloading operation is triggered automatically.
+
+| Threshold value | Action |
+| --- | --- |
+| > 0 | It triggers the offloading operation if the topic storage reaches its threshold. |
+| = 0 | It causes a broker to offload data as soon as possible. |
+| < 0 | It disables automatic offloading operation. |
+
+Automatic offloading runs when a new segment is added to a topic log. If you set the threshold on a namespace, but few messages are being produced to the topic, the offloader does not work until the current segment is full.
+
+You can configure the threshold size using CLI tools, such as pulsar-admin.
+
+The offload configurations in `broker.conf` and `standalone.conf` are used for the namespaces that do not have namespace level offload policies. Each namespace can have its own offload policy. If you want to set offload policy for each namespace, use the command [`pulsar-admin namespaces set-offload-policies options`](http://pulsar.apache.org/tools/pulsar-admin/2.6.0-SNAPSHOT/#-em-set-offload-policies-em-) command.
+
+#### Example
+
+This example sets the Aliyun OSS offloader threshold size to 10 MB using pulsar-admin.
+
+```bash
+bin/pulsar-admin namespaces set-offload-threshold --size 10M my-tenant/my-namespace
+```
+
+> #### Tip
Review comment:
Fixed
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,217 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
+
+### Step
+
+This example uses Pulsar 2.8.0.
+
+1. Download the Pulsar tarball, see [here](https://pulsar.apache.org/docs/en/standalone/#install-pulsar-using-binary-release).
+
+2. Download and untar the Pulsar offloaders package, then copy the Pulsar offloaders as `offloaders` in the Pulsar directory, see [here](https://pulsar.apache.org/docs/en/standalone/#install-tiered-storage-offloaders-optional).
+
+ **Output**
+
+ As shown from the output, Pulsar uses [Apache jclouds](https://jclouds.apache.org) to support [AWS S3](https://aws.amazon.com/s3/), [GCS](https://cloud.google.com/storage/), [Azure](https://portal.azure.com/#home), and [Aliyun OSS](https://www.aliyun.com/product/oss) for long-term storage.
+
+ ```
+ tiered-storage-file-system-2.8.0.nar
+ tiered-storage-jcloud-2.8.0.nar
+ ```
+
+ > **Note**
+ >
+ > * If you are running Pulsar in a bare-metal cluster, make sure that `offloaders` tarball is unzipped in every broker's Pulsar directory.
+ >
+ > * If you are running Pulsar in Docker or deploying Pulsar using a Docker image (such as K8s and DCOS), you can use the `apachepulsar/pulsar-all` image. The `apachepulsar/pulsar-all` image has already bundled tiered storage offloaders.
+
+## Configuration
+
+> **Note**
+>
+> Before offloading data from BookKeeper to Aliyun OSS, you need to configure some properties of the Aliyun OSS offload driver.
+
+Besides, you can also configure the Aliyun OSS offloader to run it automatically or trigger it manually.
+
+### Configure Aliyun OSS offloader driver
+
+You can configure the Aliyun OSS offloader driver in the configuration file `broker.conf` or `standalone.conf`.
+
+- **Required** configurations are as below.
+
+ | Required configuration | Description | Example value |
+ | --- | --- |--- |
+ | `managedLedgerOffloadDriver` | Offloader driver name, which is case-insensitive. | aliyun-oss |
+ | `offloadersDirectory` | Offloader directory | offloaders |
+ | `managedLedgerOffloadBucket` | Bucket | pulsar-topic-offload |
+ | `managedLedgerOffloadServiceEndpoint` | Endpoint | http://oss-cn-hongkong.aliyuncs.com |
+
+- **Optional** configurations are as below.
+
+ | Optional | Description | Example value |
+ | --- | --- | --- |
+ | `managedLedgerOffloadReadBufferSizeInBytes` | Size of block read | 1 MB |
+ | `managedLedgerOffloadMaxBlockSizeInBytes` | Size of block write | 64 MB |
+ | `managedLedgerMinLedgerRolloverTimeMinutes` | Minimum time between ledger rollover for a topic<br><br>**Note**: it is not recommended that you set this configuration in the production environment. | 2 |
+ | `managedLedgerMaxEntriesPerLedger` | Maximum number of entries to append to a ledger before triggering a rollover.<br><br>**Note**: it is not recommended that you set this configuration in the production environment. | 5000 |
+
+#### Bucket (required)
+
+A bucket is a basic container that holds your data. Everything you store in Aliyun OSS must be contained in a bucket. You can use a bucket to organize your data and control access to your data, but unlike directory and folder, you cannot nest a bucket.
+
+##### Example
+
+This example names the bucket as _pulsar-topic-offload_.
+
+```conf
+managedLedgerOffloadBucket=pulsar-topic-offload
+```
+
+#### Endpoint (required)
+
+The endpoint is the region where a bucket is located.
+
+> **Tip**
+>
+> For more information about Aliyun OSS regions and endpoints, see [International website](https://www.alibabacloud.com/help/doc-detail/31837.htm) or [Chinese website](https://help.aliyun.com/document_detail/31837.html).
+
+##### Example
+
+This example sets the endpoint as _oss-us-west-1-internal_.
+
+```
+managedLedgerOffloadServiceEndpoint=http://oss-us-west-1-internal.aliyuncs.com
+```
+
+#### Authentication (required)
+
+To be able to access Aliyun OSS, you need to authenticate with Aliyun OSS.
+
+Set the environment variables `ALIYUN_OSS_ACCESS_KEY_ID` and `ALIYUN_OSS_ACCESS_KEY_SECRET` in `conf/pulsar_env.sh`.
+
+"export" is important so that the variables are made available in the environment of spawned processes.
+
+```bash
+export ALIYUN_OSS_ACCESS_KEY_ID=ABC123456789
+export ALIYUN_OSS_ACCESS_KEY_SECRET=ded7db27a4558e2ea8bbf0bf37ae0e8521618f366c
+```
+
+#### Size of block read/write
+
+You can configure the size of a request sent to or read from Aliyun OSS in the configuration file `broker.conf` or `standalone.conf`.
+
+| Configuration | Description | Default value |
+| --- | --- | --- |
+| `managedLedgerOffloadReadBufferSizeInBytes` | Block size for each individual read when reading back data from Aliyun OSS. | 1 MB |
+| `managedLedgerOffloadMaxBlockSizeInBytes` | Maximum size of a "part" sent during a multipart upload to Aliyun OSS. It **cannot** be smaller than 5 MB. | 64 MB |
+
+### Run Aliyun OSS offloader automatically
+
+Namespace policy can be configured to offload data automatically once a threshold is reached. The threshold is based on the size of data that a topic has stored on a Pulsar cluster. Once the topic reaches the threshold, an offloading operation is triggered automatically.
+
+| Threshold value | Action |
+| --- | --- |
+| > 0 | It triggers the offloading operation if the topic storage reaches its threshold. |
+| = 0 | It causes a broker to offload data as soon as possible. |
+| < 0 | It disables automatic offloading operation. |
+
+Automatic offloading runs when a new segment is added to a topic log. If you set the threshold on a namespace, but few messages are being produced to the topic, the offloader does not work until the current segment is full.
+
+You can configure the threshold size using CLI tools, such as pulsar-admin.
+
+The offload configurations in `broker.conf` and `standalone.conf` are used for the namespaces that do not have namespace level offload policies. Each namespace can have its own offload policy. If you want to set offload policy for each namespace, use the command [`pulsar-admin namespaces set-offload-policies options`](http://pulsar.apache.org/tools/pulsar-admin/2.6.0-SNAPSHOT/#-em-set-offload-policies-em-) command.
+
+#### Example
+
+This example sets the Aliyun OSS offloader threshold size to 10 MB using pulsar-admin.
+
+```bash
+bin/pulsar-admin namespaces set-offload-threshold --size 10M my-tenant/my-namespace
+```
+
+> #### Tip
+>
+> For more information about the `pulsar-admin namespaces set-offload-threshold options` command, including flags, descriptions, and default values, see [here](http://pulsar.apache.org/tools/pulsar-admin/2.6.0-SNAPSHOT/#-em-set-offload-threshold-em-).
+
+### Run Aliyun OSS offloader manually
+
+For individual topics, you can trigger the Aliyun OSS offloader manually using one of the following methods:
+
+- Use REST endpoint.
+
+- Use CLI tools (such as pulsar-admin).
+
+ To trigger it via CLI tools, you need to specify the maximum amount of data (threshold) that should be retained on a Pulsar cluster for a topic. If the size of the topic data on the Pulsar cluster exceeds this threshold, segments from the topic are moved to Aliyun OSS until the threshold is no longer exceeded. Older segments are moved first.
+
+#### Example
+
+- This example triggers the Aliyun OSS offloader to run manually using pulsar-admin.
+
+ ```bash
+ bin/pulsar-admin topics offload --size-threshold 10M my-tenant/my-namespace/topic1
+ ```
+
+ **Output**
+
+ ```bash
+ Offload triggered for persistent://my-tenant/my-namespace/topic1 for messages before 2:0:-1
+ ```
+
+ > #### Tip
+ >
+ > For more information about the `pulsar-admin topics offload options` command, including flags, descriptions, and default values, see [here](http://pulsar.apache.org/tools/pulsar-admin/2.6.0-SNAPSHOT/#-em-offload-em-).
+
+- This example checks the Aliyun OSS offloader status using pulsar-admin.
+
+ ```bash
+ bin/pulsar-admin topics offload-status persistent://my-tenant/my-namespace/topic1
+ ```
+
+ **Output**
+
+ ```bash
+ Offload is currently running
+ ```
+
+ To wait for the Aliyun OSS offloader to complete the job, add the `-w` flag.
+
+ ```bash
+ bin/pulsar-admin topics offload-status -w persistent://my-tenant/my-namespace/topic1
+ ```
+
+ **Output**
+
+ ```
+ Offload was a success
+ ```
+
+ If there is an error in offloading, the error is propagated to the `pulsar-admin topics offload-status` command.
+
+ ```bash
+ bin/pulsar-admin topics offload-status persistent://my-tenant/my-namespace/topic1
+ ```
+
+ **Output**
+
+ ```
+ Error in offload
+ null
+
+ Reason: Error offloading: org.apache.bookkeeper.mledger.ManagedLedgerException: java.util.concurrent.CompletionException: com.amazonaws.services.s3.model.AmazonS3Exception: Anonymous users cannot initiate multipart uploads. Please authenticate. (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: 798758DE3F1776DF; S3 Extended Request ID: dhBFz/lZm1oiG/oBEepeNlhrtsDlzoOhocuYMpKihQGXe6EG8puRGOkK6UwqzVrMXTWBxxHcS+g=), S3 Extended Request ID: dhBFz/lZm1oiG/oBEepeNlhrtsDlzoOhocuYMpKihQGXe6EG8puRGOkK6UwqzVrMXTWBxxHcS+g=
+ ````
+
+ > #### Tip
Review comment:
Fixed
--
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
[GitHub] [pulsar] yufan022 commented on a change in pull request #9696: [docs] Add documents for Aliyun OSS offload
Posted by GitBox <gi...@apache.org>.
yufan022 commented on a change in pull request #9696:
URL: https://github.com/apache/pulsar/pull/9696#discussion_r610586142
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,242 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
+
+### Step
+
+This example uses Pulsar 2.8.0.
+
+1. Download the Pulsar tarball using one of the following ways:
+
+ * Download from the [Apache mirror](https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz)
+
+ * Download from the Pulsar [downloads page](https://pulsar.apache.org/download)
+
+ * Use [wget](https://www.gnu.org/software/wget):
+
+ ```shell
+ wget https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz
+ ```
Review comment:
Fixed
--
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
[GitHub] [pulsar] yufan022 commented on a change in pull request #9696: [docs] Add documents for Aliyun OSS offload
Posted by GitBox <gi...@apache.org>.
yufan022 commented on a change in pull request #9696:
URL: https://github.com/apache/pulsar/pull/9696#discussion_r585494413
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,242 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
Review comment:
I think both are fine. Hadoop and Flink documents also use Aliyun.
https://ci.apache.org/projects/flink/flink-docs-stable/deployment/filesystems/oss.html
http://hadoop.apache.org/docs/current/hadoop-aliyun/tools/hadoop-aliyun/index.html
----------------------------------------------------------------
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
[GitHub] [pulsar] Anonymitaet commented on pull request #9696: [docs] Add documents for Aliyun OSS offload
Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on pull request #9696:
URL: https://github.com/apache/pulsar/pull/9696#issuecomment-816656488
@yufan022 thanks for your feedback. Left one minor suggestion.
--
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
[GitHub] [pulsar] Anonymitaet commented on pull request #9696: [docs] Add documents for Aliyun OSS offload
Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on pull request #9696:
URL: https://github.com/apache/pulsar/pull/9696#issuecomment-785551821
@yufan022 will this apply to 2.7.1?
----------------------------------------------------------------
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
[GitHub] [pulsar] Anonymitaet commented on pull request #9696: [docs] Add documents for Aliyun OSS offload
Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on pull request #9696:
URL: https://github.com/apache/pulsar/pull/9696#issuecomment-793284051
@yufan022 could you please check the comments and update the doc if necessary? Thanks
----------------------------------------------------------------
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
[GitHub] [pulsar] Anonymitaet commented on pull request #9696: [docs] Add documents for Aliyun OSS offload
Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on pull request #9696:
URL: https://github.com/apache/pulsar/pull/9696#issuecomment-816504271
@yufan022 could you please check the comments and update the doc if necessary? Thanks
--
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
[GitHub] [pulsar] Anonymitaet commented on a change in pull request #9696: [docs] Add documents for Aliyun OSS offload
Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on a change in pull request #9696:
URL: https://github.com/apache/pulsar/pull/9696#discussion_r582397041
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,243 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
+
+### Step
+
+This example uses Pulsar 2.8.0.
+
+1. Download the Pulsar tarball using one of the following ways:
+
+ * Download from the [Apache mirror](https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz)
+
+ * Download from the Pulsar [downloads page](https://pulsar.apache.org/download)
+
+ * Use [wget](https://www.gnu.org/software/wget):
+
+ ```shell
+ wget https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz
+ ```
+
+2. Download and untar the Pulsar offloaders package.
+
+ ```bash
+ wget https://downloads.apache.org/pulsar/pulsar-2.8.0/apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ tar xvfz apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ ```
+
+3. Copy the Pulsar offloaders as `offloaders` in the Pulsar directory.
+
+ ```
+ mv apache-pulsar-offloaders-2.8.0/offloaders apache-pulsar-2.8.0/offloaders
+
+ ls offloaders
+ ```
+
+ **Output**
+
+ As shown from the output, Pulsar uses [Apache jclouds](https://jclouds.apache.org) to support [AWS S3](https://aws.amazon.com/s3/), [GCS](https://cloud.google.com/storage/), [Azure](https://portal.azure.com/#home) and [Aliyun OSS](https://www.aliyun.com/product/oss) for long term storage.
Review comment:
```suggestion
As shown from the output, Pulsar uses [Apache jclouds](https://jclouds.apache.org) to support [AWS S3](https://aws.amazon.com/s3/), [GCS](https://cloud.google.com/storage/), [Azure](https://portal.azure.com/#home), and [Aliyun OSS](https://www.aliyun.com/product/oss) for long-term storage.
```
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,243 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
+
+### Step
+
+This example uses Pulsar 2.8.0.
+
+1. Download the Pulsar tarball using one of the following ways:
+
+ * Download from the [Apache mirror](https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz)
+
+ * Download from the Pulsar [downloads page](https://pulsar.apache.org/download)
+
+ * Use [wget](https://www.gnu.org/software/wget):
+
+ ```shell
+ wget https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz
+ ```
+
+2. Download and untar the Pulsar offloaders package.
+
+ ```bash
+ wget https://downloads.apache.org/pulsar/pulsar-2.8.0/apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ tar xvfz apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ ```
+
+3. Copy the Pulsar offloaders as `offloaders` in the Pulsar directory.
+
+ ```
+ mv apache-pulsar-offloaders-2.8.0/offloaders apache-pulsar-2.8.0/offloaders
+
+ ls offloaders
+ ```
+
+ **Output**
+
+ As shown from the output, Pulsar uses [Apache jclouds](https://jclouds.apache.org) to support [AWS S3](https://aws.amazon.com/s3/), [GCS](https://cloud.google.com/storage/), [Azure](https://portal.azure.com/#home) and [Aliyun OSS](https://www.aliyun.com/product/oss) for long term storage.
+
+
+ ```
+ tiered-storage-file-system-2.8.0.nar
+ tiered-storage-jcloud-2.8.0.nar
+ ```
+
+ > #### Note
+ >
+ > * If you are running Pulsar in a bare metal cluster, make sure that `offloaders` tarball is unzipped in every broker's Pulsar directory.
+ >
+ > * If you are running Pulsar in Docker or deploying Pulsar using a Docker image (such as K8s and DCOS), you can use the `apachepulsar/pulsar-all` image instead of the `apachepulsar/pulsar` image. `apachepulsar/pulsar-all` image has already bundled tiered storage offloaders.
+
+## Configuration
+
+> #### Note
+>
+> Before offloading data from BookKeeper to Aliyun OSS, you need to configure some properties of the Aliyun OSS offload driver.
+
+Besides, you can also configure the Aliyun OSS offloader to run it automatically or trigger it manually.
+
+### Configure Aliyun OSS offloader driver
+
+You can configure the Aliyun OSS offloader driver in the configuration file `broker.conf` or `standalone.conf`.
+
+- **Required** configurations are as below.
+
+ Required configuration | Description | Example value
+ |---|---|---
+ `managedLedgerOffloadDriver` | Offloader driver name, which is case-insensitive. | aliyun-oss
+ `offloadersDirectory` | Offloader directory | offloaders
+ `managedLedgerOffloadBucket` | Bucket | pulsar-topic-offload
+ `managedLedgerOffloadServiceEndpoint` | Endpoint | http://oss-cn-hongkong.aliyuncs.com
+
+- **Optional** configurations are as below.
+
+ Optional | Description | Example value
+ |---|---|---
+ `managedLedgerOffloadReadBufferSizeInBytes`|Size of block read|1 MB
+ `managedLedgerOffloadMaxBlockSizeInBytes`|Size of block write|64 MB
+ `managedLedgerMinLedgerRolloverTimeMinutes`|Minimum time between ledger rollover for a topic<br><br>**Note**: it is not recommended that you set this configuration in the production environment.|2
+ `managedLedgerMaxEntriesPerLedger`|Maximum number of entries to append to a ledger before triggering a rollover.<br><br>**Note**: it is not recommended that you set this configuration in the production environment.|5000
+
+#### Bucket (required)
+
+A bucket is a basic container that holds your data. Everything you store in Aliyun OSS must be contained in a bucket. You can use a bucket to organize your data and control access to your data, but unlike directory and folder, you cannot nest a bucket.
+
+##### Example
+
+This example names the bucket as _pulsar-topic-offload_.
+
+```conf
+managedLedgerOffloadBucket=pulsar-topic-offload
+```
+
+#### Endpoint (required)
+
+The endpoint is the region where a bucket is located.
+
+> #### Tip
+>
+> For more information about Aliyun OSS regions and endpoints, see [here](https://help.aliyun.com/document_detail/31837.html).
+
+##### Example
+
+This example sets the endpoint as _oss-us-west-1-internal_.
+
+```
+managedLedgerOffloadServiceEndpoint=http://oss-us-west-1-internal.aliyuncs.com
+```
+
+#### Authentication (required)
+
+To be able to access Aliyun OSS, you need to authenticate with Aliyun OSS.
+
+* Set the environment variables `ALIYUN_OSS_ACCESS_KEY_ID` and `ALIYUN_OSS_ACCESS_KEY_SECRET` in `conf/pulsar_env.sh`.
+
+ "export" is important so that the variables are made available in the environment of spawned processes.
+
+ ```bash
+ export ALIYUN_OSS_ACCESS_KEY_ID=ABC123456789
+ export ALIYUN_OSS_ACCESS_KEY_SECRET=ded7db27a4558e2ea8bbf0bf37ae0e8521618f366c
+ ```
+
+#### Size of block read/write
+
+You can configure the size of a request sent to or read from Aliyun OSS in the configuration file `broker.conf` or `standalone.conf`.
+
+Configuration|Description|Default value
+|---|---|---
+`managedLedgerOffloadReadBufferSizeInBytes`|Block size for each individual read when reading back data from Aliyun OSS.|1 MB
+`managedLedgerOffloadMaxBlockSizeInBytes`|Maximum size of a "part" sent during a multipart upload to Aliyun OSS. It **cannot** be smaller than 5 MB. |64 MB
+
+### Configure Aliyun OSS offloader to run automatically
+
+Namespace policy can be configured to offload data automatically once a threshold is reached. The threshold is based on the size of data that a topic has stored on a Pulsar cluster. Once the topic reaches the threshold, an offloading operation is triggered automatically.
+
+Threshold value|Action
+|---|---
+> 0 | It triggers the offloading operation if the topic storage reaches its threshold.
+= 0|It causes a broker to offload data as soon as possible.
+< 0 |It disables automatic offloading operation.
+
+Automatic offloading runs when a new segment is added to a topic log. If you set the threshold on a namespace, but few messages are being produced to the topic, offloader does not work until the current segment is full.
Review comment:
```suggestion
Automatic offloading runs when a new segment is added to a topic log. If you set the threshold on a namespace, but few messages are being produced to the topic, the offloader does not work until the current segment is full.
```
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,243 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service offloader and using it with Pulsar.
Review comment:
```suggestion
This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
```
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,243 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
+
+### Step
+
+This example uses Pulsar 2.8.0.
+
+1. Download the Pulsar tarball using one of the following ways:
+
+ * Download from the [Apache mirror](https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz)
+
+ * Download from the Pulsar [downloads page](https://pulsar.apache.org/download)
+
+ * Use [wget](https://www.gnu.org/software/wget):
+
+ ```shell
+ wget https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz
+ ```
+
+2. Download and untar the Pulsar offloaders package.
+
+ ```bash
+ wget https://downloads.apache.org/pulsar/pulsar-2.8.0/apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ tar xvfz apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ ```
+
+3. Copy the Pulsar offloaders as `offloaders` in the Pulsar directory.
+
+ ```
+ mv apache-pulsar-offloaders-2.8.0/offloaders apache-pulsar-2.8.0/offloaders
+
+ ls offloaders
+ ```
+
+ **Output**
+
+ As shown from the output, Pulsar uses [Apache jclouds](https://jclouds.apache.org) to support [AWS S3](https://aws.amazon.com/s3/), [GCS](https://cloud.google.com/storage/), [Azure](https://portal.azure.com/#home) and [Aliyun OSS](https://www.aliyun.com/product/oss) for long term storage.
+
+
+ ```
+ tiered-storage-file-system-2.8.0.nar
+ tiered-storage-jcloud-2.8.0.nar
+ ```
+
+ > #### Note
+ >
+ > * If you are running Pulsar in a bare metal cluster, make sure that `offloaders` tarball is unzipped in every broker's Pulsar directory.
Review comment:
```suggestion
> * If you are running Pulsar in a bare-metal cluster, make sure that `offloaders` tarball is unzipped in every broker's Pulsar directory.
```
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,243 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
+
+### Step
+
+This example uses Pulsar 2.8.0.
+
+1. Download the Pulsar tarball using one of the following ways:
+
+ * Download from the [Apache mirror](https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz)
+
+ * Download from the Pulsar [downloads page](https://pulsar.apache.org/download)
+
+ * Use [wget](https://www.gnu.org/software/wget):
+
+ ```shell
+ wget https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz
+ ```
+
+2. Download and untar the Pulsar offloaders package.
+
+ ```bash
+ wget https://downloads.apache.org/pulsar/pulsar-2.8.0/apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ tar xvfz apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ ```
+
+3. Copy the Pulsar offloaders as `offloaders` in the Pulsar directory.
+
+ ```
+ mv apache-pulsar-offloaders-2.8.0/offloaders apache-pulsar-2.8.0/offloaders
+
+ ls offloaders
+ ```
+
+ **Output**
+
+ As shown from the output, Pulsar uses [Apache jclouds](https://jclouds.apache.org) to support [AWS S3](https://aws.amazon.com/s3/), [GCS](https://cloud.google.com/storage/), [Azure](https://portal.azure.com/#home) and [Aliyun OSS](https://www.aliyun.com/product/oss) for long term storage.
+
+
+ ```
+ tiered-storage-file-system-2.8.0.nar
+ tiered-storage-jcloud-2.8.0.nar
+ ```
+
+ > #### Note
+ >
+ > * If you are running Pulsar in a bare metal cluster, make sure that `offloaders` tarball is unzipped in every broker's Pulsar directory.
+ >
+ > * If you are running Pulsar in Docker or deploying Pulsar using a Docker image (such as K8s and DCOS), you can use the `apachepulsar/pulsar-all` image instead of the `apachepulsar/pulsar` image. `apachepulsar/pulsar-all` image has already bundled tiered storage offloaders.
+
+## Configuration
+
+> #### Note
+>
+> Before offloading data from BookKeeper to Aliyun OSS, you need to configure some properties of the Aliyun OSS offload driver.
+
+Besides, you can also configure the Aliyun OSS offloader to run it automatically or trigger it manually.
+
+### Configure Aliyun OSS offloader driver
+
+You can configure the Aliyun OSS offloader driver in the configuration file `broker.conf` or `standalone.conf`.
+
+- **Required** configurations are as below.
+
+ Required configuration | Description | Example value
+ |---|---|---
+ `managedLedgerOffloadDriver` | Offloader driver name, which is case-insensitive. | aliyun-oss
+ `offloadersDirectory` | Offloader directory | offloaders
+ `managedLedgerOffloadBucket` | Bucket | pulsar-topic-offload
+ `managedLedgerOffloadServiceEndpoint` | Endpoint | http://oss-cn-hongkong.aliyuncs.com
+
+- **Optional** configurations are as below.
+
+ Optional | Description | Example value
+ |---|---|---
+ `managedLedgerOffloadReadBufferSizeInBytes`|Size of block read|1 MB
+ `managedLedgerOffloadMaxBlockSizeInBytes`|Size of block write|64 MB
+ `managedLedgerMinLedgerRolloverTimeMinutes`|Minimum time between ledger rollover for a topic<br><br>**Note**: it is not recommended that you set this configuration in the production environment.|2
+ `managedLedgerMaxEntriesPerLedger`|Maximum number of entries to append to a ledger before triggering a rollover.<br><br>**Note**: it is not recommended that you set this configuration in the production environment.|5000
+
+#### Bucket (required)
+
+A bucket is a basic container that holds your data. Everything you store in Aliyun OSS must be contained in a bucket. You can use a bucket to organize your data and control access to your data, but unlike directory and folder, you cannot nest a bucket.
+
+##### Example
+
+This example names the bucket as _pulsar-topic-offload_.
+
+```conf
+managedLedgerOffloadBucket=pulsar-topic-offload
+```
+
+#### Endpoint (required)
+
+The endpoint is the region where a bucket is located.
+
+> #### Tip
+>
+> For more information about Aliyun OSS regions and endpoints, see [here](https://help.aliyun.com/document_detail/31837.html).
+
+##### Example
+
+This example sets the endpoint as _oss-us-west-1-internal_.
+
+```
+managedLedgerOffloadServiceEndpoint=http://oss-us-west-1-internal.aliyuncs.com
+```
+
+#### Authentication (required)
+
+To be able to access Aliyun OSS, you need to authenticate with Aliyun OSS.
+
+* Set the environment variables `ALIYUN_OSS_ACCESS_KEY_ID` and `ALIYUN_OSS_ACCESS_KEY_SECRET` in `conf/pulsar_env.sh`.
+
+ "export" is important so that the variables are made available in the environment of spawned processes.
+
+ ```bash
+ export ALIYUN_OSS_ACCESS_KEY_ID=ABC123456789
+ export ALIYUN_OSS_ACCESS_KEY_SECRET=ded7db27a4558e2ea8bbf0bf37ae0e8521618f366c
+ ```
+
+#### Size of block read/write
+
+You can configure the size of a request sent to or read from Aliyun OSS in the configuration file `broker.conf` or `standalone.conf`.
+
+Configuration|Description|Default value
+|---|---|---
+`managedLedgerOffloadReadBufferSizeInBytes`|Block size for each individual read when reading back data from Aliyun OSS.|1 MB
+`managedLedgerOffloadMaxBlockSizeInBytes`|Maximum size of a "part" sent during a multipart upload to Aliyun OSS. It **cannot** be smaller than 5 MB. |64 MB
+
+### Configure Aliyun OSS offloader to run automatically
+
+Namespace policy can be configured to offload data automatically once a threshold is reached. The threshold is based on the size of data that a topic has stored on a Pulsar cluster. Once the topic reaches the threshold, an offloading operation is triggered automatically.
+
+Threshold value|Action
+|---|---
+> 0 | It triggers the offloading operation if the topic storage reaches its threshold.
+= 0|It causes a broker to offload data as soon as possible.
+< 0 |It disables automatic offloading operation.
+
+Automatic offloading runs when a new segment is added to a topic log. If you set the threshold on a namespace, but few messages are being produced to the topic, offloader does not work until the current segment is full.
+
+You can configure the threshold size using CLI tools, such as pulsar-admin.
+
+The offload configurations in `broker.conf` and `standalone.conf` are used for the namespaces that do not have namespace level offload policies. Each namespace can have its own offload policy. If you want to set offload policy for each namespace, use the command [`pulsar-admin namespaces set-offload-policies options`](http://pulsar.apache.org/tools/pulsar-admin/2.6.0-SNAPSHOT/#-em-set-offload-policies-em-) command.
+
+#### Example
+
+This example sets the Aliyun OSS offloader threshold size to 10 MB using pulsar-admin.
+
+```bash
+bin/pulsar-admin namespaces set-offload-threshold --size 10M my-tenant/my-namespace
+```
+
+> #### Tip
+>
+> For more information about the `pulsar-admin namespaces set-offload-threshold options` command, including flags, descriptions, and default values, see [here](http://pulsar.apache.org/tools/pulsar-admin/2.6.0-SNAPSHOT/#-em-set-offload-threshold-em-).
+
+### Configure Aliyun OSS offloader to run manually
+
+For individual topics, you can trigger Aliyun OSS offloader manually using one of the following methods:
Review comment:
```suggestion
For individual topics, you can trigger the Aliyun OSS offloader manually using one of the following methods:
```
----------------------------------------------------------------
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
[GitHub] [pulsar] Anonymitaet commented on a change in pull request #9696: [docs] Add documents for Aliyun OSS offload
Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on a change in pull request #9696:
URL: https://github.com/apache/pulsar/pull/9696#discussion_r610596218
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,217 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
+
+### Step
+
+This example uses Pulsar 2.8.0.
+
+1. Download the Pulsar tarball, see [here](https://pulsar.apache.org/docs/en/standalone/#install-pulsar-using-binary-release).
+
+2. Download and untar the Pulsar offloaders package, then copy the Pulsar offloaders as `offloaders` in the Pulsar directory, see [here](https://pulsar.apache.org/docs/en/standalone/#install-tiered-storage-offloaders-optional).
+
+ **Output**
+
+ As shown from the output, Pulsar uses [Apache jclouds](https://jclouds.apache.org) to support [AWS S3](https://aws.amazon.com/s3/), [GCS](https://cloud.google.com/storage/), [Azure](https://portal.azure.com/#home), and [Aliyun OSS](https://www.aliyun.com/product/oss) for long-term storage.
+
+ ```
+ tiered-storage-file-system-2.8.0.nar
+ tiered-storage-jcloud-2.8.0.nar
+ ```
+
+ > **Note**
+ >
+ > * If you are running Pulsar in a bare-metal cluster, make sure that `offloaders` tarball is unzipped in every broker's Pulsar directory.
+ >
+ > * If you are running Pulsar in Docker or deploying Pulsar using a Docker image (such as K8s and DCOS), you can use the `apachepulsar/pulsar-all` image. The `apachepulsar/pulsar-all` image has already bundled tiered storage offloaders.
+
+## Configuration
+
+> **Note**
+>
+> Before offloading data from BookKeeper to Aliyun OSS, you need to configure some properties of the Aliyun OSS offload driver.
+
+Besides, you can also configure the Aliyun OSS offloader to run it automatically or trigger it manually.
+
+### Configure Aliyun OSS offloader driver
+
+You can configure the Aliyun OSS offloader driver in the configuration file `broker.conf` or `standalone.conf`.
+
+- **Required** configurations are as below.
+
+ | Required configuration | Description | Example value |
+ | --- | --- |--- |
+ | `managedLedgerOffloadDriver` | Offloader driver name, which is case-insensitive. | aliyun-oss |
+ | `offloadersDirectory` | Offloader directory | offloaders |
+ | `managedLedgerOffloadBucket` | Bucket | pulsar-topic-offload |
+ | `managedLedgerOffloadServiceEndpoint` | Endpoint | http://oss-cn-hongkong.aliyuncs.com |
+
+- **Optional** configurations are as below.
+
+ | Optional | Description | Example value |
+ | --- | --- | --- |
+ | `managedLedgerOffloadReadBufferSizeInBytes` | Size of block read | 1 MB |
+ | `managedLedgerOffloadMaxBlockSizeInBytes` | Size of block write | 64 MB |
+ | `managedLedgerMinLedgerRolloverTimeMinutes` | Minimum time between ledger rollover for a topic<br><br>**Note**: it is not recommended that you set this configuration in the production environment. | 2 |
+ | `managedLedgerMaxEntriesPerLedger` | Maximum number of entries to append to a ledger before triggering a rollover.<br><br>**Note**: it is not recommended that you set this configuration in the production environment. | 5000 |
+
+#### Bucket (required)
+
+A bucket is a basic container that holds your data. Everything you store in Aliyun OSS must be contained in a bucket. You can use a bucket to organize your data and control access to your data, but unlike directory and folder, you cannot nest a bucket.
+
+##### Example
+
+This example names the bucket as _pulsar-topic-offload_.
+
+```conf
+managedLedgerOffloadBucket=pulsar-topic-offload
+```
+
+#### Endpoint (required)
+
+The endpoint is the region where a bucket is located.
+
+> **Tip**
+>
+> For more information about Aliyun OSS regions and endpoints, see [International website](https://www.alibabacloud.com/help/doc-detail/31837.htm) or [Chinese website](https://help.aliyun.com/document_detail/31837.html).
+
+##### Example
+
+This example sets the endpoint as _oss-us-west-1-internal_.
+
+```
+managedLedgerOffloadServiceEndpoint=http://oss-us-west-1-internal.aliyuncs.com
+```
+
+#### Authentication (required)
+
+To be able to access Aliyun OSS, you need to authenticate with Aliyun OSS.
+
+Set the environment variables `ALIYUN_OSS_ACCESS_KEY_ID` and `ALIYUN_OSS_ACCESS_KEY_SECRET` in `conf/pulsar_env.sh`.
+
+"export" is important so that the variables are made available in the environment of spawned processes.
+
+```bash
+export ALIYUN_OSS_ACCESS_KEY_ID=ABC123456789
+export ALIYUN_OSS_ACCESS_KEY_SECRET=ded7db27a4558e2ea8bbf0bf37ae0e8521618f366c
+```
+
+#### Size of block read/write
+
+You can configure the size of a request sent to or read from Aliyun OSS in the configuration file `broker.conf` or `standalone.conf`.
+
+| Configuration | Description | Default value |
+| --- | --- | --- |
+| `managedLedgerOffloadReadBufferSizeInBytes` | Block size for each individual read when reading back data from Aliyun OSS. | 1 MB |
+| `managedLedgerOffloadMaxBlockSizeInBytes` | Maximum size of a "part" sent during a multipart upload to Aliyun OSS. It **cannot** be smaller than 5 MB. | 64 MB |
+
+### Run Aliyun OSS offloader automatically
+
+Namespace policy can be configured to offload data automatically once a threshold is reached. The threshold is based on the size of data that a topic has stored on a Pulsar cluster. Once the topic reaches the threshold, an offloading operation is triggered automatically.
+
+| Threshold value | Action |
+| --- | --- |
+| > 0 | It triggers the offloading operation if the topic storage reaches its threshold. |
+| = 0 | It causes a broker to offload data as soon as possible. |
+| < 0 | It disables automatic offloading operation. |
+
+Automatic offloading runs when a new segment is added to a topic log. If you set the threshold on a namespace, but few messages are being produced to the topic, the offloader does not work until the current segment is full.
+
+You can configure the threshold size using CLI tools, such as pulsar-admin.
+
+The offload configurations in `broker.conf` and `standalone.conf` are used for the namespaces that do not have namespace level offload policies. Each namespace can have its own offload policy. If you want to set offload policy for each namespace, use the command [`pulsar-admin namespaces set-offload-policies options`](http://pulsar.apache.org/tools/pulsar-admin/2.6.0-SNAPSHOT/#-em-set-offload-policies-em-) command.
+
+#### Example
+
+This example sets the Aliyun OSS offloader threshold size to 10 MB using pulsar-admin.
+
+```bash
+bin/pulsar-admin namespaces set-offload-threshold --size 10M my-tenant/my-namespace
+```
+
+> #### Tip
Review comment:
```suggestion
> **Tip**
```
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,217 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
+
+### Step
+
+This example uses Pulsar 2.8.0.
+
+1. Download the Pulsar tarball, see [here](https://pulsar.apache.org/docs/en/standalone/#install-pulsar-using-binary-release).
+
+2. Download and untar the Pulsar offloaders package, then copy the Pulsar offloaders as `offloaders` in the Pulsar directory, see [here](https://pulsar.apache.org/docs/en/standalone/#install-tiered-storage-offloaders-optional).
+
+ **Output**
+
+ As shown from the output, Pulsar uses [Apache jclouds](https://jclouds.apache.org) to support [AWS S3](https://aws.amazon.com/s3/), [GCS](https://cloud.google.com/storage/), [Azure](https://portal.azure.com/#home), and [Aliyun OSS](https://www.aliyun.com/product/oss) for long-term storage.
+
+ ```
+ tiered-storage-file-system-2.8.0.nar
+ tiered-storage-jcloud-2.8.0.nar
+ ```
+
+ > **Note**
+ >
+ > * If you are running Pulsar in a bare-metal cluster, make sure that `offloaders` tarball is unzipped in every broker's Pulsar directory.
+ >
+ > * If you are running Pulsar in Docker or deploying Pulsar using a Docker image (such as K8s and DCOS), you can use the `apachepulsar/pulsar-all` image. The `apachepulsar/pulsar-all` image has already bundled tiered storage offloaders.
+
+## Configuration
+
+> **Note**
+>
+> Before offloading data from BookKeeper to Aliyun OSS, you need to configure some properties of the Aliyun OSS offload driver.
+
+Besides, you can also configure the Aliyun OSS offloader to run it automatically or trigger it manually.
+
+### Configure Aliyun OSS offloader driver
+
+You can configure the Aliyun OSS offloader driver in the configuration file `broker.conf` or `standalone.conf`.
+
+- **Required** configurations are as below.
+
+ | Required configuration | Description | Example value |
+ | --- | --- |--- |
+ | `managedLedgerOffloadDriver` | Offloader driver name, which is case-insensitive. | aliyun-oss |
+ | `offloadersDirectory` | Offloader directory | offloaders |
+ | `managedLedgerOffloadBucket` | Bucket | pulsar-topic-offload |
+ | `managedLedgerOffloadServiceEndpoint` | Endpoint | http://oss-cn-hongkong.aliyuncs.com |
+
+- **Optional** configurations are as below.
+
+ | Optional | Description | Example value |
+ | --- | --- | --- |
+ | `managedLedgerOffloadReadBufferSizeInBytes` | Size of block read | 1 MB |
+ | `managedLedgerOffloadMaxBlockSizeInBytes` | Size of block write | 64 MB |
+ | `managedLedgerMinLedgerRolloverTimeMinutes` | Minimum time between ledger rollover for a topic<br><br>**Note**: it is not recommended that you set this configuration in the production environment. | 2 |
+ | `managedLedgerMaxEntriesPerLedger` | Maximum number of entries to append to a ledger before triggering a rollover.<br><br>**Note**: it is not recommended that you set this configuration in the production environment. | 5000 |
+
+#### Bucket (required)
+
+A bucket is a basic container that holds your data. Everything you store in Aliyun OSS must be contained in a bucket. You can use a bucket to organize your data and control access to your data, but unlike directory and folder, you cannot nest a bucket.
+
+##### Example
+
+This example names the bucket as _pulsar-topic-offload_.
+
+```conf
+managedLedgerOffloadBucket=pulsar-topic-offload
+```
+
+#### Endpoint (required)
+
+The endpoint is the region where a bucket is located.
+
+> **Tip**
+>
+> For more information about Aliyun OSS regions and endpoints, see [International website](https://www.alibabacloud.com/help/doc-detail/31837.htm) or [Chinese website](https://help.aliyun.com/document_detail/31837.html).
+
+##### Example
+
+This example sets the endpoint as _oss-us-west-1-internal_.
+
+```
+managedLedgerOffloadServiceEndpoint=http://oss-us-west-1-internal.aliyuncs.com
+```
+
+#### Authentication (required)
+
+To be able to access Aliyun OSS, you need to authenticate with Aliyun OSS.
+
+Set the environment variables `ALIYUN_OSS_ACCESS_KEY_ID` and `ALIYUN_OSS_ACCESS_KEY_SECRET` in `conf/pulsar_env.sh`.
+
+"export" is important so that the variables are made available in the environment of spawned processes.
+
+```bash
+export ALIYUN_OSS_ACCESS_KEY_ID=ABC123456789
+export ALIYUN_OSS_ACCESS_KEY_SECRET=ded7db27a4558e2ea8bbf0bf37ae0e8521618f366c
+```
+
+#### Size of block read/write
+
+You can configure the size of a request sent to or read from Aliyun OSS in the configuration file `broker.conf` or `standalone.conf`.
+
+| Configuration | Description | Default value |
+| --- | --- | --- |
+| `managedLedgerOffloadReadBufferSizeInBytes` | Block size for each individual read when reading back data from Aliyun OSS. | 1 MB |
+| `managedLedgerOffloadMaxBlockSizeInBytes` | Maximum size of a "part" sent during a multipart upload to Aliyun OSS. It **cannot** be smaller than 5 MB. | 64 MB |
+
+### Run Aliyun OSS offloader automatically
+
+Namespace policy can be configured to offload data automatically once a threshold is reached. The threshold is based on the size of data that a topic has stored on a Pulsar cluster. Once the topic reaches the threshold, an offloading operation is triggered automatically.
+
+| Threshold value | Action |
+| --- | --- |
+| > 0 | It triggers the offloading operation if the topic storage reaches its threshold. |
+| = 0 | It causes a broker to offload data as soon as possible. |
+| < 0 | It disables automatic offloading operation. |
+
+Automatic offloading runs when a new segment is added to a topic log. If you set the threshold on a namespace, but few messages are being produced to the topic, the offloader does not work until the current segment is full.
+
+You can configure the threshold size using CLI tools, such as pulsar-admin.
+
+The offload configurations in `broker.conf` and `standalone.conf` are used for the namespaces that do not have namespace level offload policies. Each namespace can have its own offload policy. If you want to set offload policy for each namespace, use the command [`pulsar-admin namespaces set-offload-policies options`](http://pulsar.apache.org/tools/pulsar-admin/2.6.0-SNAPSHOT/#-em-set-offload-policies-em-) command.
+
+#### Example
+
+This example sets the Aliyun OSS offloader threshold size to 10 MB using pulsar-admin.
+
+```bash
+bin/pulsar-admin namespaces set-offload-threshold --size 10M my-tenant/my-namespace
+```
+
+> #### Tip
+>
+> For more information about the `pulsar-admin namespaces set-offload-threshold options` command, including flags, descriptions, and default values, see [here](http://pulsar.apache.org/tools/pulsar-admin/2.6.0-SNAPSHOT/#-em-set-offload-threshold-em-).
+
+### Run Aliyun OSS offloader manually
+
+For individual topics, you can trigger the Aliyun OSS offloader manually using one of the following methods:
+
+- Use REST endpoint.
+
+- Use CLI tools (such as pulsar-admin).
+
+ To trigger it via CLI tools, you need to specify the maximum amount of data (threshold) that should be retained on a Pulsar cluster for a topic. If the size of the topic data on the Pulsar cluster exceeds this threshold, segments from the topic are moved to Aliyun OSS until the threshold is no longer exceeded. Older segments are moved first.
+
+#### Example
+
+- This example triggers the Aliyun OSS offloader to run manually using pulsar-admin.
+
+ ```bash
+ bin/pulsar-admin topics offload --size-threshold 10M my-tenant/my-namespace/topic1
+ ```
+
+ **Output**
+
+ ```bash
+ Offload triggered for persistent://my-tenant/my-namespace/topic1 for messages before 2:0:-1
+ ```
+
+ > #### Tip
+ >
+ > For more information about the `pulsar-admin topics offload options` command, including flags, descriptions, and default values, see [here](http://pulsar.apache.org/tools/pulsar-admin/2.6.0-SNAPSHOT/#-em-offload-em-).
+
+- This example checks the Aliyun OSS offloader status using pulsar-admin.
+
+ ```bash
+ bin/pulsar-admin topics offload-status persistent://my-tenant/my-namespace/topic1
+ ```
+
+ **Output**
+
+ ```bash
+ Offload is currently running
+ ```
+
+ To wait for the Aliyun OSS offloader to complete the job, add the `-w` flag.
+
+ ```bash
+ bin/pulsar-admin topics offload-status -w persistent://my-tenant/my-namespace/topic1
+ ```
+
+ **Output**
+
+ ```
+ Offload was a success
+ ```
+
+ If there is an error in offloading, the error is propagated to the `pulsar-admin topics offload-status` command.
+
+ ```bash
+ bin/pulsar-admin topics offload-status persistent://my-tenant/my-namespace/topic1
+ ```
+
+ **Output**
+
+ ```
+ Error in offload
+ null
+
+ Reason: Error offloading: org.apache.bookkeeper.mledger.ManagedLedgerException: java.util.concurrent.CompletionException: com.amazonaws.services.s3.model.AmazonS3Exception: Anonymous users cannot initiate multipart uploads. Please authenticate. (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: 798758DE3F1776DF; S3 Extended Request ID: dhBFz/lZm1oiG/oBEepeNlhrtsDlzoOhocuYMpKihQGXe6EG8puRGOkK6UwqzVrMXTWBxxHcS+g=), S3 Extended Request ID: dhBFz/lZm1oiG/oBEepeNlhrtsDlzoOhocuYMpKihQGXe6EG8puRGOkK6UwqzVrMXTWBxxHcS+g=
+ ````
+
+ > #### Tip
Review comment:
```suggestion
> **Tip**
```
--
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
[GitHub] [pulsar] yufan022 commented on a change in pull request #9696: [docs] Add documents for Aliyun OSS offload
Posted by GitBox <gi...@apache.org>.
yufan022 commented on a change in pull request #9696:
URL: https://github.com/apache/pulsar/pull/9696#discussion_r610498949
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,242 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
Review comment:
I think use "later" is better
--
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
[GitHub] [pulsar] Huanli-Meng commented on a change in pull request #9696: [docs] Add documents for Aliyun OSS offload
Posted by GitBox <gi...@apache.org>.
Huanli-Meng commented on a change in pull request #9696:
URL: https://github.com/apache/pulsar/pull/9696#discussion_r583304882
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,242 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
Review comment:
I searched for the Alibaba cloud website, it more likely uses Alibaba cloud instead of Aliyun
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,242 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
+
+### Step
+
+This example uses Pulsar 2.8.0.
+
+1. Download the Pulsar tarball using one of the following ways:
+
+ * Download from the [Apache mirror](https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz)
+
+ * Download from the Pulsar [downloads page](https://pulsar.apache.org/download)
+
+ * Use [wget](https://www.gnu.org/software/wget):
+
+ ```shell
+ wget https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz
+ ```
+
+2. Download and untar the Pulsar offloaders package.
+
+ ```bash
+ wget https://downloads.apache.org/pulsar/pulsar-2.8.0/apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ tar xvfz apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ ```
+
+3. Copy the Pulsar offloaders as `offloaders` in the Pulsar directory.
+
+ ```
+ mv apache-pulsar-offloaders-2.8.0/offloaders apache-pulsar-2.8.0/offloaders
+
+ ls offloaders
+ ```
+
+ **Output**
+
+ As shown from the output, Pulsar uses [Apache jclouds](https://jclouds.apache.org) to support [AWS S3](https://aws.amazon.com/s3/), [GCS](https://cloud.google.com/storage/), [Azure](https://portal.azure.com/#home), and [Aliyun OSS](https://www.aliyun.com/product/oss) for long-term storage.
Review comment:
```suggestion
As shown from the output, Pulsar uses [Apache jclouds](https://jclouds.apache.org) to support [AWS S3](https://aws.amazon.com/s3/), [GCS](https://cloud.google.com/storage/), [Azure](https://portal.azure.com/#home), and [Aliyun OSS](https://www.aliyun.com/product/oss) for long-term storage.
```
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,242 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
+
+### Step
+
+This example uses Pulsar 2.8.0.
+
+1. Download the Pulsar tarball using one of the following ways:
+
+ * Download from the [Apache mirror](https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz)
+
+ * Download from the Pulsar [downloads page](https://pulsar.apache.org/download)
+
+ * Use [wget](https://www.gnu.org/software/wget):
+
+ ```shell
+ wget https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz
+ ```
+
+2. Download and untar the Pulsar offloaders package.
+
+ ```bash
+ wget https://downloads.apache.org/pulsar/pulsar-2.8.0/apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ tar xvfz apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ ```
+
+3. Copy the Pulsar offloaders as `offloaders` in the Pulsar directory.
+
+ ```
+ mv apache-pulsar-offloaders-2.8.0/offloaders apache-pulsar-2.8.0/offloaders
+
+ ls offloaders
+ ```
+
+ **Output**
+
+ As shown from the output, Pulsar uses [Apache jclouds](https://jclouds.apache.org) to support [AWS S3](https://aws.amazon.com/s3/), [GCS](https://cloud.google.com/storage/), [Azure](https://portal.azure.com/#home), and [Aliyun OSS](https://www.aliyun.com/product/oss) for long-term storage.
+
+
+ ```
+ tiered-storage-file-system-2.8.0.nar
+ tiered-storage-jcloud-2.8.0.nar
+ ```
+
+ > #### Note
+ >
+ > * If you are running Pulsar in a bare-metal cluster, make sure that `offloaders` tarball is unzipped in every broker's Pulsar directory.
+ >
+ > * If you are running Pulsar in Docker or deploying Pulsar using a Docker image (such as K8s and DCOS), you can use the `apachepulsar/pulsar-all` image instead of the `apachepulsar/pulsar` image. `apachepulsar/pulsar-all` image has already bundled tiered storage offloaders.
Review comment:
```suggestion
> * If you are running Pulsar in Docker or deploying Pulsar using a Docker image (such as K8s and DCOS), you can use the `apachepulsar/pulsar-all` image. The `apachepulsar/pulsar-all` image has already bundled tiered storage offloaders.
```
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,242 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
+
+### Step
+
+This example uses Pulsar 2.8.0.
+
+1. Download the Pulsar tarball using one of the following ways:
+
+ * Download from the [Apache mirror](https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz)
+
+ * Download from the Pulsar [downloads page](https://pulsar.apache.org/download)
+
+ * Use [wget](https://www.gnu.org/software/wget):
+
+ ```shell
+ wget https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz
+ ```
+
+2. Download and untar the Pulsar offloaders package.
+
+ ```bash
+ wget https://downloads.apache.org/pulsar/pulsar-2.8.0/apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ tar xvfz apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ ```
+
+3. Copy the Pulsar offloaders as `offloaders` in the Pulsar directory.
+
+ ```
+ mv apache-pulsar-offloaders-2.8.0/offloaders apache-pulsar-2.8.0/offloaders
+
+ ls offloaders
+ ```
+
+ **Output**
+
+ As shown from the output, Pulsar uses [Apache jclouds](https://jclouds.apache.org) to support [AWS S3](https://aws.amazon.com/s3/), [GCS](https://cloud.google.com/storage/), [Azure](https://portal.azure.com/#home), and [Aliyun OSS](https://www.aliyun.com/product/oss) for long-term storage.
+
+
+ ```
+ tiered-storage-file-system-2.8.0.nar
+ tiered-storage-jcloud-2.8.0.nar
+ ```
+
+ > #### Note
+ >
+ > * If you are running Pulsar in a bare-metal cluster, make sure that `offloaders` tarball is unzipped in every broker's Pulsar directory.
+ >
+ > * If you are running Pulsar in Docker or deploying Pulsar using a Docker image (such as K8s and DCOS), you can use the `apachepulsar/pulsar-all` image instead of the `apachepulsar/pulsar` image. `apachepulsar/pulsar-all` image has already bundled tiered storage offloaders.
+
+## Configuration
+
+> #### Note
+>
+> Before offloading data from BookKeeper to Aliyun OSS, you need to configure some properties of the Aliyun OSS offload driver.
+
+Besides, you can also configure the Aliyun OSS offloader to run it automatically or trigger it manually.
+
+### Configure Aliyun OSS offloader driver
+
+You can configure the Aliyun OSS offloader driver in the configuration file `broker.conf` or `standalone.conf`.
+
+- **Required** configurations are as below.
+
+ Required configuration | Description | Example value
+ |---|---|---
+ `managedLedgerOffloadDriver` | Offloader driver name, which is case-insensitive. | aliyun-oss
+ `offloadersDirectory` | Offloader directory | offloaders
+ `managedLedgerOffloadBucket` | Bucket | pulsar-topic-offload
+ `managedLedgerOffloadServiceEndpoint` | Endpoint | http://oss-cn-hongkong.aliyuncs.com
+
+- **Optional** configurations are as below.
+
+ Optional | Description | Example value
+ |---|---|---
+ `managedLedgerOffloadReadBufferSizeInBytes`|Size of block read|1 MB
+ `managedLedgerOffloadMaxBlockSizeInBytes`|Size of block write|64 MB
+ `managedLedgerMinLedgerRolloverTimeMinutes`|Minimum time between ledger rollover for a topic<br><br>**Note**: it is not recommended that you set this configuration in the production environment.|2
+ `managedLedgerMaxEntriesPerLedger`|Maximum number of entries to append to a ledger before triggering a rollover.<br><br>**Note**: it is not recommended that you set this configuration in the production environment.|5000
+
+#### Bucket (required)
+
+A bucket is a basic container that holds your data. Everything you store in Aliyun OSS must be contained in a bucket. You can use a bucket to organize your data and control access to your data, but unlike directory and folder, you cannot nest a bucket.
+
+##### Example
+
+This example names the bucket as _pulsar-topic-offload_.
+
+```conf
+managedLedgerOffloadBucket=pulsar-topic-offload
+```
+
+#### Endpoint (required)
+
+The endpoint is the region where a bucket is located.
+
+> #### Tip
+>
+> For more information about Aliyun OSS regions and endpoints, see [here](https://help.aliyun.com/document_detail/31837.html).
+
+##### Example
+
+This example sets the endpoint as _oss-us-west-1-internal_.
+
+```
+managedLedgerOffloadServiceEndpoint=http://oss-us-west-1-internal.aliyuncs.com
+```
+
+#### Authentication (required)
+
+To be able to access Aliyun OSS, you need to authenticate with Aliyun OSS.
+
+* Set the environment variables `ALIYUN_OSS_ACCESS_KEY_ID` and `ALIYUN_OSS_ACCESS_KEY_SECRET` in `conf/pulsar_env.sh`.
Review comment:
since there only one bullet here, you can change it to the body text format.
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,242 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
+
+### Step
+
+This example uses Pulsar 2.8.0.
+
+1. Download the Pulsar tarball using one of the following ways:
+
+ * Download from the [Apache mirror](https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz)
+
+ * Download from the Pulsar [downloads page](https://pulsar.apache.org/download)
+
+ * Use [wget](https://www.gnu.org/software/wget):
+
+ ```shell
+ wget https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz
+ ```
+
+2. Download and untar the Pulsar offloaders package.
+
+ ```bash
+ wget https://downloads.apache.org/pulsar/pulsar-2.8.0/apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ tar xvfz apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ ```
+
+3. Copy the Pulsar offloaders as `offloaders` in the Pulsar directory.
+
+ ```
+ mv apache-pulsar-offloaders-2.8.0/offloaders apache-pulsar-2.8.0/offloaders
+
+ ls offloaders
+ ```
+
+ **Output**
+
+ As shown from the output, Pulsar uses [Apache jclouds](https://jclouds.apache.org) to support [AWS S3](https://aws.amazon.com/s3/), [GCS](https://cloud.google.com/storage/), [Azure](https://portal.azure.com/#home), and [Aliyun OSS](https://www.aliyun.com/product/oss) for long-term storage.
+
+
+ ```
+ tiered-storage-file-system-2.8.0.nar
+ tiered-storage-jcloud-2.8.0.nar
+ ```
+
+ > #### Note
+ >
+ > * If you are running Pulsar in a bare-metal cluster, make sure that `offloaders` tarball is unzipped in every broker's Pulsar directory.
+ >
+ > * If you are running Pulsar in Docker or deploying Pulsar using a Docker image (such as K8s and DCOS), you can use the `apachepulsar/pulsar-all` image instead of the `apachepulsar/pulsar` image. `apachepulsar/pulsar-all` image has already bundled tiered storage offloaders.
+
+## Configuration
+
+> #### Note
+>
+> Before offloading data from BookKeeper to Aliyun OSS, you need to configure some properties of the Aliyun OSS offload driver.
+
+Besides, you can also configure the Aliyun OSS offloader to run it automatically or trigger it manually.
+
+### Configure Aliyun OSS offloader driver
+
+You can configure the Aliyun OSS offloader driver in the configuration file `broker.conf` or `standalone.conf`.
+
+- **Required** configurations are as below.
+
+ Required configuration | Description | Example value
+ |---|---|---
+ `managedLedgerOffloadDriver` | Offloader driver name, which is case-insensitive. | aliyun-oss
+ `offloadersDirectory` | Offloader directory | offloaders
+ `managedLedgerOffloadBucket` | Bucket | pulsar-topic-offload
+ `managedLedgerOffloadServiceEndpoint` | Endpoint | http://oss-cn-hongkong.aliyuncs.com
+
+- **Optional** configurations are as below.
+
+ Optional | Description | Example value
+ |---|---|---
+ `managedLedgerOffloadReadBufferSizeInBytes`|Size of block read|1 MB
+ `managedLedgerOffloadMaxBlockSizeInBytes`|Size of block write|64 MB
+ `managedLedgerMinLedgerRolloverTimeMinutes`|Minimum time between ledger rollover for a topic<br><br>**Note**: it is not recommended that you set this configuration in the production environment.|2
+ `managedLedgerMaxEntriesPerLedger`|Maximum number of entries to append to a ledger before triggering a rollover.<br><br>**Note**: it is not recommended that you set this configuration in the production environment.|5000
+
+#### Bucket (required)
+
+A bucket is a basic container that holds your data. Everything you store in Aliyun OSS must be contained in a bucket. You can use a bucket to organize your data and control access to your data, but unlike directory and folder, you cannot nest a bucket.
+
+##### Example
+
+This example names the bucket as _pulsar-topic-offload_.
+
+```conf
+managedLedgerOffloadBucket=pulsar-topic-offload
+```
+
+#### Endpoint (required)
+
+The endpoint is the region where a bucket is located.
+
+> #### Tip
Review comment:
```suggestion
> **Tip**
```
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,242 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
+
+### Step
+
+This example uses Pulsar 2.8.0.
+
+1. Download the Pulsar tarball using one of the following ways:
+
+ * Download from the [Apache mirror](https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz)
+
+ * Download from the Pulsar [downloads page](https://pulsar.apache.org/download)
+
+ * Use [wget](https://www.gnu.org/software/wget):
+
+ ```shell
+ wget https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz
+ ```
+
+2. Download and untar the Pulsar offloaders package.
+
+ ```bash
+ wget https://downloads.apache.org/pulsar/pulsar-2.8.0/apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ tar xvfz apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ ```
+
+3. Copy the Pulsar offloaders as `offloaders` in the Pulsar directory.
+
+ ```
+ mv apache-pulsar-offloaders-2.8.0/offloaders apache-pulsar-2.8.0/offloaders
+
+ ls offloaders
+ ```
+
+ **Output**
+
+ As shown from the output, Pulsar uses [Apache jclouds](https://jclouds.apache.org) to support [AWS S3](https://aws.amazon.com/s3/), [GCS](https://cloud.google.com/storage/), [Azure](https://portal.azure.com/#home), and [Aliyun OSS](https://www.aliyun.com/product/oss) for long-term storage.
+
+
+ ```
+ tiered-storage-file-system-2.8.0.nar
+ tiered-storage-jcloud-2.8.0.nar
+ ```
+
+ > #### Note
+ >
+ > * If you are running Pulsar in a bare-metal cluster, make sure that `offloaders` tarball is unzipped in every broker's Pulsar directory.
+ >
+ > * If you are running Pulsar in Docker or deploying Pulsar using a Docker image (such as K8s and DCOS), you can use the `apachepulsar/pulsar-all` image instead of the `apachepulsar/pulsar` image. `apachepulsar/pulsar-all` image has already bundled tiered storage offloaders.
+
+## Configuration
+
+> #### Note
Review comment:
```suggestion
> **Note**
```
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,242 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
+
+### Step
+
+This example uses Pulsar 2.8.0.
+
+1. Download the Pulsar tarball using one of the following ways:
+
+ * Download from the [Apache mirror](https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz)
+
+ * Download from the Pulsar [downloads page](https://pulsar.apache.org/download)
+
+ * Use [wget](https://www.gnu.org/software/wget):
+
+ ```shell
+ wget https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz
+ ```
+
+2. Download and untar the Pulsar offloaders package.
+
+ ```bash
+ wget https://downloads.apache.org/pulsar/pulsar-2.8.0/apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ tar xvfz apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ ```
+
+3. Copy the Pulsar offloaders as `offloaders` in the Pulsar directory.
+
+ ```
+ mv apache-pulsar-offloaders-2.8.0/offloaders apache-pulsar-2.8.0/offloaders
+
+ ls offloaders
+ ```
+
+ **Output**
+
+ As shown from the output, Pulsar uses [Apache jclouds](https://jclouds.apache.org) to support [AWS S3](https://aws.amazon.com/s3/), [GCS](https://cloud.google.com/storage/), [Azure](https://portal.azure.com/#home), and [Aliyun OSS](https://www.aliyun.com/product/oss) for long-term storage.
+
+
+ ```
+ tiered-storage-file-system-2.8.0.nar
+ tiered-storage-jcloud-2.8.0.nar
+ ```
+
+ > #### Note
Review comment:
```suggestion
> **Note**
```
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,242 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
+
+### Step
+
+This example uses Pulsar 2.8.0.
+
+1. Download the Pulsar tarball using one of the following ways:
+
+ * Download from the [Apache mirror](https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz)
+
+ * Download from the Pulsar [downloads page](https://pulsar.apache.org/download)
+
+ * Use [wget](https://www.gnu.org/software/wget):
+
+ ```shell
+ wget https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz
+ ```
+
+2. Download and untar the Pulsar offloaders package.
+
+ ```bash
+ wget https://downloads.apache.org/pulsar/pulsar-2.8.0/apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ tar xvfz apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ ```
+
+3. Copy the Pulsar offloaders as `offloaders` in the Pulsar directory.
+
+ ```
+ mv apache-pulsar-offloaders-2.8.0/offloaders apache-pulsar-2.8.0/offloaders
+
+ ls offloaders
+ ```
+
+ **Output**
+
+ As shown from the output, Pulsar uses [Apache jclouds](https://jclouds.apache.org) to support [AWS S3](https://aws.amazon.com/s3/), [GCS](https://cloud.google.com/storage/), [Azure](https://portal.azure.com/#home), and [Aliyun OSS](https://www.aliyun.com/product/oss) for long-term storage.
+
+
+ ```
+ tiered-storage-file-system-2.8.0.nar
+ tiered-storage-jcloud-2.8.0.nar
+ ```
+
+ > #### Note
+ >
+ > * If you are running Pulsar in a bare-metal cluster, make sure that `offloaders` tarball is unzipped in every broker's Pulsar directory.
+ >
+ > * If you are running Pulsar in Docker or deploying Pulsar using a Docker image (such as K8s and DCOS), you can use the `apachepulsar/pulsar-all` image instead of the `apachepulsar/pulsar` image. `apachepulsar/pulsar-all` image has already bundled tiered storage offloaders.
+
+## Configuration
+
+> #### Note
+>
+> Before offloading data from BookKeeper to Aliyun OSS, you need to configure some properties of the Aliyun OSS offload driver.
+
+Besides, you can also configure the Aliyun OSS offloader to run it automatically or trigger it manually.
+
+### Configure Aliyun OSS offloader driver
+
+You can configure the Aliyun OSS offloader driver in the configuration file `broker.conf` or `standalone.conf`.
+
+- **Required** configurations are as below.
+
+ Required configuration | Description | Example value
+ |---|---|---
+ `managedLedgerOffloadDriver` | Offloader driver name, which is case-insensitive. | aliyun-oss
+ `offloadersDirectory` | Offloader directory | offloaders
+ `managedLedgerOffloadBucket` | Bucket | pulsar-topic-offload
+ `managedLedgerOffloadServiceEndpoint` | Endpoint | http://oss-cn-hongkong.aliyuncs.com
+
+- **Optional** configurations are as below.
+
+ Optional | Description | Example value
+ |---|---|---
+ `managedLedgerOffloadReadBufferSizeInBytes`|Size of block read|1 MB
+ `managedLedgerOffloadMaxBlockSizeInBytes`|Size of block write|64 MB
+ `managedLedgerMinLedgerRolloverTimeMinutes`|Minimum time between ledger rollover for a topic<br><br>**Note**: it is not recommended that you set this configuration in the production environment.|2
+ `managedLedgerMaxEntriesPerLedger`|Maximum number of entries to append to a ledger before triggering a rollover.<br><br>**Note**: it is not recommended that you set this configuration in the production environment.|5000
+
+#### Bucket (required)
+
+A bucket is a basic container that holds your data. Everything you store in Aliyun OSS must be contained in a bucket. You can use a bucket to organize your data and control access to your data, but unlike directory and folder, you cannot nest a bucket.
+
+##### Example
+
+This example names the bucket as _pulsar-topic-offload_.
+
+```conf
+managedLedgerOffloadBucket=pulsar-topic-offload
+```
+
+#### Endpoint (required)
+
+The endpoint is the region where a bucket is located.
+
+> #### Tip
+>
+> For more information about Aliyun OSS regions and endpoints, see [here](https://help.aliyun.com/document_detail/31837.html).
+
+##### Example
+
+This example sets the endpoint as _oss-us-west-1-internal_.
+
+```
+managedLedgerOffloadServiceEndpoint=http://oss-us-west-1-internal.aliyuncs.com
+```
+
+#### Authentication (required)
+
+To be able to access Aliyun OSS, you need to authenticate with Aliyun OSS.
+
+* Set the environment variables `ALIYUN_OSS_ACCESS_KEY_ID` and `ALIYUN_OSS_ACCESS_KEY_SECRET` in `conf/pulsar_env.sh`.
+
+ "export" is important so that the variables are made available in the environment of spawned processes.
+
+ ```bash
+ export ALIYUN_OSS_ACCESS_KEY_ID=ABC123456789
+ export ALIYUN_OSS_ACCESS_KEY_SECRET=ded7db27a4558e2ea8bbf0bf37ae0e8521618f366c
+ ```
+
+#### Size of block read/write
+
+You can configure the size of a request sent to or read from Aliyun OSS in the configuration file `broker.conf` or `standalone.conf`.
+
+Configuration|Description|Default value
+|---|---|---
+`managedLedgerOffloadReadBufferSizeInBytes`|Block size for each individual read when reading back data from Aliyun OSS.|1 MB
+`managedLedgerOffloadMaxBlockSizeInBytes`|Maximum size of a "part" sent during a multipart upload to Aliyun OSS. It **cannot** be smaller than 5 MB. |64 MB
+
+### Configure Aliyun OSS offloader to run automatically
Review comment:
```suggestion
### Run Aliyun OSS offloader automatically
```
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,242 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
Review comment:
```suggestion
- Pulsar: 2.8.0 or higher versions
```
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,242 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
+
+### Step
+
+This example uses Pulsar 2.8.0.
+
+1. Download the Pulsar tarball using one of the following ways:
+
+ * Download from the [Apache mirror](https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz)
+
+ * Download from the Pulsar [downloads page](https://pulsar.apache.org/download)
+
+ * Use [wget](https://www.gnu.org/software/wget):
+
+ ```shell
+ wget https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz
+ ```
+
+2. Download and untar the Pulsar offloaders package.
+
+ ```bash
+ wget https://downloads.apache.org/pulsar/pulsar-2.8.0/apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ tar xvfz apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ ```
+
+3. Copy the Pulsar offloaders as `offloaders` in the Pulsar directory.
+
+ ```
+ mv apache-pulsar-offloaders-2.8.0/offloaders apache-pulsar-2.8.0/offloaders
+
+ ls offloaders
+ ```
+
+ **Output**
+
+ As shown from the output, Pulsar uses [Apache jclouds](https://jclouds.apache.org) to support [AWS S3](https://aws.amazon.com/s3/), [GCS](https://cloud.google.com/storage/), [Azure](https://portal.azure.com/#home), and [Aliyun OSS](https://www.aliyun.com/product/oss) for long-term storage.
+
+
+ ```
+ tiered-storage-file-system-2.8.0.nar
+ tiered-storage-jcloud-2.8.0.nar
+ ```
+
+ > #### Note
+ >
+ > * If you are running Pulsar in a bare-metal cluster, make sure that `offloaders` tarball is unzipped in every broker's Pulsar directory.
+ >
+ > * If you are running Pulsar in Docker or deploying Pulsar using a Docker image (such as K8s and DCOS), you can use the `apachepulsar/pulsar-all` image instead of the `apachepulsar/pulsar` image. `apachepulsar/pulsar-all` image has already bundled tiered storage offloaders.
+
+## Configuration
+
+> #### Note
+>
+> Before offloading data from BookKeeper to Aliyun OSS, you need to configure some properties of the Aliyun OSS offload driver.
+
+Besides, you can also configure the Aliyun OSS offloader to run it automatically or trigger it manually.
+
+### Configure Aliyun OSS offloader driver
+
+You can configure the Aliyun OSS offloader driver in the configuration file `broker.conf` or `standalone.conf`.
+
+- **Required** configurations are as below.
+
+ Required configuration | Description | Example value
+ |---|---|---
+ `managedLedgerOffloadDriver` | Offloader driver name, which is case-insensitive. | aliyun-oss
+ `offloadersDirectory` | Offloader directory | offloaders
+ `managedLedgerOffloadBucket` | Bucket | pulsar-topic-offload
+ `managedLedgerOffloadServiceEndpoint` | Endpoint | http://oss-cn-hongkong.aliyuncs.com
+
+- **Optional** configurations are as below.
+
+ Optional | Description | Example value
+ |---|---|---
+ `managedLedgerOffloadReadBufferSizeInBytes`|Size of block read|1 MB
+ `managedLedgerOffloadMaxBlockSizeInBytes`|Size of block write|64 MB
+ `managedLedgerMinLedgerRolloverTimeMinutes`|Minimum time between ledger rollover for a topic<br><br>**Note**: it is not recommended that you set this configuration in the production environment.|2
+ `managedLedgerMaxEntriesPerLedger`|Maximum number of entries to append to a ledger before triggering a rollover.<br><br>**Note**: it is not recommended that you set this configuration in the production environment.|5000
+
+#### Bucket (required)
+
+A bucket is a basic container that holds your data. Everything you store in Aliyun OSS must be contained in a bucket. You can use a bucket to organize your data and control access to your data, but unlike directory and folder, you cannot nest a bucket.
+
+##### Example
+
+This example names the bucket as _pulsar-topic-offload_.
+
+```conf
+managedLedgerOffloadBucket=pulsar-topic-offload
+```
+
+#### Endpoint (required)
+
+The endpoint is the region where a bucket is located.
+
+> #### Tip
+>
+> For more information about Aliyun OSS regions and endpoints, see [here](https://help.aliyun.com/document_detail/31837.html).
Review comment:
this link is linked to a Chinese version. Could you please help add an English version?
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,242 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
+
+### Step
+
+This example uses Pulsar 2.8.0.
+
+1. Download the Pulsar tarball using one of the following ways:
+
+ * Download from the [Apache mirror](https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz)
+
+ * Download from the Pulsar [downloads page](https://pulsar.apache.org/download)
+
+ * Use [wget](https://www.gnu.org/software/wget):
+
+ ```shell
+ wget https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz
+ ```
+
+2. Download and untar the Pulsar offloaders package.
+
+ ```bash
+ wget https://downloads.apache.org/pulsar/pulsar-2.8.0/apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ tar xvfz apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ ```
+
+3. Copy the Pulsar offloaders as `offloaders` in the Pulsar directory.
+
+ ```
+ mv apache-pulsar-offloaders-2.8.0/offloaders apache-pulsar-2.8.0/offloaders
+
+ ls offloaders
+ ```
+
+ **Output**
+
+ As shown from the output, Pulsar uses [Apache jclouds](https://jclouds.apache.org) to support [AWS S3](https://aws.amazon.com/s3/), [GCS](https://cloud.google.com/storage/), [Azure](https://portal.azure.com/#home), and [Aliyun OSS](https://www.aliyun.com/product/oss) for long-term storage.
+
+
+ ```
+ tiered-storage-file-system-2.8.0.nar
+ tiered-storage-jcloud-2.8.0.nar
+ ```
+
+ > #### Note
+ >
+ > * If you are running Pulsar in a bare-metal cluster, make sure that `offloaders` tarball is unzipped in every broker's Pulsar directory.
+ >
+ > * If you are running Pulsar in Docker or deploying Pulsar using a Docker image (such as K8s and DCOS), you can use the `apachepulsar/pulsar-all` image instead of the `apachepulsar/pulsar` image. `apachepulsar/pulsar-all` image has already bundled tiered storage offloaders.
+
+## Configuration
+
+> #### Note
+>
+> Before offloading data from BookKeeper to Aliyun OSS, you need to configure some properties of the Aliyun OSS offload driver.
+
+Besides, you can also configure the Aliyun OSS offloader to run it automatically or trigger it manually.
+
+### Configure Aliyun OSS offloader driver
+
+You can configure the Aliyun OSS offloader driver in the configuration file `broker.conf` or `standalone.conf`.
+
+- **Required** configurations are as below.
+
+ Required configuration | Description | Example value
+ |---|---|---
+ `managedLedgerOffloadDriver` | Offloader driver name, which is case-insensitive. | aliyun-oss
+ `offloadersDirectory` | Offloader directory | offloaders
+ `managedLedgerOffloadBucket` | Bucket | pulsar-topic-offload
+ `managedLedgerOffloadServiceEndpoint` | Endpoint | http://oss-cn-hongkong.aliyuncs.com
+
+- **Optional** configurations are as below.
+
+ Optional | Description | Example value
+ |---|---|---
+ `managedLedgerOffloadReadBufferSizeInBytes`|Size of block read|1 MB
+ `managedLedgerOffloadMaxBlockSizeInBytes`|Size of block write|64 MB
+ `managedLedgerMinLedgerRolloverTimeMinutes`|Minimum time between ledger rollover for a topic<br><br>**Note**: it is not recommended that you set this configuration in the production environment.|2
+ `managedLedgerMaxEntriesPerLedger`|Maximum number of entries to append to a ledger before triggering a rollover.<br><br>**Note**: it is not recommended that you set this configuration in the production environment.|5000
+
+#### Bucket (required)
+
+A bucket is a basic container that holds your data. Everything you store in Aliyun OSS must be contained in a bucket. You can use a bucket to organize your data and control access to your data, but unlike directory and folder, you cannot nest a bucket.
+
+##### Example
+
+This example names the bucket as _pulsar-topic-offload_.
+
+```conf
+managedLedgerOffloadBucket=pulsar-topic-offload
+```
+
+#### Endpoint (required)
+
+The endpoint is the region where a bucket is located.
+
+> #### Tip
+>
+> For more information about Aliyun OSS regions and endpoints, see [here](https://help.aliyun.com/document_detail/31837.html).
+
+##### Example
+
+This example sets the endpoint as _oss-us-west-1-internal_.
+
+```
+managedLedgerOffloadServiceEndpoint=http://oss-us-west-1-internal.aliyuncs.com
+```
+
+#### Authentication (required)
+
+To be able to access Aliyun OSS, you need to authenticate with Aliyun OSS.
+
+* Set the environment variables `ALIYUN_OSS_ACCESS_KEY_ID` and `ALIYUN_OSS_ACCESS_KEY_SECRET` in `conf/pulsar_env.sh`.
+
+ "export" is important so that the variables are made available in the environment of spawned processes.
+
+ ```bash
+ export ALIYUN_OSS_ACCESS_KEY_ID=ABC123456789
+ export ALIYUN_OSS_ACCESS_KEY_SECRET=ded7db27a4558e2ea8bbf0bf37ae0e8521618f366c
+ ```
+
+#### Size of block read/write
+
+You can configure the size of a request sent to or read from Aliyun OSS in the configuration file `broker.conf` or `standalone.conf`.
+
+Configuration|Description|Default value
+|---|---|---
+`managedLedgerOffloadReadBufferSizeInBytes`|Block size for each individual read when reading back data from Aliyun OSS.|1 MB
+`managedLedgerOffloadMaxBlockSizeInBytes`|Maximum size of a "part" sent during a multipart upload to Aliyun OSS. It **cannot** be smaller than 5 MB. |64 MB
+
+### Configure Aliyun OSS offloader to run automatically
+
+Namespace policy can be configured to offload data automatically once a threshold is reached. The threshold is based on the size of data that a topic has stored on a Pulsar cluster. Once the topic reaches the threshold, an offloading operation is triggered automatically.
+
+Threshold value|Action
+|---|---
Review comment:
it seems the table texts are in wrong format.
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,242 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
+
+### Step
+
+This example uses Pulsar 2.8.0.
+
+1. Download the Pulsar tarball using one of the following ways:
+
+ * Download from the [Apache mirror](https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz)
+
+ * Download from the Pulsar [downloads page](https://pulsar.apache.org/download)
+
+ * Use [wget](https://www.gnu.org/software/wget):
+
+ ```shell
+ wget https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz
+ ```
+
+2. Download and untar the Pulsar offloaders package.
+
+ ```bash
+ wget https://downloads.apache.org/pulsar/pulsar-2.8.0/apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ tar xvfz apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ ```
+
+3. Copy the Pulsar offloaders as `offloaders` in the Pulsar directory.
+
+ ```
+ mv apache-pulsar-offloaders-2.8.0/offloaders apache-pulsar-2.8.0/offloaders
+
+ ls offloaders
+ ```
+
+ **Output**
+
+ As shown from the output, Pulsar uses [Apache jclouds](https://jclouds.apache.org) to support [AWS S3](https://aws.amazon.com/s3/), [GCS](https://cloud.google.com/storage/), [Azure](https://portal.azure.com/#home), and [Aliyun OSS](https://www.aliyun.com/product/oss) for long-term storage.
+
+
+ ```
+ tiered-storage-file-system-2.8.0.nar
+ tiered-storage-jcloud-2.8.0.nar
+ ```
+
+ > #### Note
+ >
+ > * If you are running Pulsar in a bare-metal cluster, make sure that `offloaders` tarball is unzipped in every broker's Pulsar directory.
+ >
+ > * If you are running Pulsar in Docker or deploying Pulsar using a Docker image (such as K8s and DCOS), you can use the `apachepulsar/pulsar-all` image instead of the `apachepulsar/pulsar` image. `apachepulsar/pulsar-all` image has already bundled tiered storage offloaders.
+
+## Configuration
+
+> #### Note
+>
+> Before offloading data from BookKeeper to Aliyun OSS, you need to configure some properties of the Aliyun OSS offload driver.
+
+Besides, you can also configure the Aliyun OSS offloader to run it automatically or trigger it manually.
+
+### Configure Aliyun OSS offloader driver
+
+You can configure the Aliyun OSS offloader driver in the configuration file `broker.conf` or `standalone.conf`.
+
+- **Required** configurations are as below.
+
+ Required configuration | Description | Example value
+ |---|---|---
+ `managedLedgerOffloadDriver` | Offloader driver name, which is case-insensitive. | aliyun-oss
+ `offloadersDirectory` | Offloader directory | offloaders
+ `managedLedgerOffloadBucket` | Bucket | pulsar-topic-offload
+ `managedLedgerOffloadServiceEndpoint` | Endpoint | http://oss-cn-hongkong.aliyuncs.com
+
+- **Optional** configurations are as below.
+
+ Optional | Description | Example value
+ |---|---|---
+ `managedLedgerOffloadReadBufferSizeInBytes`|Size of block read|1 MB
+ `managedLedgerOffloadMaxBlockSizeInBytes`|Size of block write|64 MB
+ `managedLedgerMinLedgerRolloverTimeMinutes`|Minimum time between ledger rollover for a topic<br><br>**Note**: it is not recommended that you set this configuration in the production environment.|2
+ `managedLedgerMaxEntriesPerLedger`|Maximum number of entries to append to a ledger before triggering a rollover.<br><br>**Note**: it is not recommended that you set this configuration in the production environment.|5000
+
+#### Bucket (required)
+
+A bucket is a basic container that holds your data. Everything you store in Aliyun OSS must be contained in a bucket. You can use a bucket to organize your data and control access to your data, but unlike directory and folder, you cannot nest a bucket.
+
+##### Example
+
+This example names the bucket as _pulsar-topic-offload_.
+
+```conf
+managedLedgerOffloadBucket=pulsar-topic-offload
+```
+
+#### Endpoint (required)
+
+The endpoint is the region where a bucket is located.
+
+> #### Tip
+>
+> For more information about Aliyun OSS regions and endpoints, see [here](https://help.aliyun.com/document_detail/31837.html).
+
+##### Example
+
+This example sets the endpoint as _oss-us-west-1-internal_.
+
+```
+managedLedgerOffloadServiceEndpoint=http://oss-us-west-1-internal.aliyuncs.com
+```
+
+#### Authentication (required)
+
+To be able to access Aliyun OSS, you need to authenticate with Aliyun OSS.
+
+* Set the environment variables `ALIYUN_OSS_ACCESS_KEY_ID` and `ALIYUN_OSS_ACCESS_KEY_SECRET` in `conf/pulsar_env.sh`.
+
+ "export" is important so that the variables are made available in the environment of spawned processes.
+
+ ```bash
+ export ALIYUN_OSS_ACCESS_KEY_ID=ABC123456789
+ export ALIYUN_OSS_ACCESS_KEY_SECRET=ded7db27a4558e2ea8bbf0bf37ae0e8521618f366c
+ ```
+
+#### Size of block read/write
+
+You can configure the size of a request sent to or read from Aliyun OSS in the configuration file `broker.conf` or `standalone.conf`.
+
+Configuration|Description|Default value
+|---|---|---
+`managedLedgerOffloadReadBufferSizeInBytes`|Block size for each individual read when reading back data from Aliyun OSS.|1 MB
+`managedLedgerOffloadMaxBlockSizeInBytes`|Maximum size of a "part" sent during a multipart upload to Aliyun OSS. It **cannot** be smaller than 5 MB. |64 MB
+
+### Configure Aliyun OSS offloader to run automatically
+
+Namespace policy can be configured to offload data automatically once a threshold is reached. The threshold is based on the size of data that a topic has stored on a Pulsar cluster. Once the topic reaches the threshold, an offloading operation is triggered automatically.
+
+Threshold value|Action
+|---|---
+> 0 | It triggers the offloading operation if the topic storage reaches its threshold.
+= 0|It causes a broker to offload data as soon as possible.
+< 0 |It disables automatic offloading operation.
+
+Automatic offloading runs when a new segment is added to a topic log. If you set the threshold on a namespace, but few messages are being produced to the topic, the offloader does not work until the current segment is full.
+
+You can configure the threshold size using CLI tools, such as pulsar-admin.
+
+The offload configurations in `broker.conf` and `standalone.conf` are used for the namespaces that do not have namespace level offload policies. Each namespace can have its own offload policy. If you want to set offload policy for each namespace, use the command [`pulsar-admin namespaces set-offload-policies options`](http://pulsar.apache.org/tools/pulsar-admin/2.6.0-SNAPSHOT/#-em-set-offload-policies-em-) command.
+
+#### Example
+
+This example sets the Aliyun OSS offloader threshold size to 10 MB using pulsar-admin.
+
+```bash
+bin/pulsar-admin namespaces set-offload-threshold --size 10M my-tenant/my-namespace
+```
+
+> #### Tip
+>
+> For more information about the `pulsar-admin namespaces set-offload-threshold options` command, including flags, descriptions, and default values, see [here](http://pulsar.apache.org/tools/pulsar-admin/2.6.0-SNAPSHOT/#-em-set-offload-threshold-em-).
+
+### Configure Aliyun OSS offloader to run manually
Review comment:
```suggestion
### Run Aliyun OSS offloader manually
```
----------------------------------------------------------------
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
[GitHub] [pulsar] Anonymitaet commented on a change in pull request #9696: [docs] Add documents for Aliyun OSS offload
Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on a change in pull request #9696:
URL: https://github.com/apache/pulsar/pull/9696#discussion_r586113527
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,242 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
Review comment:
@Huanli-Meng Various writing manuals (including Google developer documentation style, IBM Style Guide, Apple Style Guide, The Chicago Manual of Style, etc) suggest using <"earlier" or "later"> rather than <"lower" or "higher"> for versions.
----------------------------------------------------------------
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
[GitHub] [pulsar] yufan022 commented on a change in pull request #9696: [docs] Add documents for Aliyun OSS offload
Posted by GitBox <gi...@apache.org>.
yufan022 commented on a change in pull request #9696:
URL: https://github.com/apache/pulsar/pull/9696#discussion_r610519180
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,242 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
+
+### Step
+
+This example uses Pulsar 2.8.0.
+
+1. Download the Pulsar tarball using one of the following ways:
+
+ * Download from the [Apache mirror](https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz)
+
+ * Download from the Pulsar [downloads page](https://pulsar.apache.org/download)
+
+ * Use [wget](https://www.gnu.org/software/wget):
+
+ ```shell
+ wget https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz
+ ```
+
+2. Download and untar the Pulsar offloaders package.
+
+ ```bash
+ wget https://downloads.apache.org/pulsar/pulsar-2.8.0/apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ tar xvfz apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ ```
+
+3. Copy the Pulsar offloaders as `offloaders` in the Pulsar directory.
+
+ ```
+ mv apache-pulsar-offloaders-2.8.0/offloaders apache-pulsar-2.8.0/offloaders
+
+ ls offloaders
+ ```
+
+ **Output**
+
+ As shown from the output, Pulsar uses [Apache jclouds](https://jclouds.apache.org) to support [AWS S3](https://aws.amazon.com/s3/), [GCS](https://cloud.google.com/storage/), [Azure](https://portal.azure.com/#home), and [Aliyun OSS](https://www.aliyun.com/product/oss) for long-term storage.
+
+
+ ```
+ tiered-storage-file-system-2.8.0.nar
+ tiered-storage-jcloud-2.8.0.nar
+ ```
+
+ > #### Note
+ >
+ > * If you are running Pulsar in a bare-metal cluster, make sure that `offloaders` tarball is unzipped in every broker's Pulsar directory.
+ >
+ > * If you are running Pulsar in Docker or deploying Pulsar using a Docker image (such as K8s and DCOS), you can use the `apachepulsar/pulsar-all` image instead of the `apachepulsar/pulsar` image. `apachepulsar/pulsar-all` image has already bundled tiered storage offloaders.
+
+## Configuration
+
+> #### Note
+>
+> Before offloading data from BookKeeper to Aliyun OSS, you need to configure some properties of the Aliyun OSS offload driver.
+
+Besides, you can also configure the Aliyun OSS offloader to run it automatically or trigger it manually.
+
+### Configure Aliyun OSS offloader driver
+
+You can configure the Aliyun OSS offloader driver in the configuration file `broker.conf` or `standalone.conf`.
+
+- **Required** configurations are as below.
+
+ Required configuration | Description | Example value
+ |---|---|---
+ `managedLedgerOffloadDriver` | Offloader driver name, which is case-insensitive. | aliyun-oss
+ `offloadersDirectory` | Offloader directory | offloaders
+ `managedLedgerOffloadBucket` | Bucket | pulsar-topic-offload
+ `managedLedgerOffloadServiceEndpoint` | Endpoint | http://oss-cn-hongkong.aliyuncs.com
+
+- **Optional** configurations are as below.
+
+ Optional | Description | Example value
+ |---|---|---
+ `managedLedgerOffloadReadBufferSizeInBytes`|Size of block read|1 MB
+ `managedLedgerOffloadMaxBlockSizeInBytes`|Size of block write|64 MB
+ `managedLedgerMinLedgerRolloverTimeMinutes`|Minimum time between ledger rollover for a topic<br><br>**Note**: it is not recommended that you set this configuration in the production environment.|2
+ `managedLedgerMaxEntriesPerLedger`|Maximum number of entries to append to a ledger before triggering a rollover.<br><br>**Note**: it is not recommended that you set this configuration in the production environment.|5000
+
+#### Bucket (required)
+
+A bucket is a basic container that holds your data. Everything you store in Aliyun OSS must be contained in a bucket. You can use a bucket to organize your data and control access to your data, but unlike directory and folder, you cannot nest a bucket.
+
+##### Example
+
+This example names the bucket as _pulsar-topic-offload_.
+
+```conf
+managedLedgerOffloadBucket=pulsar-topic-offload
+```
+
+#### Endpoint (required)
+
+The endpoint is the region where a bucket is located.
+
+> #### Tip
+>
+> For more information about Aliyun OSS regions and endpoints, see [here](https://help.aliyun.com/document_detail/31837.html).
+
+##### Example
+
+This example sets the endpoint as _oss-us-west-1-internal_.
+
+```
+managedLedgerOffloadServiceEndpoint=http://oss-us-west-1-internal.aliyuncs.com
+```
+
+#### Authentication (required)
+
+To be able to access Aliyun OSS, you need to authenticate with Aliyun OSS.
+
+* Set the environment variables `ALIYUN_OSS_ACCESS_KEY_ID` and `ALIYUN_OSS_ACCESS_KEY_SECRET` in `conf/pulsar_env.sh`.
+
+ "export" is important so that the variables are made available in the environment of spawned processes.
+
+ ```bash
+ export ALIYUN_OSS_ACCESS_KEY_ID=ABC123456789
+ export ALIYUN_OSS_ACCESS_KEY_SECRET=ded7db27a4558e2ea8bbf0bf37ae0e8521618f366c
+ ```
+
+#### Size of block read/write
+
+You can configure the size of a request sent to or read from Aliyun OSS in the configuration file `broker.conf` or `standalone.conf`.
+
+Configuration|Description|Default value
+|---|---|---
+`managedLedgerOffloadReadBufferSizeInBytes`|Block size for each individual read when reading back data from Aliyun OSS.|1 MB
+`managedLedgerOffloadMaxBlockSizeInBytes`|Maximum size of a "part" sent during a multipart upload to Aliyun OSS. It **cannot** be smaller than 5 MB. |64 MB
+
+### Configure Aliyun OSS offloader to run automatically
+
+Namespace policy can be configured to offload data automatically once a threshold is reached. The threshold is based on the size of data that a topic has stored on a Pulsar cluster. Once the topic reaches the threshold, an offloading operation is triggered automatically.
+
+Threshold value|Action
+|---|---
Review comment:
fix
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,242 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
+
+### Step
+
+This example uses Pulsar 2.8.0.
+
+1. Download the Pulsar tarball using one of the following ways:
+
+ * Download from the [Apache mirror](https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz)
+
+ * Download from the Pulsar [downloads page](https://pulsar.apache.org/download)
+
+ * Use [wget](https://www.gnu.org/software/wget):
+
+ ```shell
+ wget https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz
+ ```
+
+2. Download and untar the Pulsar offloaders package.
+
+ ```bash
+ wget https://downloads.apache.org/pulsar/pulsar-2.8.0/apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ tar xvfz apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ ```
+
+3. Copy the Pulsar offloaders as `offloaders` in the Pulsar directory.
+
+ ```
+ mv apache-pulsar-offloaders-2.8.0/offloaders apache-pulsar-2.8.0/offloaders
+
+ ls offloaders
+ ```
+
+ **Output**
+
+ As shown from the output, Pulsar uses [Apache jclouds](https://jclouds.apache.org) to support [AWS S3](https://aws.amazon.com/s3/), [GCS](https://cloud.google.com/storage/), [Azure](https://portal.azure.com/#home), and [Aliyun OSS](https://www.aliyun.com/product/oss) for long-term storage.
+
+
+ ```
+ tiered-storage-file-system-2.8.0.nar
+ tiered-storage-jcloud-2.8.0.nar
+ ```
+
+ > #### Note
+ >
+ > * If you are running Pulsar in a bare-metal cluster, make sure that `offloaders` tarball is unzipped in every broker's Pulsar directory.
+ >
+ > * If you are running Pulsar in Docker or deploying Pulsar using a Docker image (such as K8s and DCOS), you can use the `apachepulsar/pulsar-all` image instead of the `apachepulsar/pulsar` image. `apachepulsar/pulsar-all` image has already bundled tiered storage offloaders.
+
+## Configuration
+
+> #### Note
+>
+> Before offloading data from BookKeeper to Aliyun OSS, you need to configure some properties of the Aliyun OSS offload driver.
+
+Besides, you can also configure the Aliyun OSS offloader to run it automatically or trigger it manually.
+
+### Configure Aliyun OSS offloader driver
+
+You can configure the Aliyun OSS offloader driver in the configuration file `broker.conf` or `standalone.conf`.
+
+- **Required** configurations are as below.
+
+ Required configuration | Description | Example value
+ |---|---|---
+ `managedLedgerOffloadDriver` | Offloader driver name, which is case-insensitive. | aliyun-oss
+ `offloadersDirectory` | Offloader directory | offloaders
+ `managedLedgerOffloadBucket` | Bucket | pulsar-topic-offload
+ `managedLedgerOffloadServiceEndpoint` | Endpoint | http://oss-cn-hongkong.aliyuncs.com
+
+- **Optional** configurations are as below.
+
+ Optional | Description | Example value
+ |---|---|---
+ `managedLedgerOffloadReadBufferSizeInBytes`|Size of block read|1 MB
+ `managedLedgerOffloadMaxBlockSizeInBytes`|Size of block write|64 MB
+ `managedLedgerMinLedgerRolloverTimeMinutes`|Minimum time between ledger rollover for a topic<br><br>**Note**: it is not recommended that you set this configuration in the production environment.|2
+ `managedLedgerMaxEntriesPerLedger`|Maximum number of entries to append to a ledger before triggering a rollover.<br><br>**Note**: it is not recommended that you set this configuration in the production environment.|5000
+
+#### Bucket (required)
+
+A bucket is a basic container that holds your data. Everything you store in Aliyun OSS must be contained in a bucket. You can use a bucket to organize your data and control access to your data, but unlike directory and folder, you cannot nest a bucket.
+
+##### Example
+
+This example names the bucket as _pulsar-topic-offload_.
+
+```conf
+managedLedgerOffloadBucket=pulsar-topic-offload
+```
+
+#### Endpoint (required)
+
+The endpoint is the region where a bucket is located.
+
+> #### Tip
+>
+> For more information about Aliyun OSS regions and endpoints, see [here](https://help.aliyun.com/document_detail/31837.html).
+
+##### Example
+
+This example sets the endpoint as _oss-us-west-1-internal_.
+
+```
+managedLedgerOffloadServiceEndpoint=http://oss-us-west-1-internal.aliyuncs.com
+```
+
+#### Authentication (required)
+
+To be able to access Aliyun OSS, you need to authenticate with Aliyun OSS.
+
+* Set the environment variables `ALIYUN_OSS_ACCESS_KEY_ID` and `ALIYUN_OSS_ACCESS_KEY_SECRET` in `conf/pulsar_env.sh`.
Review comment:
fix
--
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
[GitHub] [pulsar] Jennifer88huang commented on a change in pull request #9696: [docs] Add documents for Aliyun OSS offload
Posted by GitBox <gi...@apache.org>.
Jennifer88huang commented on a change in pull request #9696:
URL: https://github.com/apache/pulsar/pull/9696#discussion_r586079322
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,242 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
+
+### Step
+
+This example uses Pulsar 2.8.0.
+
+1. Download the Pulsar tarball using one of the following ways:
+
+ * Download from the [Apache mirror](https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz)
+
+ * Download from the Pulsar [downloads page](https://pulsar.apache.org/download)
+
+ * Use [wget](https://www.gnu.org/software/wget):
+
+ ```shell
+ wget https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz
+ ```
Review comment:
Those info duplicate with info here https://pulsar.apache.org/docs/en/standalone/#install-pulsar-using-binary-release, we can use reference to that link directly.
----------------------------------------------------------------
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
[GitHub] [pulsar] yufan022 commented on a change in pull request #9696: [docs] Add documents for Aliyun OSS offload
Posted by GitBox <gi...@apache.org>.
yufan022 commented on a change in pull request #9696:
URL: https://github.com/apache/pulsar/pull/9696#discussion_r610499167
##########
File path: site2/docs/tiered-storage-aliyun.md
##########
@@ -0,0 +1,242 @@
+---
+id: tiered-storage-aliyun
+title: Use Aliyun OSS offloader with Pulsar
+sidebar_label: Aliyun OSS offloader
+---
+
+This chapter guides you through every step of installing and configuring the Aliyun Object Storage Service (OSS) offloader and using it with Pulsar.
+
+## Installation
+
+Follow the steps below to install the Aliyun OSS offloader.
+
+### Prerequisite
+
+- Pulsar: 2.8.0 or later versions
+
+### Step
+
+This example uses Pulsar 2.8.0.
+
+1. Download the Pulsar tarball using one of the following ways:
+
+ * Download from the [Apache mirror](https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz)
+
+ * Download from the Pulsar [downloads page](https://pulsar.apache.org/download)
+
+ * Use [wget](https://www.gnu.org/software/wget):
+
+ ```shell
+ wget https://archive.apache.org/dist/pulsar/pulsar-2.8.0/apache-pulsar-2.8.0-bin.tar.gz
+ ```
+
+2. Download and untar the Pulsar offloaders package.
+
+ ```bash
+ wget https://downloads.apache.org/pulsar/pulsar-2.8.0/apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ tar xvfz apache-pulsar-offloaders-2.8.0-bin.tar.gz
+ ```
+
+3. Copy the Pulsar offloaders as `offloaders` in the Pulsar directory.
+
+ ```
+ mv apache-pulsar-offloaders-2.8.0/offloaders apache-pulsar-2.8.0/offloaders
+
+ ls offloaders
+ ```
+
+ **Output**
+
+ As shown from the output, Pulsar uses [Apache jclouds](https://jclouds.apache.org) to support [AWS S3](https://aws.amazon.com/s3/), [GCS](https://cloud.google.com/storage/), [Azure](https://portal.azure.com/#home), and [Aliyun OSS](https://www.aliyun.com/product/oss) for long-term storage.
+
+
+ ```
+ tiered-storage-file-system-2.8.0.nar
+ tiered-storage-jcloud-2.8.0.nar
+ ```
+
+ > #### Note
+ >
+ > * If you are running Pulsar in a bare-metal cluster, make sure that `offloaders` tarball is unzipped in every broker's Pulsar directory.
+ >
+ > * If you are running Pulsar in Docker or deploying Pulsar using a Docker image (such as K8s and DCOS), you can use the `apachepulsar/pulsar-all` image instead of the `apachepulsar/pulsar` image. `apachepulsar/pulsar-all` image has already bundled tiered storage offloaders.
+
+## Configuration
+
+> #### Note
+>
+> Before offloading data from BookKeeper to Aliyun OSS, you need to configure some properties of the Aliyun OSS offload driver.
+
+Besides, you can also configure the Aliyun OSS offloader to run it automatically or trigger it manually.
+
+### Configure Aliyun OSS offloader driver
+
+You can configure the Aliyun OSS offloader driver in the configuration file `broker.conf` or `standalone.conf`.
+
+- **Required** configurations are as below.
+
+ Required configuration | Description | Example value
+ |---|---|---
+ `managedLedgerOffloadDriver` | Offloader driver name, which is case-insensitive. | aliyun-oss
+ `offloadersDirectory` | Offloader directory | offloaders
+ `managedLedgerOffloadBucket` | Bucket | pulsar-topic-offload
+ `managedLedgerOffloadServiceEndpoint` | Endpoint | http://oss-cn-hongkong.aliyuncs.com
+
+- **Optional** configurations are as below.
+
+ Optional | Description | Example value
+ |---|---|---
+ `managedLedgerOffloadReadBufferSizeInBytes`|Size of block read|1 MB
+ `managedLedgerOffloadMaxBlockSizeInBytes`|Size of block write|64 MB
+ `managedLedgerMinLedgerRolloverTimeMinutes`|Minimum time between ledger rollover for a topic<br><br>**Note**: it is not recommended that you set this configuration in the production environment.|2
+ `managedLedgerMaxEntriesPerLedger`|Maximum number of entries to append to a ledger before triggering a rollover.<br><br>**Note**: it is not recommended that you set this configuration in the production environment.|5000
+
+#### Bucket (required)
+
+A bucket is a basic container that holds your data. Everything you store in Aliyun OSS must be contained in a bucket. You can use a bucket to organize your data and control access to your data, but unlike directory and folder, you cannot nest a bucket.
+
+##### Example
+
+This example names the bucket as _pulsar-topic-offload_.
+
+```conf
+managedLedgerOffloadBucket=pulsar-topic-offload
+```
+
+#### Endpoint (required)
+
+The endpoint is the region where a bucket is located.
+
+> #### Tip
+>
+> For more information about Aliyun OSS regions and endpoints, see [here](https://help.aliyun.com/document_detail/31837.html).
Review comment:
ok
--
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
[GitHub] [pulsar] yufan022 commented on pull request #9696: [docs] Add documents for Aliyun OSS offload
Posted by GitBox <gi...@apache.org>.
yufan022 commented on pull request #9696:
URL: https://github.com/apache/pulsar/pull/9696#issuecomment-816651331
@Anonymitaet @Jennifer88huang @Huanli-Meng PTAL.
Apologize again for my delay.
--
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
[GitHub] [pulsar] yufan022 commented on pull request #9696: [docs] Add documents for Aliyun OSS offload
Posted by GitBox <gi...@apache.org>.
yufan022 commented on pull request #9696:
URL: https://github.com/apache/pulsar/pull/9696#issuecomment-816648712
> @yufan022 Thank you very much for your contribution.
> I notice that there are some comments that haven't dealt with. Will you incorporate those comments later or will you allow us to edit directly in this md file? Which method do you prefer?
Both are fine, You can edit it directly.
--
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
[GitHub] [pulsar] Anonymitaet commented on pull request #9696: [docs] Add documents for Aliyun OSS offload
Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on pull request #9696:
URL: https://github.com/apache/pulsar/pull/9696#issuecomment-796562333
@yufan022 any progress?
----------------------------------------------------------------
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
[GitHub] [pulsar] Anonymitaet merged pull request #9696: [docs] Add documents for Aliyun OSS offload
Posted by GitBox <gi...@apache.org>.
Anonymitaet merged pull request #9696:
URL: https://github.com/apache/pulsar/pull/9696
--
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
[GitHub] [pulsar] yufan022 commented on pull request #9696: [docs] Add documents for Aliyun OSS offload
Posted by GitBox <gi...@apache.org>.
yufan022 commented on pull request #9696:
URL: https://github.com/apache/pulsar/pull/9696#issuecomment-816568155
> @yufan022 could you please check the comments and update the doc if necessary? Thanks
Sorry for the late, I will finish the work.
--
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
[GitHub] [pulsar] yufan022 commented on pull request #9696: [docs] Add documents for Aliyun OSS offload
Posted by GitBox <gi...@apache.org>.
yufan022 commented on pull request #9696:
URL: https://github.com/apache/pulsar/pull/9696#issuecomment-788883092
> @yufan022 will this apply to 2.7.1?
No, 2.8.0 or later
----------------------------------------------------------------
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