You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/internal-protocol-versioning.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,9 @@ Goal: We want to be able to upgrade an individual peer in an etcd cluster to a n
4
4
The process will take the form of individual followers upgrading to the latest version until the entire cluster is on the new version.
5
5
6
6
Immediate need: etcd is moving too fast to version the internal API right now.
7
-
But, we need to keep mixed version clusters from being started by a rollowing upgrade process (e.g. the CoreOS developer alpha).
7
+
But, we need to keep mixed version clusters from being started by a rolling upgrade process (e.g. the CoreOS developer alpha).
8
8
9
-
Longer term need: Having a mixed version cluster where all peers are not be running the exact same version of etcd itself but are able to speak one version of the internal protocol.
9
+
Longer term need: Having a mixed version cluster where all peers are not running the exact same version of etcd itself but are able to speak one version of the internal protocol.
10
10
11
11
Solution: The internal protocol needs to be versioned just as the client protocol is.
12
12
Initially during the 0.\*.\* series of etcd releases we won't allow mixed versions at all.
@@ -164,7 +164,7 @@ Note the two new fields in response:
164
164
165
165
2. The `ttl` is the time to live for the key, in seconds.
166
166
167
-
_NOTE_: Keys can only be expired by a cluster leader so if a node gets disconnected from the cluster, its keys will not expire until it rejoins.
167
+
_NOTE_: Keys can only be expired by a cluster leader so if a machine gets disconnected from the cluster, its keys will not expire until it rejoins.
168
168
169
169
Now you can try to get the key by sending a `GET` request:
170
170
@@ -219,9 +219,9 @@ The watch command returns immediately with the same response as previous.
219
219
220
220
### Atomic Compare-and-Swap (CAS)
221
221
222
-
Etcd can be used as a centralized coordination service in a cluster and `CompareAndSwap` is the most basic operation to build distributed lock service.
222
+
Etcd can be used as a centralized coordination service in a cluster and `CompareAndSwap` is the most basic operation to build distributed lock service.
223
223
224
-
This command will set the value of a key only if the client-provided conditions are equal to the current conditions.
224
+
This command will set the value of a key only if the client-provided conditions are equal to the current conditions.
This will try to compare the previous value of the key and the previous value we provided. If they are equal, the value of the key will change to three.
@@ -378,12 +390,12 @@ For testing you can use the certificates in the `fixtures/ca` directory.
*`-f` - forces a new node configuration, even if an existing configuration is found. (WARNING: data loss!)
398
+
*`-f` - forces a new machine configuration, even if an existing configuration is found. (WARNING: data loss!)
387
399
*`-cert-file` and `-key-file` specify the location of the cert and key files to be used for for transport layer security between the client and server.
388
400
389
401
You can now test the configuration using HTTPS:
@@ -413,7 +425,7 @@ We can also do authentication using CA certs.
413
425
The clients will provide their cert to the server and the server will check whether the cert is signed by the CA and decide whether to serve the request.
@@ -463,29 +475,29 @@ We use Raft as the underlying distributed protocol which provides consistency an
463
475
464
476
Let start by creating 3 new etcd instances.
465
477
466
-
We use `-peer-addr` to specify server port and `-addr` to specify client port and `-data-dir` to specify the directory to store the log and info of the node in the cluster:
478
+
We use `-peer-addr` to specify server port and `-addr` to specify client port and `-data-dir` to specify the directory to store the log and info of the machine in the cluster:
**Note:** If you want to run etcd on an external IP address and still have access locally, you'll need to add `-bind-addr 0.0.0.0` so that it will listen on both external and localhost addresses.
473
485
A similar argument `-peer-bind-addr` is used to setup the listening address for the server port.
474
486
475
-
Let's join two more nodes to this cluster using the `-peers` argument:
487
+
Let's join two more machines to this cluster using the `-peers` argument:
0 commit comments