documentation: improve local_cluster.md
Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
This commit is contained in:
parent
7b77a00094
commit
fade580c65
@ -1,4 +1,4 @@
|
|||||||
# Set up local cluster
|
# Set up the local cluster
|
||||||
|
|
||||||
For testing and development deployments, the quickest and easiest way is to configure a local cluster. For a production deployment, refer to the [clustering][clustering] section.
|
For testing and development deployments, the quickest and easiest way is to configure a local cluster. For a production deployment, refer to the [clustering][clustering] section.
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ Use `etcdctl` to interact with the running cluster:
|
|||||||
OK
|
OK
|
||||||
```
|
```
|
||||||
|
|
||||||
If OK is printed, storing key-value pair is successful.
|
If OK is printed, storing the key-value pair is successful.
|
||||||
|
|
||||||
2. Retrieve the value of `foo`:
|
2. Retrieve the value of `foo`:
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ Use `etcdctl` to interact with the running cluster:
|
|||||||
```
|
```
|
||||||
$ etcdctl --write-out=table --endpoints=localhost:2379 member list
|
$ etcdctl --write-out=table --endpoints=localhost:2379 member list
|
||||||
```
|
```
|
||||||
The list of etcd members are displayed as follows:
|
The list of etcd members is displayed as follows:
|
||||||
|
|
||||||
```
|
```
|
||||||
+------------------+---------+--------+------------------------+------------------------+
|
+------------------+---------+--------+------------------------+------------------------+
|
||||||
@ -88,7 +88,7 @@ Use `etcdctl` to interact with the running cluster:
|
|||||||
OK
|
OK
|
||||||
```
|
```
|
||||||
|
|
||||||
If OK is printed, storing key-value pair is successful.
|
If OK is printed, storing the key-value pair is successful.
|
||||||
|
|
||||||
### Testing fault tolerance
|
### Testing fault tolerance
|
||||||
|
|
||||||
@ -144,7 +144,7 @@ To exercise etcd's fault tolerance, kill a member and attempt to retrieve the ke
|
|||||||
hello
|
hello
|
||||||
```
|
```
|
||||||
|
|
||||||
Restarting the member re-establish the connection. `etcdctl` will now be able to retrieve the key successfully. To learn more about interacting with etcd, read [interacting with etcd section][interacting].
|
Restarting the member re-establishs the connection. `etcdctl` will now be able to retrieve the key successfully. To learn more about interacting with etcd, read [interacting with etcd section][interacting].
|
||||||
|
|
||||||
[clustering]: https://etcd.io/docs/latest/op-guide/clustering/
|
[clustering]: https://etcd.io/docs/latest/op-guide/clustering/
|
||||||
[interacting]: https://etcd.io/docs/latest/dev-guide/interacting_v3/
|
[interacting]: https://etcd.io/docs/latest/dev-guide/interacting_v3/
|
||||||
|
Loading…
Reference in New Issue
Block a user