Gyu-Ho Lee
b44b91462e
etcdmain: add more details to TLS HandshakeFailure
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-12-01 09:50:57 -08:00
Gyu-Ho Lee
ea5f6dab6b
etcdmain: trigger embed.Etcd.Close for OS interrupt
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-17 14:07:16 -07:00
Anthony Romano
cad1215b18
*: deny incoming peer certs with wrong IP SAN
2017-04-12 13:41:33 -07:00
Gyu-Ho Lee
17e2e762b1
etcdmain: handle StopNotify when ErrStopped aborted publish
...
Fix https://github.com/coreos/etcd/issues/7512 .
If a server starts and aborts due to config error,
it is possible to get stuck in ReadyNotify waits.
This adds select case to get notified on stop channel.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-03-21 10:22:39 -07:00
Anthony Romano
2f1542c06d
*: use filepath.Join for files
2017-03-16 07:46:06 -07:00
Gyu-Ho Lee
01dd60c0f7
etcdmain: SdNotify when gateway, grpc-proxy are ready
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-03-09 10:10:21 -08:00
Gyu-Ho Lee
4aa68e0231
etcdmain: log machine default host after update check
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-03-03 14:25:39 -08:00
Anthony Romano
298d58841e
etcdmain: enable grpc tracing with --debug
2017-02-27 11:18:13 -08:00
Manjunath A Kumatagi
9767098331
etcdmain: ppc64le platform support
2017-01-26 21:08:07 -08:00
Xiang Li
e63059ec31
Merge pull request #7030 from crandles/grpc-histograms
...
etcdmain: add '--metrics' option
2016-12-28 12:03:53 -08:00
crandl201
36b2d3f5eb
etcdmain: add --metrics flag for exposing histogram metrics
...
this adds a new flag, --metrics, that can be used to enable extensive (histogram) metrics.
Fixes #7024
2016-12-28 13:04:52 -05:00
Gyu-Ho Lee
e58287f026
embed: only override default advertised client URL if the client listen URL is 0.0.0.0
2016-12-16 18:31:04 -08:00
Dongsu Park
5e351956b9
vendor: bump go-systemd to v14 to avoid build error
...
Bump go-systemd to v14 (48702e0d, 2016-11-14).
Also adjust caller of daemon.SdNotify() to avoid build error, which can
be seen especially when running "go get github.com/coreos/etcd".
2016-12-01 13:26:46 +01:00
Gyu-Ho Lee
6ffd7e3ed1
etcdmain: configurable 'etcd' binary log-output
...
Fix https://github.com/coreos/etcd/issues/5449 .
2016-11-03 14:18:12 -07:00
Xiang Li
9e9bbb829e
Merge pull request #6289 from purpleidea/feat/move-readynotify
...
embed: Move the ReadyNotify() call to a more sane place
2016-08-29 20:06:17 -07:00
James Shubin
9aee3f01cd
embed: Move the ReadyNotify() call to a better place
...
When using the embed functionality, you can't call the Server.Stop()
function until StartEtcd returns, which can block until there is a call
to Server.Stop() in error situations. Since we have a catch-22, the
ReadyNotify() can be called manually by the user if they wish to wait
for the server startup, or in parallel with a timeout if they wish to
cancel it after some time.
Chzz pointed out that this is also more consistent with the
etcdserver.Start() behaviour too.
purpleidea pointed out that this is actually more correct too, because
we can now register the stop interrupt handler before we block on
startup.
2016-08-29 22:45:41 -04:00
Anthony Romano
2cc245e8bf
etcdmain: report default advertise detection / fallback
2016-08-15 14:08:09 -07:00
sharat
2b5a5c77cf
etcdserver: Error handling for invalid empty raft cluster
...
TODO implemented for GetClusterFromRemotePeers should not return nil
error with an invalid empty cluster
#6137
2016-08-10 19:23:19 +05:30
Anthony Romano
d6b22323a8
etcdmain: disable grpc tracing by default
2016-07-25 14:23:36 -07:00
Dongsu Park
624187d25f
etcdmain: correctly check return values from SdNotify()
...
SdNotify() now returns 2 values, sent and err. So startEtcdOrProxyV2()
needs to check the 2 return values correctly. As the 2 values are
independent of each other, error checking needs to be slightly updated
too.
SdNotifyNoSocket, which was previously provided by go-systemd, does not
exist any more. In that case (false, nil) will be returned instead.
2016-07-21 09:19:07 +02:00
Anthony Romano
f4f33ea767
etcdmain, embed: export Config and StartEtcd into embed/
...
Lets programs embed etcd.
Fixes #5430
2016-07-13 10:40:03 -07:00
davygeek
8c96d2573f
*: fixed some warning
2016-06-30 23:13:46 +08:00
Xiang Li
755d192ff7
*: make it clear that proxy only supports v2 api now
2016-06-23 12:06:42 -07:00
Gyu-Ho Lee
ef44f71da9
*: update LICENSE header
2016-05-12 20:51:48 -07:00
Xiang Li
aaefd52afa
Merge pull request #5092 from xiang90/etcdlet
...
*: gateway initial commit
2016-05-11 10:36:02 -07:00
Xiang Li
a300be92dc
*: initial support for gatway
...
etcd gatway is a simple l4 gateway that forwards tcp connections to
the given endpoints.
2016-05-11 09:44:50 -07:00
Anthony Romano
8c4958dd60
etcdmain: notify systemd when etcd is ready to accept requests
...
Fixes #5151
2016-05-10 13:36:46 -07:00
Ajit Yagaty
8bc5ab9f8d
etcd: Configuration file for etcd server.
...
Added a new command line option to etcd server to read in a YAML
based configuration file. I've also added an example configuration
file with comments and a set of test cases.
2016-05-09 18:17:27 -07:00
Xiang Li
973ad5aa7c
*: support auto tls on client side
2016-05-02 16:17:49 -07:00
Xiang Li
66d2ae7a39
proxy: move http related thing to httpproxy
2016-04-13 21:09:26 -07:00
Gyu-Ho Lee
9108af9046
*: clean up from go vet, misspell
2016-04-10 23:16:56 -07:00
Anthony Romano
c4caa65c51
etcdmain: start on unsupported arch when ETCD_UNSUPPORTED_ARCH is set
2016-04-10 19:36:04 -07:00
Gyu-Ho Lee
6e6d64fb9b
*: clean up unused vars, functions
...
With help from https://github.com/dominikh/go-unused .
IsNetTimeoutError seems useful, so moved to pkg/netutil.
2016-04-06 21:33:55 -07:00
Xiang Li
2c50eb240e
*: mv etcdhttp into api pkg
2016-04-04 16:31:35 -07:00
Anthony Romano
9b2c963179
etcdserver: configurable backend size quota
...
Configurable with the flag --experimental-quota-backend-bytes and
through ServerConfig.QuotaBackendBytes.
Fixes #4894
2016-03-29 18:39:25 -07:00
Xiang Li
6285455f85
etcdmain: warn on contradictory TLS settings
2016-03-24 10:21:47 -07:00
Xiang Li
5ee3729738
etcdmain: etcd should fail to start when https is enabled but tls config is not given
2016-03-24 09:57:25 -07:00
Xiang Li
70a9391378
*: enable v3 by default
2016-03-23 17:01:36 -07:00
Xiang Li
900a61b023
*: http and https on the same port
2016-03-23 10:28:38 -07:00
Anthony Romano
bd832e5b0a
*: migrate Godeps to vendor/
2016-03-22 17:10:28 -07:00
Gyu-Ho Lee
2364d71ea2
etcdmain: fix shadowed variables
2016-03-21 21:55:06 -07:00
Xiang Li
d3809abe42
*: gRPC + HTTP on the same port
...
We use cmux to do this since we want to do http+https on the same
port in the near future too.
2016-03-21 14:29:25 -07:00
Anthony Romano
e9b2bd751d
etcdmain: add --peer-auto-tls option
...
Lets the peer generate its own (unsigned) certs.
2016-03-21 11:38:23 -07:00
Anthony Romano
5f304b4dee
*: build phony etcd server binary for unsupported architectures
...
We don't qualify etcdserver for anything other than amd64, so don't
build binaries that are untested and might be unreliable.
2016-03-08 13:12:11 -08:00
Xiang Li
d265fe000c
*: support time based auto compaction.
...
Fix https://github.com/coreos/etcd/issues/3906 .
We will have extensive doc to talk about what is compaction
and what is auto compaction soon.
2016-02-25 16:02:03 -08:00
Anthony Romano
20461ab11a
*: fix many typos
2016-01-31 21:42:39 -08:00
Anthony Romano
4634874d99
etcdmain, integration, v3rpc: consolidate grpc server setup
2016-01-29 16:38:11 -08:00
Anthony Romano
563850bcc1
etcdmain: support v3 tls
2016-01-29 16:38:11 -08:00
Xiang Li
36cc8446c7
*: finish member api implementation
2016-01-26 18:09:14 -08:00
Anthony Romano
2e157530a0
etcdhttp, lease, v3api: forward keepalives to leader
...
keepalives don't go through raft so let follower peers announce
keepalives to the leader through the peer http handler
2016-01-22 12:40:40 -08:00