Jingyi Hu
ae0f433761
etcdserver: add grpc interceptor to log info on incoming request to
...
etcdserver.
To improve debuggability of etcd v3. Added a grpc interceptor to log
info on incoming requests to etcd server. The log output includes remote
client info, request content (with value field redacted), request
handling latency, response size, etc.
Dependency on zap logger and grpc_middleware is removed during
backporting.
Added checking in logging interceptor. If debug level is disabled, skip
logUnaryRequestStats() to avoid potential performance degradation. (PR #10021 )
2018-08-17 17:06:13 -07:00
Joe Betz
5a3cbe4cf7
version: bump up to 3.2.24+git
2018-07-24 10:29:31 -07:00
Joe Betz
420a452267
version: bump up to 3.2.24
v3.2.24
2018-07-24 10:24:31 -07:00
Gyuho Lee
348edfeae6
etcdserver: add "etcd_server_go_version" metric
...
Currently, one has to look at server logs manually,
to see what Go version was used to build etcd server.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-07-23 16:38:52 -07:00
Gyuho Lee
0d5497a107
clientv3: fix keepalive send interval when response queue is full
...
client should update next keepalive send time
even when lease keepalive response queue becomes full.
Otherwise, client sends keepalive request every 500ms
regardless of TTL when the send is only expected to happen
with the interval of TTL / 3 at minimum.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-07-23 08:50:44 -07:00
Gyuho Lee
87418c3432
Merge pull request #9942 from wenjiaswe/automated-cherry-pick-of-#9761-upstream-release-3.2
...
Automated cherry pick of #9761
2018-07-20 14:26:13 -07:00
Wenjia
8c9fd1b5e6
remove hashRevDurations
2018-07-20 13:48:35 -07:00
Wenjia
a3c0a99067
remove hashRevDurations
2018-07-20 13:45:33 -07:00
Wenjia
b3ab14ca9a
remove HashByRev
2018-07-20 13:44:15 -07:00
Gyuho Lee
8798c5cd43
etcdserver: rename to "heartbeat_send_failures_total"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-07-20 09:58:32 -07:00
Gyuho Lee
4e08898571
mvcc: add "etcd_mvcc_hash_(rev)_duration_seconds"
...
etcd_mvcc_hash_duration_seconds
etcd_mvcc_hash_rev_duration_seconds
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-07-20 09:57:47 -07:00
Gyuho Lee
8ac6c888cd
mvcc/backend: fix defrag duration scale
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-07-20 09:52:46 -07:00
Gyuho Lee
aca5c8f4b6
mvcc/backend: add "etcd_disk_backend_defrag_duration_seconds"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-07-20 09:52:46 -07:00
Gyuho Lee
3535f7a61f
mvcc/backend: document metrics ExponentialBuckets
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-07-20 09:44:15 -07:00
Gyuho Lee
fae9b6f667
mvcc/backend: clean up mutex, logging
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-07-20 09:44:15 -07:00
Gyuho Lee
66d8194e4d
etcdserver: add "etcd_server_slow_apply_total"
...
{"level":"warn","ts":1527101858.6985068,"caller":"etcdserver/util.go:115","msg":"apply request took too long","took":0.114101529,"expected-duration":0.1,"prefix":"","request":"header:<ID:1029181977902852337> put:<key:\"\\000\\000...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-07-20 09:42:52 -07:00
Gyuho Lee
2f0e3fd2df
etcdserver: add "etcd_server_heartbeat_failures_total"
...
{"level":"warn","ts":1527101858.4149103,"caller":"etcdserver/raft.go:370","msg":"failed to send out heartbeat; took too long, server is overloaded likely from slow disk","heartbeat-interval":0.1,"expected-duration":0.2,"exceeded-duration":0.025771662}
{"level":"warn","ts":1527101858.4149644,"caller":"etcdserver/raft.go:370","msg":"failed to send out heartbeat; took too long, server is overloaded likely from slow disk","heartbeat-interval":0.1,"expected-duration":0.2,"exceeded-duration":0.034015766}
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-07-20 09:37:04 -07:00
Gyuho Lee
cad3cf7b11
mvcc/backend: avoid unnecessary metrics update
...
https://github.com/coreos/etcd/pull/9300
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-07-03 14:52:16 -07:00
Gyuho Lee
bedba66c69
mvcc: add "etcd_mvcc_db_total_size_in_use_in_bytes"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-07-03 14:32:56 -07:00
Gyuho Lee
9bc1e15386
mvcc: add "etcd_mvcc_db_total_size_in_bytes"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-07-03 14:24:56 -07:00
Gyuho Lee
6e0131e83b
etcdserver: add "etcd_server_quota_backend_bytes"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-07-03 13:27:15 -07:00
Gyuho Lee
c0e9e14248
etcdserver: add "etcd_server_slow_read_indexes_total"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-07-03 12:59:53 -07:00
Gyuho Lee
b763b506ab
etcdserver: clarify read index warnings
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-07-03 12:54:42 -07:00
Gyuho Lee
d22ee8423d
Merge pull request #9894 from xmudrii/3.2-grpcproxy-tls
...
etcdmain: backport support for different certs for etcd-gRPC proxy
2018-07-02 10:57:39 -07:00
Gyu-Ho Lee
e5531a4d54
etcdmain/grpc-proxy: add 'metrics-addr' option
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2018-07-02 12:06:25 +02:00
Anthony Romano
8dabfe12ca
etcdmain: cleanup grpcproxy; support different certs for proxy/etcd
...
Enables TLS termination in grpcproxy.
2018-07-02 11:20:14 +02:00
Gyuho Lee
360484a3f0
tests: update test scripts
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-18 14:14:15 -07:00
Joe Betz
f8af50a8d8
version: bump up to 3.2.23+git
2018-06-15 09:45:59 -07:00
Joe Betz
c9504f61fc
version: bump up to 3.2.23
v3.2.23
2018-06-15 09:40:41 -07:00
Jordan Liggitt
75c159baa8
clientv3: backoff on reestablishing watches when Unavailable errors are encountered
2018-06-14 10:52:52 -07:00
Gyuho Lee
41ece2cf2d
e2e: do not test cipher suite in release-3.2
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-13 16:04:21 -07:00
Gyuho Lee
5e6adfac06
Merge pull request #9845 from wenjiaswe/automated-cherry-pick-of-#8960-upstream-release-3.2
...
Automated cherry pick of #8960
2018-06-13 16:02:48 -07:00
Joe Betz
b163084a5f
metrics: Add server_version metric
2018-06-13 15:03:10 -07:00
Gyuho Lee
ad7db2bb1e
tests/semaphore.test.bash: update
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-13 14:41:17 -07:00
Gyuho Lee
b5dc2266a6
Makefile: update
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-13 14:40:42 -07:00
Gyuho Lee
ba233791e1
Merge pull request #9821 from jpbetz/automated-cherry-pick-of-#9288-origin-release-3.2
...
Automated cherry pick of detailed "took too long" warnings to release-3.2
2018-06-12 12:51:18 -07:00
Joe Betz
0ce2ef14a1
etcdserver: Fix txn request 'took too long' warnings to use loggable request stringer
2018-06-12 12:31:38 -07:00
Joe Betz
4db8b94cca
etcdserver: Add response byte size and range response count to took too long warning
2018-06-11 16:23:31 -07:00
Joe Betz
734e4cf8e6
etcdserver: Replace value contents with value_size in request took too long warning
2018-06-11 15:58:03 -07:00
Hitoshi Mitake
dcf30b1c54
etcdserver: not print password in the warning message of expensive request
...
Fix https://github.com/coreos/etcd/issues/9635
2018-06-11 15:50:55 -07:00
Joe Betz
065053d859
etcdserver: Fix to backport of #9288 for pre-RequestV2 code
2018-06-07 11:02:00 -07:00
Xiang
1935a663df
etcdserver: improve request took too long warning
2018-06-07 10:29:29 -07:00
Joe Betz
2c7eb87c85
version: bump up to 3.2.22+git
2018-06-06 10:48:55 -07:00
Gyuho Lee
1674e682fe
version: 3.2.22
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
v3.2.22
2018-06-05 19:53:43 -07:00
Gyuho Lee
7c47afd7d2
e2e: test client-side cipher suites with curl
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-05 19:53:43 -07:00
Gyuho Lee
3e0cc1e717
etcdmain: add "--cipher-suites" flag
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-05 19:53:43 -07:00
Gyuho Lee
6fa95eb497
embed: support custom cipher suites
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-05 19:53:43 -07:00
Gyuho Lee
ba4a7e004b
integration: test client-side TLS cipher suites
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-05 19:53:43 -07:00
Gyuho Lee
4bd81d0933
pkg/transport: add "TLSInfo.CipherSuites" field
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-05 19:53:43 -07:00
Gyuho Lee
f690f3a425
pkg/tlsutil: add "GetCipherSuite"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-05 19:53:40 -07:00