5828efda38
*: use "zap.Field"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-05-02 13:26:39 -07:00
154d7ca4f2
embed: use structured logging in peer handler
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-05-02 12:53:46 -07:00
26b0c84d29
embed: support structured logging in "v2http"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-05-02 11:57:23 -07:00
c316e6773b
embed: clean up structured logging calls
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-26 14:36:22 -07:00
d33a74d380
embed: add "loggerCore" field for Raft logger
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-25 10:16:51 -07:00
4f45f5d9dd
Merge pull request #9591 from gyuho/election
...
*: add --initial-election-tick-advance to configure election fast-forward on bootstrap
2018-04-23 10:17:49 -07:00
c76c696ed7
embed: sync logger on server close
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-20 10:54:37 -07:00
bffc532f9f
embed: add "InitialElectionTickAdvance"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-19 17:45:23 -07:00
b0112086d6
Merge pull request #9354 from hexfusion/u_sock
...
embed: explicitly define unix proto
2018-04-19 08:16:38 -07:00
a47c18ff5b
embed: clean up initial server start logs
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-17 14:24:08 -07:00
c712e08a42
embed,etcdmain: support structured logger
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-16 17:36:00 -07:00
041b9069a2
*: configure server logger
...
- Add/Document "logger" to support structured logging.
- This makes functional tests run easier, since zap logger
provides built-in log redirect to files.
- "etcd --logger-option=zap" to enable structured logging.
- Current "capnslog" will still be used as "default".
- We may switch the default or deprecate "capnslog" in v3.5.
- Either way, will clearly be documented.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-16 17:36:00 -07:00
2e4f856389
embed: explicitly define unix network
2018-04-15 16:30:44 -04:00
a066b03c2c
embed: clean up CORS, HostWhitelist logging
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-03-27 06:25:44 -07:00
9ea8be0c2b
embed: support "CORS" handler in v3 HTTP requests
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-03-27 06:25:44 -07:00
df6cd22d59
embed: update "CorsInfo" field to "map[string]struct{}"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-03-27 06:25:44 -07:00
cfd8b3e86d
embed: move "unsafe" flags to bottom
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-03-23 19:44:24 -07:00
a66e657cac
*: update "pre-vote" flag
...
Disabled by default, anyway.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-03-19 07:18:57 -07:00
3092d3bf7f
embed: add "ExperimentalPreVote" for Raft
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-03-06 09:56:19 -08:00
9f0027dfb2
*: do not whitelist empty hosts
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-02-28 19:20:10 -08:00
8edaecadc4
embed: enforce client origin policy
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-02-28 18:27:22 -08:00
83d1c3d5ec
embed: fix revision-based compaction with default value
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-02-20 17:21:07 -08:00
a535c01050
embed: enable extensive metrics if specified
2018-01-06 20:40:30 +01:00
9e11ef3ad5
etcdserver,embed: discard gRPC info logs when debug is off
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-02 09:29:07 -08:00
552b58dcfb
embed: only gracefully shutdown insecure grpc.Server
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2017-12-07 20:36:31 -08:00
e39915feec
embed: Avoid panic when shutting down gRPC Server
...
Avoid panic when stopping gRPC Server if TLS configuration is present.
Provided solution (attempts to) implement suggestion from gRPC team: https://github.com/grpc/grpc-go/issues/1384#issuecomment-317124531 .
Fixes #8916
2017-12-07 20:36:31 -08:00
0e4e8ed3d1
embed: corrupt-check on restart member
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-11-22 21:20:19 -08:00
3db5ad8d57
embed,etcdmain: add "--experimental-initial-corrupt-check"
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-11-22 15:27:14 -08:00
75ababa61f
embed: split peer/client/metrics serve methods
...
Priliminary commit to start client server later.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-11-20 15:23:15 -08:00
75110dd839
*: fix naked returns
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-11-10 18:46:15 -08:00
bcef78c665
Merge pull request #8563 from fanminshi/make_auto_compaction_granular
...
*: support auto-compaction with finer granularity
2017-09-29 11:18:51 -07:00
0e1993f131
etcdmain: check for empty AutoCompactionRetention
2017-09-28 17:31:09 -07:00
733de98cfb
*: modify etcd flags to support finner compaction retention
2017-09-28 17:22:44 -07:00
157c8eccf0
embed: define keepalive server options
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-09-28 11:19:29 -07:00
5d669290e3
embed: support experimental v2v3 proxy option
2017-08-31 11:47:41 -07:00
35c5dcefc2
*: cockroachdb/cmux -> soheilhy/cmux
...
Has fixes not in fork. Includes SetReadTimeout.
2017-08-22 09:59:59 -07:00
1f734e0299
embed: support experimental-corrupt-check-time flag
2017-08-22 09:59:59 -07:00
153ba92830
embed: serve basic v3 grpc over peer port
2017-08-22 09:59:59 -07:00
f4183c68cc
embed: associate peer serve() listener with corresponding peer
...
Fixes #8383
2017-08-17 10:25:00 -07:00
74c8050adc
*: use etcdhttp.Handle* for health, prometheus handlers
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-07-26 06:23:55 -07:00
d5a0d4d696
etcdmain, embed: --auto-peer-tls and --auto-tls for v2 proxy
...
Fixes #7930
2017-07-21 11:00:22 -07:00
334554f655
embed: wait up to request timeout for pending RPCs when closing
...
Both grpc.Server.Stop and grpc.Server.GracefulStop close the listeners
first, to stop accepting the new connections. GracefulStop blocks until
all clients close their open transports(connections). Unary RPCs
only take a few seconds to finish. Stream RPCs, like watch, might never
close the connections from client side, thus making gRPC server wait
forever.
This patch still calls GracefulStop, but waits up to 10s before manually
closing the open transports.
Address https://github.com/coreos/etcd/issues/8224 .
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-07-14 15:31:40 -07:00
9bb5ede659
embed: configure 'ListenMetricsUrls'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-07-14 11:14:05 -07:00
e29db923bc
*: move v2http handlers without /v2 prefix to etcdhttp
...
Lets --enable-v2=false configurations provide /metrics, /health, etc.
Fixes #8167
2017-07-07 18:35:57 -07:00
63350f5ac1
embed: connect json gateway with user-provided listen address
...
net.Listener says its address is [::] when given 0.0.0.0, breaking
hosts that have ipv6 disabled.
Fixes #8151
Fixes #7961
2017-07-06 14:24:29 -07:00
0fe8fdcb29
Merge pull request #8123 from yudai/revision_compactor
...
Compactor: Add Revisional compactor
2017-06-22 16:34:28 -07:00
a3f8f47422
*: add Revision compactor
2017-06-21 15:41:07 -07:00
87d16af2e2
embed: use transport TLS listener for client listener for CRLs
2017-06-19 15:23:41 -07:00
dcf52bbfac
etcdserver, embed, integration: don't use pointer for ServerConfig
...
ServerConfig is owned by etdcserver and unshared, so don't pass or store by
pointer. Also removes duplicated field 'snapCount'.
2017-06-15 13:02:13 -07:00
9e7740011b
etcdserver: add --max-request-bytes flag
2017-05-25 11:01:38 -07:00