GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing raw.githubusercontent.com — raw.githubusercontent.com

# Offloading to tiered storage A scenario's `offload` section makes the brokers offload the topics' ledgers to tiered storage, so that a run measures reads from it: subscriptions that fall behind read their backlog from the tiered storage once the brokers have offloaded it and deleted it from BookKeeper. The storage is [SeaweedFS](https://github.com/seaweedfs/seaweedfs), an S3-compatible object store, which the launcher runs in a container on the cluster's network, and the brokers use Pulsar's S3 offloader. [`iot-telemetry-offload.yaml`](../scenarios/iot-telemetry-offload.yaml) is the scenario that does it. ## The offload section ```yaml offload: image: chrislusf/seaweedfs:4.47 # the SeaweedFS image, the default namespace: public/default # the namespace whose offload policies the launcher sets, the default thresholdBytes: 0 # how many bytes of a topic stay in BookKeeper, 0 by default thresholdSeconds: 0 # optional: the offload threshold in seconds, unset by default deletionLagMillis: 0 # how long an offloaded ledger stays in BookKeeper, 0 by default logRequests: false # log every request to the storage, false by default # seeks: # optional: seeks to random publish times after the workloads, see Random seeks ``` With it, the launcher: - starts SeaweedFS's single-process server (`weed mini`) with the bucket `pulsar` before the cluster, as `offload-storage` on the cluster's network, and stops it after the cluster; - gives the brokers the S3 offloader's settings: `managedLedgerOffloadDriver=aws-s3`, the bucket, the endpoint `http://offload-storage:8333` and the credentials of the storage's one identity, with which SeaweedFS verifies the offloader's signed uploads. A setting in `cluster.brokers.env` overrides them; - sets the namespace's offload policies once the cluster has started: the offload threshold, which with 0 offloads a ledger as soon as it rolls over, the threshold in seconds when the section sets it, and the deletion lag, which with 0 deletes the ledger from BookKeeper once it is offloaded. With the brokers' default `managedLedgerDataReadPriority`, `tiered-storage-first`, reads go to the tiered storage as soon as a ledger has been offloaded, whatever the lag; the lag decides where they go only with `bookkeeper-first`; - records the topics' ledgers, and how many of them the brokers have offloaded, in `offload-status.csv`, when the late applications join and at the run's end, which the report's Offloading section sums; - saves the storage's log into the run directory as `offload-storage.log.txt`. With `logRequests: true`, SeaweedFS logs every request at its log level 4: an access line for each request, such as `"performance" GET "/pulsar/
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.