Xiang Li
74c257f63d
Merge pull request #1419 from xiangli-cmu/raft_log_test
...
raft: add test for findConflict
2014-10-27 14:30:36 -07:00
Xiang Li
460d6490ba
raft: address issues in comments
2014-10-27 14:20:42 -07:00
Yicheng Qin
60cb18b6c2
Merge pull request #1432 from unihorn/187
...
raft: use raft-specific rand.Rand instead of global one
2014-10-27 14:15:58 -07:00
Yicheng Qin
b986a52579
raft: use raft-specific rand.Rand instead of global one
2014-10-27 12:32:11 -07:00
Brian Waldon
94e4595af5
Merge pull request #1427 from bcwaldon/members-serialization
...
Centralize Members serialization
2014-10-27 11:33:39 -07:00
Brian Waldon
753bc5e166
httptypes: add doc.go
2014-10-27 11:22:47 -07:00
Brian Waldon
80ca168cbe
client: simplify MembersAPI response parsing
2014-10-27 11:22:47 -07:00
Brian Waldon
14795d8ed9
httptypes: use MemberCollection for JSON (de)serialization
2014-10-27 11:22:47 -07:00
Brian Waldon
7545152318
httptypes: use []string for Member URLs
2014-10-27 11:22:47 -07:00
Brian Waldon
54a2d8ffc9
client: move Member models to new types pkg
2014-10-27 11:22:46 -07:00
Yicheng Qin
ee27846d5b
Merge pull request #1422 from unihorn/187
...
etcdserver: parse context error for better message
2014-10-27 11:00:01 -07:00
Yicheng Qin
e77f8e311c
etcdserver: parse context error for better message
2014-10-27 10:59:15 -07:00
Jonathan Boulle
585881a870
Merge pull request #1428 from jonboulle/subpackages
...
pkg: move everything into subpackages
2014-10-27 10:32:11 -07:00
Xiang Li
9964bfa6b9
Merge pull request #1426 from xiangli-cmu/clusterid
...
etcdhttp: attach clusterID to key and adminMember endpoint
2014-10-27 10:16:16 -07:00
Jonathan Boulle
6e6d1897d8
pkg: move everything into subpackages
2014-10-27 09:57:28 -07:00
Brian Waldon
328d8f2d26
Merge pull request #1424 from bcwaldon/pkg-readme
...
pkg: add README.md
2014-10-27 09:13:26 -07:00
Xiang Li
6f792354ca
etcdhttp: attach clusterID to key and adminMember endpoint
2014-10-27 07:52:39 -07:00
Xiang Li
40048d7300
Merge pull request #1420 from xiangli-cmu/clean_log
...
raft: remove unused code
2014-10-26 20:14:05 -07:00
Xiang Li
000962d689
Merge pull request #1421 from xiangli-cmu/logging
...
*: better logging
2014-10-26 20:13:55 -07:00
Brian Waldon
444e6e952b
pkg: add README.md
2014-10-26 16:28:48 -07:00
Brian Waldon
f9af07eb5b
Merge pull request #1423 from bcwaldon/http-refactor-hdlrs
...
eradicate serverHandler
2014-10-26 14:44:30 -07:00
Brian Waldon
b06499d0c2
etcdserver/etcdhttp: break apart HTTP handlers
2014-10-26 13:20:53 -07:00
Brian Waldon
4b77082b6e
Merge pull request #1415 from bcwaldon/http-refactor
...
etcdserver/etcdhttp: break apart http.go
2014-10-26 12:39:22 -07:00
Xiang Li
009b737cef
*: better logging
2014-10-26 08:13:03 -07:00
Xiang Li
94f701cf95
raft: refactor isUpToDate and add a test
2014-10-25 20:34:14 -07:00
Xiang Li
8cd95e916d
raft: comments for isUpToDate
2014-10-25 20:12:54 -07:00
Xiang Li
86c66cd802
raft: remove unused code
2014-10-25 19:56:13 -07:00
Xiang Li
90f26e4a56
raft: add test for findConflict
2014-10-25 18:58:11 -07:00
Brian Waldon
73215447c1
Merge pull request #1414 from bcwaldon/client-members-API
...
Add MembersAPI w/ List method
2014-10-25 11:33:42 -07:00
Brian Waldon
cba19e348f
client: MembersAPI.List
2014-10-25 11:30:15 -07:00
Brian Waldon
435611cf0d
etcdserver/etcdhttp: break apart http.go
2014-10-25 11:28:52 -07:00
Brian Waldon
00dcbf8bf7
client: unexport HTTPKeysAPI
2014-10-25 08:58:25 -07:00
Brian Waldon
73e48068c2
client: add prefix to KeysAPI
2014-10-25 08:58:25 -07:00
Brandon Philips
2b9cabcbcd
version: bump to v0.5.0-alpha.0
v0.5.0-alpha.0
2014-10-24 17:25:49 -07:00
Brian Waldon
2baf3e0d79
Merge pull request #1407 from bcwaldon/old-data-dir
...
etcd: use old default data-dir format
2014-10-24 16:44:30 -07:00
Brian Waldon
677d9d1bea
etcd: use old default data-dir format
2014-10-24 16:41:42 -07:00
Brandon Philips
91a4aa151a
Merge pull request #1406 from bcwaldon/doc-clustering
...
doc: PUT instead of POST discovery config
2014-10-24 16:36:54 -07:00
Brian Waldon
b62fdac193
doc: PUT instead of POST discovery config
2014-10-24 16:30:48 -07:00
Jonathan Boulle
e630910e31
Merge pull request #1398 from jonboulle/proxy
...
proxy not working on master
2014-10-24 15:55:31 -07:00
Yicheng Qin
338f59db74
Merge pull request #1401 from unihorn/186
...
etcdhttp: parse quorum field from http request
2014-10-24 15:54:40 -07:00
Jonathan Boulle
719c57a29d
proxy: retrieve ClientURLs from cluster
...
This is a simple solution to having the proxy keep up to date with the
state of the cluster. Basically, it uses the cluster configuration
provided at start up (i.e. with `-initial-cluster-state`) to determine
where to reach peer(s) in the cluster, and then it will periodically hit
the `/members` endpoint of those peer(s) (using the same mechanism that
`-cluster-state=existing` does to initialise) to update the set of valid
client URLs to proxy to.
This does not address discovery (#1376 ), and it would probably be better
to update the set of proxyURLs dynamically whenever we fetch the new
state of the cluster; but it needs a bit more thinking to have this done
in a clean way with the proxy interface.
Example in Procfile works again.
2014-10-24 15:54:12 -07:00
Yicheng Qin
0e1d1646fd
etcdhttp: parse quorum field from http request
2014-10-24 15:44:39 -07:00
Brandon Philips
0fcb59e7d9
Merge pull request #1393 from philips/0.5-docs2
...
Documentation/0.5: add api.md
2014-10-24 15:18:59 -07:00
Brandon Philips
5456ef7049
Documentation/0.5: add api.md
...
- Update all of the ports to use the new IANA port numbers
- Update the stats section to talk about the id fields
- Remove mention of the modules
- Remove -L from all of the curl commands since it is no longer needed
- Point people at the clustering.md guide for the cluster APIs
2014-10-24 15:18:47 -07:00
Yicheng Qin
cb59a46576
Merge pull request #1396 from unihorn/185
...
etcdhttp: trim StoreKeysPrefix from error in serveKeys
2014-10-24 14:48:31 -07:00
Jonathan Boulle
46528ee17b
Merge pull request #1391 from jonboulle/version
...
/version is 404 now
2014-10-24 14:48:02 -07:00
Jonathan Boulle
9a465b9cf5
etcdhttp: add /version endpoint
2014-10-24 14:47:37 -07:00
Jonathan Boulle
dc46d40b8e
Merge pull request #1397 from jonboulle/log_raft_msg
...
etcdserver/etcdhttp: remove log message for every received raft
2014-10-24 14:29:38 -07:00
Jonathan Boulle
bac13b5cb2
etcdserver/etcdhttp: remove log message for every received raft
2014-10-24 14:25:20 -07:00
Yicheng Qin
34dcbb4679
etcdhttp: trim StoreKeysPrefix from error in serveKeys
...
It returns error messaage like this now:
'{"errorCode":100,"message":"Key not found","cause":"/1/pants","index":10}'
The commit trims '/1' prefix from cause field if exists.
This is a hack to make it display well. It is correct because all error causes
that contain Path puts Path at the head of the string.
2014-10-24 14:12:53 -07:00