File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
datacenter/ucp/2.1/guides/admin/monitor-and-troubleshoot Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -88,18 +88,21 @@ The examples below assume you are logged in with ssh into a UCP manager node.
88
88
### Check the status of the database
89
89
90
90
``` bash
91
+ {% raw %}
91
92
# NODE_ADDRESS will be the IP address of this Docker Swarm manager node
92
93
NODE_ADDRESS=$( docker info --format ' {{.Swarm.NodeAddr}}' )
93
94
# VERSION will be your most recent version of the docker/ucp-auth image
94
95
VERSION=$( docker image ls --format ' {{.Tag}}' docker/ucp-auth | head -n 1)
95
96
# This command will output detailed status of all servers and database tables
96
97
# in the RethinkDB cluster.
97
98
docker run --rm -v ucp-auth-store-certs:/tls docker/ucp-auth:${VERSION} --db-addr=${NODE_ADDRESS} :12383 db-status
99
+ {% endraw %}
98
100
```
99
101
100
102
### Manually reconfigure database replication
101
103
102
104
``` bash
105
+ {% raw %}
103
106
# NODE_ADDRESS will be the IP address of this Docker Swarm manager node
104
107
NODE_ADDRESS=$( docker info --format ' {{.Swarm.NodeAddr}}' )
105
108
# NUM_MANAGERS will be the current number of manager nodes in the cluster
@@ -109,6 +112,7 @@ VERSION=$(docker image ls --format '{{.Tag}}' docker/ucp-auth | head -n 1)
109
112
# This reconfigure-db command will repair the RethinkDB cluster to have a
110
113
# number of replicas equal to the number of manager nodes in the cluster.
111
114
docker run --rm -v ucp-auth-store-certs:/tls docker/ucp-auth:${VERSION} --db-addr=${NODE_ADDRESS} :12383 --debug reconfigure-db --num-replicas ${NUM_MANAGERS} --emergency-repair
115
+ {% endraw %}
112
116
```
113
117
114
118
## Where to go next
You can’t perform that action at this time.
0 commit comments