tips:pulsar

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tips:pulsar [2019/09/23 08:48] – created scipiotips:pulsar [2019/09/23 15:44] (current) – [storage s3] scipio
Line 14: Line 14:
 mv apache-pulsar-offloaders-2.4.1/offloaders offloaders mv apache-pulsar-offloaders-2.4.1/offloaders offloaders
  
 +</code>
 +
 +===== storage s3 =====
 +
 +conf/broker.conf
 +<code>
 +...
 +managedLedgerOffloadDriver=S3
 +s3ManagedLedgerOffloadBucket=pulsar-topic-offload
 +s3ManagedLedgerOffloadRegion=
 +s3ManagedLedgerOffloadServiceEndpoint=http://127.0.0.1:9000
 +...
 +</code>
 +
 +
 +conf/pulsar_env.sh
 +<code>
 +export AWS_ACCESS_KEY_ID=ABC123456789
 +export AWS_SECRET_ACCESS_KEY=ded7db27a4558e2ea8bbf0bf37ae0e8521618f366c
 </code> </code>
  
Line 22: Line 41:
 </code> </code>
  
 +define a storage threshold in "public" tenant, default name space
 +<code>
 +bin/pulsar-admin namespaces set-offload-threshold  --size 0 public/default
 +</code>
 +
 +
 +===== test =====
 +
 +first shell
 +<code>
 +bin/pulsar-client consume my-topic -s "first-subscription"
 +</code>
 +
 +second shell
 +<code>
 +bin/pulsar-client produce my-topic --messages "hello-pulsar" -n 1000
 +</code>
  
  • tips/pulsar.1569221334.txt.gz
  • Last modified: 2019/09/23 08:48
  • by scipio