{question}
How do I take a cluster offline for host maintenance?
{question}
{answer}
For online maintenance (cluster is available during host maintenance), please see the guide 'Taking Leaves Offline without Cluster Downtime' in the SingleStore documentation. This guide is for trading off cluster downtime for a smaller maintenance window and less complex operation.
- For each database, run 'SNAPSHOT DATABASE <databasename>;' from the Master Aggregator.
- For each database run '_SYNC_SNAPSHOT <databasename>;' from the Master Aggregator.
- Run 'SET GLOBAL leaf_failure_detection=OFF;` from the Master Aggregator.
- Stop all SingleStore nodes.
- Perform your maintenance on all hosts.
- Start all SingleStore nodes.
- Once all nodes have started, run 'SET GLOBAL leaf_failure_detection=ON;' from the Master Aggregator.
{answer}