Xiang Li
88767d913d
raft: leader waits for the reply of previous message when follower is not in good path.
...
It is reasonable for the leader to wait for the reply before sending out the next
msgApp or msgSnap for the follower in bad path. Or the leader will send out useless
messages if the previous message is rejected or the previous message is a snapshot.
Especially for the snapshot case, the leader will be 100% to send out duplicate message
including the snapshot, which is a huge waste.
This commit implement a timeout based wait mechanism. The timeout for normal msgApp is a
heartbeatTimeout and the timeout for snapshot is electionTimeout(snapshot is larger). We
can implement a piggyback mechanism(application notifies the msg lost) in the future
if necessary.
2014-12-18 15:01:50 -08:00
Xiang Li
ce6f606766
doc: add backword_compatibility.md
2014-12-17 15:47:49 -08:00
Xiang Li
a000e97eea
Merge pull request #1956 from coreos/member-migration-example
...
doc: update node migration guide
2014-12-17 12:10:46 -08:00
Kelsey Hightower
2d76e5e273
doc: update node migration guide
2014-12-17 12:10:10 -08:00
Jonathan Boulle
f0b9ad3863
Merge pull request #1955 from coreos/doc-cleanup
...
docs: fix port in peer URLs
2014-12-17 11:01:27 -08:00
Kelsey Hightower
0a14927823
docs: fix port in peer URLs
2014-12-17 10:51:52 -08:00
Xiang Li
722247a752
Merge pull request #1948 from xiang90/stats
...
etcdserver: fix leader stats
2014-12-15 17:10:48 -08:00
Xiang Li
c27c288bef
etcdserver: update stats when become leader
2014-12-15 17:02:48 -08:00
Xiang Li
04522baeee
etcdserver: fix leader stats
2014-12-15 16:50:03 -08:00
Barak Michener
43bb6cf038
Merge pull request #1946 from barakmich/less_logging
...
Remove verbose logging and extraneous debug. Fixes #1904
2014-12-15 11:49:48 -08:00
Barak Michener
8ece28d4f7
Remove verbose logging and extraneous debug. Fixes #1904
2014-12-15 14:47:02 -05:00
Xiang Li
5369fb1c4f
Merge pull request #1945 from xiang90/raft_test
...
raft: use newRaft
2014-12-15 11:31:11 -08:00
Xiang Li
044e35b814
raft: use newRaft
2014-12-15 11:25:35 -08:00
Xiang Li
e9b06416de
Merge pull request #1942 from xiang90/doc
...
doc: specify listening addrs in the clustering example
2014-12-15 10:41:34 -08:00
Xiang Li
9dc5b5a7e8
Merge pull request #1943 from xiang90/fix_streamSrv
...
sender: set strmSrv to nil after stoping it
2014-12-14 20:13:23 -08:00
Xiang Li
e3dbfefbe0
sender: set strmSrv to nil after stoping it
2014-12-14 20:00:32 -08:00
Xiang Li
0ea8c0929e
Merge pull request #1927 from xiang90/flock
...
*: lock the in using files; do not purge locked the wal files
2014-12-14 19:39:58 -08:00
Xiang Li
502396edd5
wal: fix wal doc
2014-12-14 19:36:37 -08:00
Xiang Li
6b73a72d42
test: add fileutil to test
2014-12-14 19:34:54 -08:00
Xiang Li
53bf7e4b5e
wal: rename openAtIndex -> open; OpenAtIndexUntilUsing -> openNotInUse
2014-12-14 19:33:06 -08:00
Xiang Li
f538cba272
*: do not backup files still in use
2014-12-14 19:27:22 -08:00
Xiang Li
ea94d19147
*: lock the in using files; do not purge locked the wal files
2014-12-14 19:27:22 -08:00
Xiang Li
b90693ccae
doc: specify listening addrs in the clustering example
2014-12-14 19:21:54 -08:00
Yicheng Qin
dcf34c0ab4
Merge pull request #1938 from yichengq/262
...
etcdserver: protect the sender map in SendHub
2014-12-15 10:41:52 +08:00
Yicheng Qin
ceb077424d
etcdserver: protect the sender map in SendHub
2014-12-15 10:37:41 +08:00
Xiang Li
d07434f99e
Merge pull request #1939 from xiang90/sender_logging
...
rafthttp: better logging
2014-12-14 18:23:36 -08:00
Xiang Li
cb6983cbb1
Merge pull request #1940 from xiang90/raft_log
...
rafT: log term as %d
2014-12-14 10:06:59 -08:00
Xiang Li
c586d5012c
raft: log term as %d
2014-12-14 10:06:45 -08:00
Xiang Li
d86603840d
rafthttp: better logging
2014-12-14 09:50:59 -08:00
Xiang Li
e40a53b534
Merge pull request #1926 from jainvipin/master
...
minor fix for #1786
2014-12-13 16:26:59 -08:00
Vipin Jain
3f64c677e1
modify directory deletion sequence
2014-12-13 16:22:36 -08:00
Xiang Li
b8ab2b0b5c
Merge pull request #1936 from xiang90/fix_test
...
pkg/transport: change write size from 1MB -> 5MB
2014-12-13 11:38:51 -08:00
Xiang Li
3cc4cdd363
pkg/transport: change write size from 1MB -> 5MB
...
As we move to container-based infrastructure testing env
on travis, the tcp write buffer is more than 1MB. Change
the test according to the change on the testing env.
2014-12-13 11:32:29 -08:00
Xiang Li
c620238257
Merge pull request #1934 from xiang90/fix_test
...
discovery: fix watch index
2014-12-13 11:18:32 -08:00
Xiang Li
f265afa8ac
discovery: fix watch index
2014-12-13 11:15:24 -08:00
Barak Michener
bee3103931
Merge pull request #1931 from barakmich/travis
...
Disable unused sudo-ability from Travis in hopes of faster startup
2014-12-12 19:47:42 -05:00
Brandon Philips
fa195dae39
Merge pull request #1929 from lisael/master
...
added aioetcd (python 3.4+) to client libs list
2014-12-12 16:43:29 -08:00
Barak Michener
fe4abc40ce
Disable unused sudo-ability from Travis in hopes of faster startup
...
times.
2014-12-12 19:39:09 -05:00
Brandon Philips
3794f6ab88
version: bump to alpha.5
v0.5.0-alpha.5
2014-12-12 16:26:16 -08:00
Xiang Li
22e56ae9c6
Merge pull request #1930 from xiang90/flag
...
doc: add max wal/snap flags
2014-12-12 16:14:33 -08:00
Xiang Li
b7cd72b593
doc: add max wal/snap flags
2014-12-12 16:09:53 -08:00
lisael
1f0d43250f
documentation: fix min python version for aioetcd
2014-12-12 23:46:34 +01:00
lisael
97025bf5f1
documentation: added aioetcd to client libs
2014-12-12 23:40:56 +01:00
Xiang Li
ae1f3d5640
Merge pull request #1925 from xiang90/stats
...
Stats
2014-12-12 10:17:12 -08:00
Xiang Li
4724cbbe2c
etcdserver: one line
2014-12-11 22:17:36 -08:00
Xiang Li
935f7128a9
etcdserver: move stats inferface to stats pkg
2014-12-11 22:14:05 -08:00
Xiang Li
b555843e0f
Merge pull request #1922 from crawford/docs
...
docs: Update the flags and environment variables
2014-12-11 17:15:50 -08:00
Xiang Li
d5d034ecd2
Merge pull request #1921 from xiang90/fix_time
...
store: return utc time to user
2014-12-11 16:40:20 -08:00
Alex Crawford
f054dd9d6f
docs: Update the flags and environment variables
...
The configuration docs were missing some flags environment variables.
Arranged both lists in alphabetical order as well.
2014-12-11 16:26:05 -08:00
Xiang Li
773f112a5d
store: return utc time to user
2014-12-11 16:24:33 -08:00