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: README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,6 +110,21 @@ Since the `get` and `watch` commands do not change state in the store, they do n
110
110
You may notice that in this example the index is `2` even though it is the first request you sent to the server.
111
111
This is because there are internal commands that also change the state like adding and syncing servers.
112
112
113
+
### Response Headers
114
+
115
+
etcd includes a few HTTP headers that provide global information about the etcd cluster that serviced a request:
116
+
117
+
```
118
+
X-Etcd-Index: 35
119
+
X-Raft-Index: 5398
120
+
X-Raft-Term: 0
121
+
```
122
+
123
+
-`X-Etcd-Index` is the current etcd index as explained above.
124
+
-`X-Raft-Index` is similar to the etcd index but is for the underlying raft protocol
125
+
-`X-Raft-Term` this number will increase when an etcd master election happens. If this number is increasing rapdily you may need to tune the election timeout. See the [tuning][tuning] section for details.
126
+
127
+
[tuning]: #tuning
113
128
114
129
### Get the value of a key
115
130
@@ -1117,6 +1132,9 @@ When creating the cert be sure to reference it in the `-extensions` flag:
0 commit comments