Class ClusterController
Cluster status and operations.
GET /api/cluster — cluster overview (leader, nodes, epoch)
GET /api/cluster/nodes — list alive nodes
POST /api/cluster/rebalance — trigger manual rebalance
[Route("/api/cluster")]
public class ClusterController : RedbController
Inheritance
Inherited Members
Methods
Cordon(string)
Cordons a node: it keeps its current work but takes on no new work and drains its route locks
[HttpPost("/nodes/{nodeId}/cordon")]
[RequiresRole(new string[] { "admin" })]
public Task<object> Cordon(string nodeId)
GetClusterStatus()
[HttpGet("")]
public object GetClusterStatus()
ListNodes()
[HttpGet("/nodes")]
public Task<object> ListNodes()
Rebalance()
[HttpPost("/rebalance")]
[RequiresRole(new string[] { "admin" })]
public Task<object> Rebalance()
RemoveNode(string)
[HttpDelete("/nodes/{nodeId}")]
[RequiresRole(new string[] { "admin" })]
public Task<object> RemoveNode(string nodeId)
Uncordon(string)
Uncordons a node — it starts taking on work again. Admin-only, audited.
[HttpPost("/nodes/{nodeId}/uncordon")]
[RequiresRole(new string[] { "admin" })]
public Task<object> Uncordon(string nodeId)