Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
Signed-off-by: Renkai <[email protected]>
  • Loading branch information
Renkai committed Dec 2, 2020
1 parent 9840476 commit 6a071f7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions site2/docs/cookbooks-tiered-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,16 @@ $ bin/pulsar-admin namespaces set-offload-threshold --size 10M my-tenant/my-name

> Automatic offload 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, offload will not until the current segment is full.
## Configuring read priority for offloaded messages

By default, once messages were offloaded to long term storage, brokers will read them from long term storage, but messages still exists in bookkeeper for a period depends on the administrator's configuration. For
messages exists in both bookkeeper and long term storage, if they are preferred to read from bookkeeper, you can use command to change this configuration.

```bash
# default value for -orp is offloaded-first
$ bin/pulsar-admin namespaces set-offload-policies my-tenant/my-namespace -orp bookkeeper-first
$ bin/pulsar-admin topics set-offload-policies my-tenant/my-namespace/topic1 -orp bookkeeper-first
```

## Triggering offload manually

Expand Down

0 comments on commit 6a071f7

Please sign in to comment.