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 } |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot