Skip to content

Commit 852cced

Browse files
author
Jesse Seldess
committed
stop cluster
1 parent 5bbe760 commit 852cced

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

manual-deployment.md

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ For more information, see [Configure Replication Zones](configure-replication-zo
6060
Start the built-in SQL client from any machine with the `cockroach` binary. This could be one of the node machines or a different machine.
6161

6262
~~~ shell
63-
$ cockroach sql --insecure --url=postgresql://root@<node-hostname>:26257/?sslmode=disable
63+
$ cockroach sql --url=postgresql://root@<node-hostname>:26257/?sslmode=disable
6464
# Welcome to the cockroach SQL interface.
6565
# All statements must be terminated by a semicolon.
6666
# To exit: CTRL + D.
@@ -95,7 +95,7 @@ CockroachDB supports the PostgreSQL wire protocol, so you can use any available
9595

9696
For a list of recommended drivers that we've tested, see [Install Client Drivers](install-client-drivers.html). For some basic code samples, see [Build a Test App](build-a-test-app.html).
9797

98-
### 7. Monitor your cluster
98+
### 7. Monitor the cluster
9999

100100
The CockroachDB Admin UI lets you monitor cluster-wide, node-level, and database-level metrics and events. To start up the Admin UI, point your browser to the URL in the `admin` field listed in the standard output of any node on startup, for example:
101101

@@ -110,6 +110,18 @@ store[0]: path=cockroach-data
110110

111111
<img src="images/admin_ui.png" alt="CockroachDB Admin UI" style="border:1px solid #eee;max-width:100%" />
112112

113+
### 8. Stop the cluster
114+
115+
You can stop the nodes (and therefore the cluster) from any machine with the `cockroach` binary as follows:
116+
117+
~~~ shell
118+
$ cockroach quit --host=node1.example.com
119+
$ cockroach quit --host=node2.example.com
120+
$ cockroach quit --host=node3.example.com
121+
~~~
122+
123+
For more details about the `cockroach quit` command, see [Stop a Node](stop-a-node.html).
124+
113125
## Deploy a Secure Cluster
114126

115127
### 1. Create security certificates
@@ -166,7 +178,7 @@ For more information, see [Configure Replication Zones](configure-replication-zo
166178

167179
### 6. Use the built-in SQL client
168180

169-
You can run the built-in SQL client from any machine with the `cockroach` binary, CA cert, client certificate, and client key. Make sure the machine you want to use has these files and then start the client:
181+
You can run the built-in SQL client from any machine with the `cockroach` binary, the CA cert, and a client certificate and key. Make sure the machine you want to use has these files and then start the client:
170182

171183
~~~ shell
172184
$ cockroach sql --url="postgresql://root@<node1-hostname>:26257/?sslcert=root.cert&sslkey=root.key&sslmode=verify-full&sslrootcert=ca.cert"
@@ -204,7 +216,7 @@ CockroachDB supports the PostgreSQL wire protocol, so you can use any available
204216

205217
For a list of recommended drivers that we've tested, see [Install Client Drivers](install-client-drivers.html). For some basic code samples, see [Build a Test App](build-a-test-app.html).
206218

207-
### 8. Monitor your cluster
219+
### 8. Monitor the cluster
208220

209221
The CockroachDB Admin UI lets you monitor cluster-wide, node-level, and database-level metrics and events. To access the Admin UI, from the address specified by the `--http-addr` flag in steps 2 and 3, point a browser to the URL in the `admin` field listed in the standard output on startup, for example:
210222

@@ -221,6 +233,18 @@ store[0]: path=cockroach-data
221233

222234
{{site.data.alerts.callout_info}}In cases where you set <code>--http-addr</code> to <code>localhost</code> and need to access the Admin UI from a separate machine, you can use SSH to tunnel from the machine to a node.{{site.data.alerts.end}}
223235

236+
### 9. Stop the cluster
237+
238+
You can stop the nodes (and therefore the cluster) from any machine with the `cockroach` binary, the CA cert, and a client certificate and key. Make sure the machine you want to use has these files and then stop the nodes:
239+
240+
~~~ shell
241+
$ cockroach quit --host=<node1-hostname> --ca-cert=ca.cert --cert=root.cert --key=root.key
242+
$ cockroach quit --host=<node2-hostname> --ca-cert=ca.cert --cert=root.cert --key=root.key
243+
$ cockroach quit --host=<node3-hostname> --ca-cert=ca.cert --cert=root.cert --key=root.key
244+
~~~
245+
246+
For more details about the `cockroach quit` command, see [Stop a Node](stop-a-node.html).
247+
224248
## See Also
225249

226250
- [Cloud Deployment](cloud-deployment.html)

0 commit comments

Comments
 (0)