0

My use case is to disable the auto reallocation by Helix to a new node temporarily.

I tried using the

ZKHelixAdmin.enableResource()

API. I see a change in the ideal state[

{ "HELIX_ENABLED" : "false",...}

] in the Exhibitor but the same resource is getting reallocated to a live instance.

What is the functionality of enableResource() API?The API doc doesn't have much info.

user170008
  • 1,046
  • 6
  • 17
  • 31

1 Answers1

1

The balancer checks if the resource is enabled and only if its enabled it will allocate it to another live instance.

In my case, I was using a custom re balancer[was using the USER_DEFINED rebalancer algorithm] and had to add this check explicitly in my custom re balancer.

Works like a charm.

user170008
  • 1,046
  • 6
  • 17
  • 31