Anthony Romano
8c3c1b4a9c
*: use filepath.Join for files
2017-03-23 09:53:56 -07:00
Jonathan Sokolowski
72f37ff79a
embed: Clear default initial cluster
...
NewConfig() should sets initial cluster from name but we should clear it
in the event that another discovery option has been specified.
Fixes #7516
2017-03-18 07:56:18 -07:00
Gyu-Ho Lee
059dc91d4c
embed: use machine default host only for default value, 0.0.0.0
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-03-06 14:55:24 -08:00
felixoid
d96d3aa0ed
netutil: add dualstack to linux_route
...
in v3.1.0 netutil couldn't get default interface for ipv6only hosts
Fixes #7219
2017-02-22 10:45:19 -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
Anthony Romano
cc931a2319
embed: deep copy user handlers
...
Shallow copy of user handlers leads to a nil map assignment when
enabling pprof. Since the map is being modified, it should probably
be deep copied into the server context, which fixes the crash.
2016-12-14 10:17:32 -08:00
Anthony Romano
2c06def8ca
etcdserver, embed, v2http: move pprof setup to embed
...
Seems like a better place for prof setup since it's not specific to v2.
2016-12-09 12:37:35 -08:00
James Shubin
745cd730a7
embed: Make immutable defaults constant
...
This changes the two immutable defaults into constants which allows
packages embedding etcd to import them as const! If they are variables,
then you'll fail with "const initializer foo is not a constant".
2016-11-11 07:34:45 -05:00
Gyu-Ho Lee
b8017004ba
embed: add 'Config' method
2016-09-29 07:10:59 -07:00
Anthony Romano
c7212b438d
embed: warn on domain name in listener
2016-09-13 09:17:40 -07:00
Anthony Romano
fa2e9c2449
Revert "Merge pull request #6365 from heyitsanthony/fix-dns-bind"
...
This reverts commit af5ab7b3515cf023af7af94bc6e9063945802be0, reversing
changes made to da6a0f0594f352539349013336614e08033a7eb3.
2016-09-12 19:45:35 -07:00
Anthony Romano
2752169d6a
embed: reject binding listeners to domain names
...
Fixes #6336
2016-09-06 15:33:28 -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
e8594b60b1
embed: use default route IP for default advertise URL
...
Fixes #2858
2016-08-15 11:12:26 -07:00
Anthony Romano
6de993b468
embed: load config defaults before loading config from file
2016-08-10 09:44:50 -07:00
Anthony Romano
9063ce5e3f
etcdserver, embed: stricter reconfig checking
...
Make --strict-reconfig-check a default and check if cluster is healthy when
adding a member.
2016-08-05 16:59:25 -07:00
Anthony Romano
d1809830bb
embed: use ServerName on TLS DNS discovery without CA file
2016-08-03 22:28:03 -07:00
Xiang Li
e2088b8073
Merge pull request #6063 from siddontang/siddontang/embed-handler
...
embed: support registering client handlers
2016-07-27 22:57:27 -07:00
siddontang
86de0797e1
embed: support registering user handlers
2016-07-28 13:39:06 +08:00
Anthony Romano
42fc36b4d6
embed: add listen urls to default config
...
Was only setting the advertise urls.
2016-07-25 11:06:03 -07:00
kayrus
fee9e2b183
embed: Fixed serve() err return
2016-07-21 18:06:08 +02:00
Gyu-Ho Lee
be001c44e8
embed: set 'ClientCertAuthEnabled'
2016-07-20 16:23:24 -07:00
Anthony Romano
e177f391f2
embed: support unix peers
2016-07-18 16:41:41 -07:00
Anthony Romano
4835322aa1
Merge pull request #5954 from heyitsanthony/fix-embed-cfg-validate
...
embed: fix nil dereference on error to set up initial cluster
2016-07-15 15:41:40 -07:00
Anthony Romano
34602b87ec
embed: fix nil dereference on error to set up initial cluster
2016-07-15 14:43:00 -07:00
Gyu-Ho Lee
b2b98399fb
embed: change import path to 'grpc-ecosystem'
2016-07-15 12:10:38 -07:00
Xiang Li
8368e6a992
embed: only get initial cluster setting if the member is not init
2016-07-13 16:03:27 -07: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