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

Support "rebalancer_mode" and "rebalancer" options on web UI level #2194

Closed
RunsFor opened this issue Feb 29, 2024 · 2 comments · Fixed by #2204
Closed

Support "rebalancer_mode" and "rebalancer" options on web UI level #2194

RunsFor opened this issue Feb 29, 2024 · 2 comments · Fixed by #2204
Assignees

Comments

@RunsFor
Copy link
Contributor

RunsFor commented Feb 29, 2024

There is new functionality in the latest vshard versions - options, which controls the rebalancer behaviour.

In the #2186 it's been supported on backend level. Now it would be great to reflect these changes in the web UI.

I.e. it would be great to be able to:

  • see/set rebalancer_mode option globally. It can be one of 3 options - off, manual or auto
  • see/set rebalancer option for each replicaset/storage
@yngvar-antonsson
Copy link
Collaborator

I think we should alsp show rebalancer_enabled field on the main cluster page

@yngvar-antonsson
Copy link
Collaborator

  1. rebalancer_mode on the same level as failover
    Graphql request should be the same as the "change replicaset weight request"
  2. rebalancer (true, false, null) on edit replicaset page and somewhere on edit server page, which we don't have.
mutation($replicasets: [EditReplicasetInput]) {
  cluster {
    edit_topology(replicasets: $replicasets) {
      replicasets {
        uuid
        rebalancer
      }
    }
  }
}

----

replicasets = {{
    uuid = replicaset_uuid,
    rebalancer = true,
}}
mutation($servers: [EditServerInput]) {
  cluster {
    edit_topology(servers: $servers){
      servers {
        uuid
        rebalancer
      }
    }
  }
}
---
 servers = {
    {uuid = uuid, rebalancer = true},
}
  1. On the main page, near the instance nave we should see a pictogram of rebalancer enabled.
{
   servers {
     uri
     boxinfo {
       vshard_storage {
       rebalancer_enabled
     }
   }
 }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants