Why doesn't the master do this?  Why not just set it up so that you can tell
the master that the maximum number of regions for the soon-to-go region
server is 0?

On Thu, Jan 27, 2011 at 3:53 PM, Jean-Daniel Cryans <[email protected]>wrote:

> Writing this gives me an idea... I think one "easy" way we could
> achieve this region draining problem is by writing a jruby script
> that:
>
> 1- Retrieves the list of regions served by a RS
> 2- Disables master balancing
> 3- Moves one by one every region out of the RS, assigning them to the
> other RSs in a round-robin fashion
> 4- Shuts down the RS
> 5- Reenables master balancing
>
> I wonder if it would work... At least it's a process that you could
> stop at any time without breaking everything.
>

Reply via email to