Hi Rishabh,

You can read the IdealState by HelixAdmin getResourceIdealState() function
and change the number of partitions in the IdealState. Once you are done
with it, you can set it back by setResourceIdealState() function in
HelixAdmin.

BTW, the number of partition changes does not work for Custom mode and SEMI
auto.

Best,

Junkai

On Mon, Jan 31, 2022 at 5:23 AM Rishabh Goyal <[email protected]> wrote:

> Hi All,
>
> I am new to Apache helix. My use case requires me to dynamically change
> partition count of a resource (count can be increased/decreased depending
> upon the requirement).
>
> I am not able to figure out how to do this through the HelixAdmin
> interface except for deletion and subsequent addition of the same resource.
> However that would lead to removal of all active subscriptions which is not
> something I can afford to do.
>
> Is there any way to change the setting dynamically for a resource ?
>
> Regards,
> Rishabh
>


-- 
Junkai Xue

Reply via email to