Yicheng Qin
c00594e680
server: fix timer leak
2014-07-21 14:23:52 -07:00
Brandon Philips
1cffdb3a48
Merge pull request #866 from coreos/qread
...
feat(get): get from quorum
2014-07-08 18:30:18 -07:00
Yicheng Qin
f7854c4ab9
standby server: save Running info correctly
...
Running should be true when Start, and set to false when switching to
the other mode.
2014-07-08 08:29:17 -07:00
Brandon Philips
13b0e72304
CHANGELOG: v0.4.5
2014-07-07 18:11:29 -07:00
Brandon Philips
43791a2f41
Merge pull request #877 from Rawn/flush-headers-on-wait-stream
...
server: Flush headers when using wait=true and stream=true
2014-07-07 17:04:02 -07:00
Brandon Philips
084dcb5596
etcd: add a read/write timeout to server
...
The default is for connections to last forever[1]. This leads to fds
leaking. I set the timeout so high by default so that watches don't have
to keep retrying but perhaps we should set it slower.
Tested on a cluster with lots of clients and it seems to have relieved
the problem.
[1] https://groups.google.com/forum/#!msg/golang-nuts/JFhGwh1q9xU/heh4J8pul3QJ
2014-07-07 11:42:56 -07:00
Yicheng Qin
8a0266a806
Merge pull request #867 from iand/json-headers
...
fix(server/server.go): /v2/stats endpoints emit application/json content type header
2014-07-07 10:33:27 -07:00
Christoffer Vikström
2338481bb1
server: Flush headers when using wait=true and stream=true
...
Many http clients will missbehave unless they get an initial http-
response, even when long-polling. It also saves the user/client from
having to handle headers on the first action of the watch, but rather
handle the response immediately.
2014-07-03 18:04:36 +02:00
Cole Gleason
ce1e19ae2f
Merge pull request #849 from colegleason/max-cluster-size
...
docs(cluster-size): remove outdated references to flag max-cluster-size
2014-07-02 12:21:14 -07:00
Ian Davis
a288333e6f
fix(server/server.go): /v2/stats endpoints emit application/json content type header
2014-06-30 10:50:43 +01:00
Brandon Philips
774cb03f83
server: bump to 0.4.4+git
2014-06-24 10:58:11 -07:00
Brandon Philips
4fb6087f4a
CHANGELOG: release 0.4.4
2014-06-24 10:56:53 -07:00
Yicheng Qin
5524131a9e
Merge pull request #865 from robstrong/hotfix/contentType
...
fix(peer_server) set content type to application/json in admin
2014-06-23 16:31:49 -07:00
Brandon Philips
3efb4d837b
Merge pull request #844 from unihorn/102
...
chore(peer_server): improve log for auto removal
2014-06-23 14:19:48 -07:00
Xiang Li
973bde9a07
feat(get): get from quorum
2014-06-22 21:33:38 -07:00
Rob Strong
494d2c67aa
fix(peer_server) set content type to application/json in admin
2014-06-21 13:13:10 -04:00
Yicheng Qin
a29f6fb799
docs(configuration): add cluster configuration
2014-06-16 13:58:00 -07:00
Cole Gleason
f4f429d4e3
docs(cluster-size): remove outdated refrences to flag max-cluster-size
2014-06-16 09:41:37 -07:00
Yicheng Qin
f387bf8464
chore(peer_server): improve log for auto removal
2014-06-12 10:02:56 -07:00
Brandon Philips
dc1f4adcd0
chore(server): bump to 0.4.3+git
2014-06-07 18:17:54 -07:00
Brandon Philips
9970141f76
chore(server): bump to 0.4.3
2014-06-07 18:17:05 -07:00
Brandon Philips
16c2bcf951
chore(server): go fmt
...
blame me for not running test first.
2014-06-07 18:03:22 -07:00
Brandon Philips
1c958f8fc3
fix(server): reduce the screaming heartbeat logs
...
Currently the only way we know that a peer isn't getting a heartbeat is
an edge triggered event from go raft on every missed heartbeat. This
means that we need to do some book keeping in order to do exponential
backoff.
The upside is that instead of screaming thousands of log lines before a
machine hits the default removal of 30 minutes it is only ~100.
2014-06-07 17:47:10 -07:00
Yicheng Qin
ed58193ebe
chore(server): set DefaultRemoveDelay to 30mins
...
Its value was 5s before, which could remove the node insanely fast.
2014-06-06 16:57:35 -07:00
Yicheng Qin
fbcfe8e1c4
Merge pull request #807 from Shopify/raft-server-stats-struct-field-tag-fix
...
style(server): changed a LeaderInfo struct field from "startTime" to "StartTime"
2014-06-05 12:45:34 -07:00
Brandon Philips
a974bbfe4f
chore(server): bump to 0.4.2+git
2014-06-02 15:26:06 -07:00
Brandon Philips
99dcc8c322
chore(server): bump back to 0.4.2
2014-06-02 15:25:03 -07:00
Brandon Philips
707174b56a
chore(server): bump to 0.4.2+git
2014-06-02 14:19:52 -07:00
Brandon Philips
ce92cc3dc5
feat(CHANGELOG): bump to v0.4.2
2014-06-02 14:17:38 -07:00
Yicheng Qin
2387ef3f21
Merge pull request #819 from unihorn/97
...
fix(server): joinIndex is not set after recovery from full outage
2014-06-02 11:04:07 -07:00
Yicheng Qin
d5bfca9465
Merge pull request #814 from unihorn/91
...
fix(server/v2): set correct content-type for etcdError response
2014-06-02 10:38:36 -07:00
Yicheng Qin
d7768635fd
fix(server): set joinIndex when recovered
2014-05-31 10:03:39 -07:00
Yicheng Qin
4bebb538eb
fix(standby_server): able to join the cluster containing itself
...
Standby server will switch to peer server if it finds that
it has been contained in the cluster.
2014-05-30 14:03:49 -07:00
Yicheng Qin
db4c5e0eaa
fix(server/v2): set correct content-type for etcdError response
...
"net/http".Error reset the content type, so we get rid of it and
write our own one.
2014-05-29 14:18:50 -07:00
marc.barry
673d90728e
style(server): changed a LeaderInfo struct field from "startTime" to "StartTime"
...
Changed the LeaderInfo struct "start time" field from "startTime" to "StartTime" so that it is an exported identifier. This required adding the `json:"startTime"` structure field tag so that the encoding/json package correctly performs JSON encoding (i.e. the correct property name --> startTime).
2014-05-21 11:19:56 -04:00
Brandon Philips
22c944d8ef
chore(server): bump 0.4.0+git
2014-05-20 20:55:57 -07:00
Brandon Philips
a2d16b52bb
chore(server): bump to 0.4.1
2014-05-20 20:46:46 -07:00
Brandon Philips
62560f9959
fix(server): add user facing remove API
...
This was accidently removed as we refactored the standy stuff. Re-add this
user facing remove endpoint that matches the config endpoints.
2014-05-20 20:01:10 -07:00
Brandon Philips
cc37c58103
chore(server): bump to 0.4.0+git
2014-05-20 17:10:28 -07:00
Brandon Philips
07d1eb0edb
chore(server): bump to 0.4.0
2014-05-20 17:09:22 -07:00
Xiang Li
1e7a7b11dd
Merge pull request #799 from xiangli-cmu/deny_unknow_peer
...
hack(server): notify removed peers when they try to become candidates
2014-05-20 13:37:14 -07:00
Yicheng Qin
934c28d498
fix(peer_server): set store and registry when setting raft server
...
New raft server needs new store and registry.
2014-05-20 13:12:12 -07:00
Xiang Li
189fece683
hack(server): notify removed peers when they try to become candidates
...
A peer might be removed during a network partiton. When it comes back it
will not have received any of the log entries that would have notified
it of its removal and go onto propose a vote. This will disrupt the
cluster and the cluster should give the machine feedback that it is no
longer a member.
The term of a denied vote is MaxUint64. The notification of the removal
is a raft event. These two modification are quick heck.
In reaction to this notification the machine should shutdown. In this
case the shutdown just moves it towards becoming a standby server.
2014-05-20 10:17:32 -07:00
Brandon Philips
1084e51320
Merge pull request #786 from unihorn/91
...
feat(standby_server): write cluster info to disk
2014-05-18 10:08:52 -07:00
Yicheng Qin
84f71b6c87
chore(standby_server): remove error return
...
because standby server should be started in best efforts.
2014-05-16 18:07:49 -04:00
Yicheng Qin
71679bcf56
feat(standby_server): make atomic move for file
...
to avoid the risk of writing out a corrupted file.
2014-05-16 01:00:07 -04:00
Yicheng Qin
a824be4c14
feat(standby_server): save/load Running into disk
2014-05-16 00:10:15 -04:00
Yicheng Qin
35cc81e22f
feat(standby_server): save/load syncInterval to disk
2014-05-15 23:57:58 -04:00
Yicheng Qin
716496ec42
chore(standby_server): still sleep for the first time
2014-05-15 23:18:59 -04:00
Yicheng Qin
b7d9fdbd39
feat(standby_server): write cluster info to disk
...
For better fault tolerance and availability.
2014-05-15 07:47:15 -04:00