1
0
mirror of synced 2026-01-07 18:01:41 -05:00
Files
docs/content/admin/enterprise-management/evacuating-a-cluster-node.md
Jason Etcovitch caaee7a124 Update all files to use {% data %} (#15253)
* Add back changes from prior to purge

* Manually fix some invalid Liquid

* Updoot render-content

* Improve test messages to show correct output

* Run el scripto

* Pass the remaining test
2020-09-29 16:01:04 -04:00

54 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Evacuating a cluster node
intro: You can evacuate data services on a cluster node.
redirect_from:
- /enterprise/admin/clustering/evacuating-a-cluster-node
- /enterprise/admin/enterprise-management/evacuating-a-cluster-node
versions:
enterprise-server: '*'
---
If you only have three nodes in your data services cluster, you can't evacuate the nodes, because `ghe-spokes` doesnt have another place to make a copy. If you have four or more, `ghe-spokes` will move all the repositories off of the evacuated node.
If you're taking a node offline that has any data services (like git, pages, or storage) evacuate each node before taking the node offline.
1. Find the `uuid` of the node in with the `ghe-config`command.
```
$ ghe-config cluster._hostname_.uuid
```
2. You'll need to monitor the status of your node while the data is being copied. Ideally, the node shouldn't be taken offline until the copying is complete. To monitor the status of your node, run any of the following commands:
For Git
```
ghe-spokes evac-status
```
For {% data variables.product.prodname_pages %}
```
echo "select count(*) from pages_replicas where host = 'pages-server-<uuid>'" | ghe-dbconsole -y
```
For storage
```
ghe-storage evacuation-status
```
3. After the copying is complete, you can evacuate the storage service. Run any of the following commands:
For Git
```
ghe-spokes server evacuate git-server-<uuid>
```
For {% data variables.product.prodname_pages %}
```
ghe-dpages evacuate pages-server-<uuid>
```
For storage, take the node offline
```
ghe-storage offline storage-server-<uuid>
```
then evacuate
```
ghe-storage evacuate storage-server-<uuid>
```