Jonathan Boulle
1197c1f965
etcdserver: move peer URLs check to config
2014-11-12 13:12:49 -08:00
Jonathan Boulle
3f358b6d5d
etcdserver: ensure initial-advertise-peer-urls match initial-cluster
...
This adds a check to setupCluster to ensure that the list of URLs
specified in `initial-advertise-peer-urls` matches those configured in
`initial-cluster` for this node. Also updates the documentation to
clarify this and address some changes in wording.
2014-11-12 12:54:35 -08:00
Xiang Li
b6f0c789b8
transport: create a tls listener only if the tlsInfo is not empty and the scheme is HTTPS
2014-11-11 11:51:57 -08:00
Jonathan Boulle
e1e454f138
etcdmain: do not exit inappropriately
2014-11-10 12:34:14 -08:00
Jonathan Boulle
8799679083
etcdmain: actually return errors
2014-11-10 11:59:59 -08:00
Jonathan Boulle
a607e097c6
etcdserver: re-order ServerConfig fields
2014-11-07 11:45:59 -08:00
Xiang Li
0a9c6164af
etcdserver: add support for force cluster
2014-11-07 08:49:01 -08:00
Jonathan Boulle
376268391b
Merge pull request #1646 from jonboulle/1536_disco_proxy
...
discovery: add command line flag for discovery-proxy
2014-11-07 08:32:23 -08:00
Jonathan Boulle
8f1885a398
discovery: add command line flag for discovery-proxy
2014-11-06 16:35:24 -08:00
Jonathan Boulle
321d65c4ac
pkg: fix SetFlagsFromEnv behaviour
...
This function was fundamentally buggy, as a panic could be trivially
triggered by setting the wrong environment variable (e.g.
ETCD_BIND_ADDR=foo). Instead, let's propagate the error and present it
to the user in a cleaner way.
2014-11-06 14:39:30 -08:00
Jonathan Boulle
04f6208ace
etcdmain: use StringsFlag for initialclusterstate
2014-11-06 11:13:24 -08:00
Jonathan Boulle
68bca981de
discovery: simplify interface
...
There's no real need to expose a Discoverer interface/struct when the
only use of the interface (and indeed the module) is to invoke a single
function. This isn't Java, after all. So instead, simplify to Discovery
exposing just two functions: JoinCluster (i.e. what was formerly called
"discovery"), and GetCluster (hitherto "ProxyDiscovery")
2014-11-05 22:45:01 -08:00
Jonathan Boulle
b85496922f
etcdmain: simplify proxy start logic
2014-11-05 11:41:03 -08:00
Jonathan Boulle
5de9d38cc6
pkg: move to more generic StringsFlag
2014-11-04 16:52:56 -08:00
Xiang Li
71acd0c3d0
discovery: consolidate proxyDiscover and Discover interface
2014-11-04 16:38:05 -08:00
Xiang Li
5cb13fd071
*: support discovery fallback
2014-11-04 14:30:22 -08:00
Yicheng Qin
e4b12a8e28
Merge pull request #1593 from unihorn/200
...
etcdserver: print out initial cluster members
2014-11-03 22:23:40 -08:00
Yicheng Qin
5ed5d44652
etcdserver: print out initial cluster members
...
It is moved from etcdmain pkg because the line should only be printed out
when etcd bootstraps at the first time.
2014-11-03 19:34:24 -08:00
Xiang Li
075ab6415f
Merge pull request #1587 from xiangli-cmu/fix_wal
...
wal: sync before returning from create
2014-11-03 15:58:47 -08:00
Xiang Li
dd09042632
etcdserver: try to listen on ports before initializing etcd server
2014-11-03 15:55:58 -08:00
Kelsey Hightower
3ec4da6ac6
etcd: print initial cluster members during startup
...
etcd now prints the initial clusters members during startup.
```
2014/11/03 10:32:46 etcd: initial cluster members: etcd0=http://127.0.0.1:2380,etcd1=http://127.0.0.1:2390,etcd2=http://127.0.0.1:2400
```
2014-11-03 10:38:18 -08:00
Xiang Li
3dfb6723b2
*: rename initial-cluster-name to initial-cluster-token
2014-10-30 13:43:38 -07:00
Jonathan Boulle
cf9dd31daa
etcd: move main logic to etcdmain subpackage
2014-10-29 18:43:22 -07:00