Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage: allow to choose rebalancer location #431

Closed
wants to merge 1 commit into from

Commits on Aug 18, 2023

  1. storage: allow to choose rebalancer location

    Currently people struggle to find the rebalancer location because
    it is unclear where it is spawned automatically (on the master
    with minimal uuid).
    
    The patch allows to choose in the configuration where the
    rebalancer should work and whether it should work at all.
    
    Closes #278
    
    @TarantoolBot document
    Title: vshard: cfg to choose rebalancer mode and location
    
    There are 2 new config options:
    
    - Root option 'rebalancer_mode'. It can have one of the following
      values:
      - 'auto' - works like now. The rebalancer is selected as the
      master with the minimal UUID;
      - 'off' - rebalancer won't be active at all;
      - 'manual' - need to manually mark the node where the rebalancer
      should be spawned. The selection happens in the config.
    
      Default is 'auto'.
    
    - Instance option 'rebalancer'. It can be true or false. At most
      one instance in the config can have it set to true. If the
      rebalancer mode is 'manual' and none of the instances have this
      flag true, then the rebalancer won't be started anywhere. This
      option is ignored when the mode is not 'manual'. Default is
      false.
    Gerold103 committed Aug 18, 2023
    Configuration menu
    Copy the full SHA
    7af20eb View commit details
    Browse the repository at this point in the history