@@ -2470,6 +2470,35 @@ Options
2470
2470
| ` -w ` , ` --wait-complete ` | Wait for compaction to complete| false|
2471
2471
2472
2472
2473
+ ### ` set-offload-policies `
2474
+ Set the offload policy for a topic.
2475
+
2476
+ Usage
2477
+
2478
+ ``` bash
2479
+
2480
+ $ pulsar-admin topic set-offload-policies tenant/namespace/topic options
2481
+
2482
+ ```
2483
+
2484
+ Options
2485
+
2486
+ | Flag| Description| Default|
2487
+ | ----| ---| ---|
2488
+ | ` -d ` , ` --driver ` | Driver to use to offload old data to long term storage,(Possible values: S3, aws-s3, google-cloud-storage)||
2489
+ | ` -r ` , ` --region ` | The long term storage region||
2490
+ | ` -b ` , ` --bucket ` | Bucket to place offloaded ledger into||
2491
+ | ` -e ` , ` --endpoint ` | Alternative endpoint to connect to||
2492
+ | ` -i ` , ` --aws-id ` | AWS Credential Id to use when using driver S3 or aws-s3||
2493
+ | ` -s ` , ` --aws-secret ` | AWS Credential Secret to use when using driver S3 or aws-s3||
2494
+ | ` -ro ` , ` --s3-role ` | S3 Role used for STSAssumeRoleSessionCredentialsProvider using driver S3 or aws-s3||
2495
+ | ` -rsn ` , ` --s3-role-session-name ` | S3 role session name used for STSAssumeRoleSessionCredentialsProvider using driver S3 or aws-s3||
2496
+ | ` -m ` , ` --maxBlockSizeInBytes ` | Max block size| 64MB|
2497
+ | ` -rb ` , ` --readBufferSizeInBytes ` | Read buffer size| 1MB|
2498
+ | ` -t ` , ` --offloadThresholdInBytes ` | Offload after threshold size (eg: 1M, 5M)||
2499
+ | ` -dl ` , ` --offloadDeletionLagInMillis ` | Offload after elapsed in millis (or minutes, hours,days,weeks eg: 100m, 3h, 2d, 5w).||
2500
+
2501
+
2473
2502
### ` create-partitioned-topic `
2474
2503
Create a partitioned topic. A partitioned topic must be created before producers can publish to it.
2475
2504
0 commit comments