Updated on 2023-06-21 GMT+08:00

Changing Partition Quantity

Initialize a DIS SDK client instance as instructed in Initializing a DIS SDK Client Instance.

Configure the following parameters:

1
2
streamname = "" #Name of the running stream.
target_partition_count = "3"  #Number of the target partitions.

After configuring the parameters, run the changepartitionQuantity_sample.py file to call changepartitionQuantity_test. The following is an example response:

1
2
3
4
5
{ 
 "stream_name":"stream_name_test", 
 "current_partition_count":2 
 "target_partition_count":5 
 }