Brandon Philips
697883fb8c
etcdmain: let user provide a name w/o initial-cluster update
...
Currently this doesn't work if a user wants to try out a single machine
cluster but change the name for whatever reason. This is because the
name is always "default" and the
```
./bin/etcd -name 'baz'
```
This solves our problem on CoreOS where the default is `ETCD_NAME=%m`.
2015-03-21 11:13:42 -07:00
Xiang Li
0847986d4a
etcdmain: identify data dir type
2015-03-21 11:12:18 -07:00
Yicheng Qin
cff005777a
etcdserver: fix cluster fallback recovery
...
Cluster and transport may recover to old states when new node joins
the cluster. Record cluster last modified index to avoid this.
2015-02-20 14:30:00 -08:00
Xiang Li
c5ca1218f3
etcdserver: GetClusterFromPeers -> GetClusterFromRemotePeers
2015-02-13 19:05:29 -08:00
Fabian Reinartz
8bf795dc3c
etcdmain/osutil: shutdown gracefully, interrupt handling
...
The functionality in pkg/osutil ensures that all interrupt handlers finish
and the process kills itself with the proper signal.
Test for interrupt handling added.
The server shutsdown gracefully by stopping on interrupt (Issue #2277.)
2015-02-13 10:28:53 +01:00
Barak Michener
fade9b6065
etcdserver: Refactor 2.0.1 directory rename into a proper migration
...
fix all instances
fix detection test
2015-02-12 11:53:19 -05:00
Yicheng Qin
92b329fdb9
etcdmain: use symlink instead of link for v0.4 files
...
link doesn't support directory.
2015-02-03 10:59:43 -08:00
Yicheng Qin
afb14a3e7a
Merge pull request #2210 from yichengq/316
...
etcdmain: use /member subdir to save member data
2015-02-02 17:06:30 -08:00
Yicheng Qin
ce1d7a9fa9
etcdmain: use /member subdir to save member data
2015-02-02 17:01:19 -08:00
Xiang Li
fbabcedcc9
etcd: fix proxy
...
1. move proxy datadir to /proxy subdir.
2. delay update proxy's cluster after validation.
2015-02-02 14:58:45 -08:00
Xiang Li
ae9f54c132
etcd: fix proxy updating
2015-01-30 16:56:41 -08:00
Xiang Li
dc7374c488
etcd: persist proxy cluster to disk
2015-01-30 15:18:26 -08:00
Xiang Li
9c7f66c5d9
Merge pull request #2119 from sorah/peer-ca-on-fetching-members
...
etcdserver: User peerTLSInfo to get cluster member
2015-01-26 10:50:44 -08:00
Shota Fukumori (sora_h)
033e7d1db9
etcdserver: User peerTLSInfo to get cluster member
2015-01-27 03:43:21 +09:00
Jonathan Boulle
f1ed69e883
*: switch to line comments for copyright
...
Build tags are not compatible with block comments.
Also adds copyright header to a few places it was missing.
2015-01-26 09:53:30 -08:00
Xiang Li
276a4abac0
etcdserver: make heartbeat/election configurable
2015-01-15 11:11:33 -08:00
Yicheng Qin
dc6aef0d02
etcdhttp: add NewPeerHandler test
2015-01-12 15:56:29 -08:00
Xiang Li
a15f39e6a2
etcdmain: do not set timeout for client api
2015-01-06 16:17:56 -08:00
Xiang Li
7f1c630a0b
*: use keepalive listener to detect dead clients
2015-01-06 12:09:34 -08:00
Xiang Li
0afbca4090
etcdmain: add readtimeout for http server
2015-01-06 11:04:38 -08:00
Xiang Li
08e9c25ea5
*: move srv into pkg discovery
2014-12-24 21:37:20 -08:00
Xiang Li
0fa754d90e
etcdmain: add config.go
2014-12-19 18:33:19 -08:00
Barak Michener
4f2d35679e
Merge pull request #1947 from barakmich/dns_bootstrap
...
add capability to bootstrap from DNS SRV
2014-12-19 13:45:03 -08:00
Barak Michener
8fc17147ef
change logging
2014-12-19 16:40:29 -05:00
Barak Michener
6295dfba5a
resolve all hostnames in DNS discovery
2014-12-18 19:19:21 -05:00
Barak Michener
977c74069c
move constants out for windows
2014-12-18 18:57:11 -05:00
Barak Michener
2dfcf053d4
rename flag to discovery-srv
2014-12-18 18:13:40 -05:00
Barak Michener
7f733ad68b
Fully resolve DNS entries to IPs and ignore single errors (such as no etcd-server-ssl)
2014-12-18 18:08:56 -05:00
Barak Michener
fc70aa27d2
add apurl checking and logging
2014-12-17 20:53:12 -05:00
Barak Michener
04d9f848a7
fix from comments
2014-12-17 20:28:48 -05:00
Barak Michener
fdad6630ea
Add a simple test and mock for genDNS
2014-12-17 20:18:41 -05:00
Barak Michener
af4272848d
add capability to bootstrap from DNS
2014-12-15 19:26:42 -05:00
Xiang Li
ec777ebd28
Merge pull request #1918 from xiang90/http_no_logging
...
etcdmain: discard the http server logging
2014-12-11 16:06:58 -08:00
Xiang Li
3a83ab1b71
etcdmain: discard the http server logging
2014-12-11 16:06:28 -08:00
Xiang Li
d9b21c79d4
etcdmain: better logging for discovery error
2014-12-11 16:03:27 -08:00
Xiang Li
0416503124
Merge pull request #1803 from junxu/master
...
etcdmain: Fix misuse "-addr" flag
2014-12-11 09:45:17 -08:00
Xiang Li
a1f648e5db
etcdmain: format usage
2014-12-04 17:21:23 -08:00
Xiang Li
d3db010190
*: support purging old wal/snap files
2014-12-01 11:50:17 -08:00
junxu
43d6f9f964
Update etcd.go
...
etcdmain: Fix misuse "-addr" flag
In code, it uses "-advertise-client-urls" or "-addr" flags to get the list of this member's peer URLs,
It should be using "-peer-addr" flag instead of "-addr" flag.
2014-11-27 10:38:47 +08:00
Yicheng Qin
3e55834c38
*: set read/write timeout for raft transport and listener
2014-11-24 13:46:44 -08:00
Xiang Li
8bf71d796e
*: gracefully stop etcdserver
2014-11-14 14:12:24 -08:00
Xiang Li
92096dfdc3
*: print out configuration when necessary
2014-11-13 10:46:42 -08:00
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