cluster_drain_node
Gracefully drain a cluster node for maintenance by disabling it in the clusterer and waiting for dialog backlog to clear, preventing call drops during node shutdown.
Instructions
Gracefully drain a cluster node ahead of maintenance.
Marks the node as disabled in the clusterer, then polls the local dialog count until it stops declining or the timeout fires. The caller is expected to stop the OpenSIPS process only after this tool confirms the dialog backlog is low.
This tool operates on the cluster metadata — it does NOT shut OpenSIPS down. Combine with your init-script / systemd unit to actually stop the service.
Parameters
cluster_id: Target cluster ID. node_id: Target node ID within the cluster. timeout_sec: Maximum time to wait for dialogs to drain. Clamped to 5..600. poll_interval_sec: Seconds between dialog-count samples. Clamped to 1..60.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cluster_id | Yes | ||
| node_id | Yes | ||
| timeout_sec | No | ||
| poll_interval_sec | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||