Gyu-Ho Lee
ae589018cb
embed: provide more details on TLS handshake failure
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-12-01 09:40:23 -08:00
Gyu-Ho Lee
cffa130253
embed: error on zero heartbeat-interval, election-timeout
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-11-28 09:53:32 -08:00
Gyu-Ho Lee
0e4e8ed3d1
embed: corrupt-check on restart member
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-11-22 21:20:19 -08:00
Gyu-Ho Lee
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
Gyu-Ho Lee
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
Gyu-Ho Lee
cbe8c7eda7
Merge pull request #8880 from gyuho/v3beta-endpoint
...
*: replace grpc-gateway endpoint with /v3beta
2017-11-16 09:42:19 -08:00
Gyu-Ho Lee
fe7b094f63
Revert "embed: fix HTTPs + DNS SRV discovery"
...
This reverts commit f79d5aaca475f6d36985856f2fba5b2ed3df7249.
2017-11-15 13:00:21 -08:00
Gyu-Ho Lee
c706c6e238
embed: mutate /v3alpha requests with /v3beta for backward compatibilities
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-11-15 02:14:04 -08:00
Gyu-Ho Lee
5fd419ff50
embed: replace v3alpha serve path with v3beta
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-11-15 01:55:49 -08:00
Gyu-Ho Lee
75110dd839
*: fix naked returns
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-11-10 18:46:15 -08:00
Gyu-Ho Lee
cdc71ae38e
embed: NewConfig sets LogOutput to "default"
...
Otherwise, embedded etcd will panic in SetupLogging
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-11-02 14:41:32 -07:00
Gyu-Ho Lee
6127f785a4
embed: disable grpc server logging by default
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-11-02 13:19:49 -07:00
Gyu-Ho Lee
4b1e09f2b4
embed: move SetupLogging, LogOutput from etcdmain
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-11-02 13:19:44 -07:00
Xiang Li
b766a26059
Merge pull request #8257 from yudai/websocket_streams
...
embed: support websocket for bi-directional streams
2017-10-06 21:33:55 -07:00
Iwasaki Yudai
37eabd770e
embed: support websocket for bi-directional streams
2017-10-05 16:08:18 -07:00
Xiang
f79d5aaca4
embed: fix HTTPs + DNS SRV discovery
2017-10-05 15:21:45 -07:00
fanmin shi
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
fanmin shi
0e1993f131
etcdmain: check for empty AutoCompactionRetention
2017-09-28 17:31:09 -07:00
fanmin shi
733de98cfb
*: modify etcd flags to support finner compaction retention
2017-09-28 17:22:44 -07:00
Gyu-Ho Lee
157c8eccf0
embed: define keepalive server options
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-09-28 11:19:29 -07:00
Gyu-Ho Lee
f65aee0759
*: replace 'golang.org/x/net/context' with 'context'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-09-07 13:39:42 -07:00
Anthony Romano
5d669290e3
embed: support experimental v2v3 proxy option
2017-08-31 11:47:41 -07:00
Anthony Romano
35c5dcefc2
*: cockroachdb/cmux -> soheilhy/cmux
...
Has fixes not in fork. Includes SetReadTimeout.
2017-08-22 09:59:59 -07:00
Anthony Romano
1f734e0299
embed: support experimental-corrupt-check-time flag
2017-08-22 09:59:59 -07:00
Anthony Romano
153ba92830
embed: serve basic v3 grpc over peer port
2017-08-22 09:59:59 -07:00
Anthony Romano
f4183c68cc
embed: associate peer serve() listener with corresponding peer
...
Fixes #8383
2017-08-17 10:25:00 -07:00
Gyu-Ho Lee
e24de6c9ac
embed: add 'enable-pprof' tag for config file
...
Fix https://github.com/coreos/etcd/issues/8402 .
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-08-15 11:22:10 -07:00
Gyu-Ho Lee
fe344ef302
embed: warns about empty hosts in advertise urls
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-08-10 12:31:58 -07:00
Gyu-Ho Lee
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
Anthony Romano
d5a0d4d696
etcdmain, embed: --auto-peer-tls and --auto-tls for v2 proxy
...
Fixes #7930
2017-07-21 11:00:22 -07:00
Gyu-Ho Lee
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
Gyu-Ho Lee
9bb5ede659
embed: configure 'ListenMetricsUrls'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-07-14 11:14:05 -07:00
Anthony Romano
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
Anthony Romano
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
Xiang Li
0fe8fdcb29
Merge pull request #8123 from yudai/revision_compactor
...
Compactor: Add Revisional compactor
2017-06-22 16:34:28 -07:00
Iwasaki Yudai
a3f8f47422
*: add Revision compactor
2017-06-21 15:41:07 -07:00
Anthony Romano
87d16af2e2
embed: use transport TLS listener for client listener for CRLs
2017-06-19 15:23:41 -07:00
Anthony Romano
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
fanmin shi
2f84f3d8d8
Merge pull request #7968 from fanminshi/make_maxRequestBytes_configurable
...
etcd: make max request bytes configurable
2017-05-25 15:54:24 -07:00
Anthony Romano
212a1efd47
Merge pull request #7965 from heyitsanthony/shared-grpc-conn
...
embed: share grpc connection for grpc json services
2017-05-25 14:35:33 -07:00
fanmin shi
9e7740011b
etcdserver: add --max-request-bytes flag
2017-05-25 11:01:38 -07:00
fanmin shi
ae7ddfb483
etcdserver: add --max-txn-ops flag
...
--max-txn-ops allows users to define the maximum transaction operations
for each txn request. it defaults at 128.
Fixes #7826
2017-05-24 10:32:32 -07:00
Anthony Romano
db7ab961bf
embed: share grpc connection for grpc json services
2017-05-22 12:59:13 -07:00
Anthony Romano
aac2292ab5
Merge pull request #7882 from heyitsanthony/srv-priority
...
gateway: DNS SRV priority
2017-05-08 14:17:04 -07:00
Gyu-Ho Lee
7d21d6c894
embed: gracefully close peer handlers on shutdown
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-05-06 07:47:23 -07:00
Anthony Romano
07ad18178d
pkg/srv: package for SRV utilities
...
Trying to decouple the v2 client from SRV code. Can't move
into discovery/ since that creates a circular dependency. So,
give up and move all the SRV code into a new package.
2017-05-05 09:27:59 -07:00
Gyu-Ho Lee
b0e9d24fb6
embed: fix blocking Close before gRPC server start
...
If 'StartEtcd' returns before starting gRPC server
(e.g. mismatch snapshot, misconfiguration),
receiving from grpcServerC blocks forever. This patch
just closes the channel to not block on grpcServerC,
and proceeds to next stop operations in Close.
This was masking the issues in https://github.com/coreos/etcd/issues/7834
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-05-01 16:41:13 -07:00
Anthony Romano
393e4335b7
*: put gateway stubs into their own packages
...
Fixes #7773
2017-04-19 13:09:06 -07:00
Gyu-Ho Lee
ba299bcaaf
embed: signal 'grpcServerC' before cmux serve
...
CMux.Serve blocks, so grpcServerC was never closed.
Fix https://github.com/coreos/etcdlabs/issues/216 .
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-18 17:49:50 -07:00
Gyu-Ho Lee
f10a70401b
embed: use '*url.URL.Hostname(),Port()' for Go 1.8
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-18 12:08:59 -07:00