Cluster
GET
/_api/cluster/status
Get cluster node status and peers.
Response
200 OK
application/json
{
"node_id": "node_1",
"status": "cluster",
"peers": [ ... ],
"stats": { ... }
}
GET
/_api/cluster/info
Get general cluster information.
Response
200 OK
application/json
{
"node_id": "node_1",
"is_cluster_mode": true,
"cluster_config": { ... }
}
POST
/_api/cluster/remove-node
Remove a node from the cluster.
Request Body Options
| Field | Type | Description | Required |
|---|---|---|---|
| node_address | string | Address of the node to remove (e.g. "localhost:6775"). | Yes |
Response
200 OK
application/json
{
"success": true,
"message": "Node removed...",
"removed_node": "localhost:6775",
"remaining_nodes": [ ... ]
}
POST
/_api/cluster/rebalance
Trigger manual cluster rebalancing.
GET
/_api/cluster/status/ws
WebSocket endpoint for live cluster status updates.
GET
/_api/monitoring/ws
WebSocket endpoint for real-time server monitoring. Streams system metrics including CPU, memory, disk usage, and request statistics.
Requires authentication. Connect with a valid JWT token.
ESC