Skip to content
代码片段 群组 项目
提交 65bfca02 编辑于 作者: Aakriti Gupta's avatar Aakriti Gupta 提交者: Achilleas Pipinellis
浏览文件

Geo: Document promotion-preflight-checks command

上级 5cbcc865
No related branches found
No related tags found
无相关合并请求
......@@ -122,7 +122,11 @@ Note the following when promoting a secondary:
roles ['geo_secondary_role']
```
1. Promote the **secondary** node to the **primary** node. Execute:
1. Promote the **secondary** node to the **primary** node.
Before promoting a secondary node to primary, preflight checks should be run. They can be run separately or along with the promotion script.
To promote the secondary node to primary along with preflight checks:
```shell
gitlab-ctl promote-to-primary-node
......@@ -134,6 +138,12 @@ Note the following when promoting a secondary:
gitlab-ctl promote-to-primary-node --skip-preflight-check
```
You can also run preflight checks separately:
```shell
gitlab-ctl promotion-preflight-checks
```
1. Verify you can connect to the newly promoted **primary** node using the URL used
previously for the **secondary** node.
1. If successful, the **secondary** node has now been promoted to the **primary** node.
......
......@@ -45,8 +45,13 @@ be found in `/var/opt/gitlab/gitlab-rails/shared/pages` if using Omnibus).
## Preflight checks
Follow these steps before scheduling a planned failover to ensure the process
will go smoothly.
Run this command to list out all preflight checks before scheduling a planned failover to ensure the process will go smoothly:
```shell
gitlab-ctl promotion-preflight-checks
```
Each step is described in more detail below.
### Object storage
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册