Xiang Li
af87fa40c2
fix(registry.go) protect the peer and proxy map in the registry by lock
2014-04-10 23:24:09 -04:00
Tomás Senart
b6053d6a86
Making code formatting consistent.
...
$ gofmt -s -w && goimports -w
2014-03-27 14:19:08 +01:00
Ben Johnson
7d4fda550d
Machine join/remove v2 API.
2014-03-18 16:25:21 -06:00
Ben Johnson
3cd83c61c4
Fix PUT /config response and log errors.
2014-03-06 13:35:46 -07:00
Ben Johnson
c8d6b26dfd
Add auto-demotion after peer inactivity.
2014-03-03 11:15:05 -07:00
Ben Johnson
f5698d3566
Proxy promotion.
2014-02-24 17:01:04 -07:00
Ben Johnson
1d961b8e56
Add proxy mode.
2014-02-22 15:02:20 -07:00
Brandon Philips
8485987b74
Merge pull request #524 from yifan-gu/remove_omitempty_on_value
...
remove omitempty on value
2014-02-18 07:08:00 -08:00
evan-gu
9cfd8c5f0b
fix(store): make NodeExtern.Value a *string
...
Before this change if the value of a Node was "" it would get dropped from the json
encoding and the Node.Value field would be missing. Fix this problem by making
NodeExtern.Value a *string so that an empty string will be encoded but a nil value
will drop the field.
2014-02-18 00:50:44 -05:00
Yicheng Qin
3a4df1612c
feat(discovery): adjust boot order to find peers
...
The boot order for peers is -discovery, -peers, log data, forming
new cluster itself.
Special rules:
1. If discovery succeeds, it would find peers specified by discover URL
only.
2. Etcd would fail when meeting bad -discovery, no -peers and log data.
Add TestDiscoveryDownNoBackupPeersWithDataDir as the test.
2014-02-17 12:53:39 -08:00
Yicheng Qin
bd56b15b6e
fix(tests/discovery): use host as -peers parameter instead of url
...
Or it cannot test the functionality correctly.
Moreover, add TestDiscoveryNoWithBackupPeers as the test for it.
2014-02-14 18:23:41 -08:00
Brandon Philips
7e5aa3137d
fix(server/registry): use url.Value.Encode()
...
Instead of open coding url encoding which lead to error, make it real
and use the library.
2013-12-13 12:43:01 -08:00
Xiang Li
40d297be66
feat add dir_flag
2013-12-05 17:10:37 -05:00
Xiang Li
b7d07ea5c8
refactor event
2013-11-28 11:33:40 -05:00
Ben Johnson
cba2611c68
Renamed configuration parameters.
2013-11-15 00:13:32 -05:00
Xiang Li
6156d5c790
refactor separate etcd index from raft index
2013-11-09 17:55:54 -08:00
Ben Johnson
aa9ae32998
Internal versioning.
2013-10-27 14:09:40 -06:00
Xiang Li
94accfcb23
refactor remove extra print parameter
2013-10-21 12:35:02 -07:00
Xiang Li
fbf40fb74a
refactor store.go add set function
2013-10-14 23:04:21 -07:00
Ben Johnson
1321c63f3b
Extract Store into an interface.
2013-10-14 11:12:30 -06:00
Xiang Li
7565313290
refactor add wrapper function
2013-10-13 22:20:23 -07:00
Xiang Li
a635f6b17c
refactor remove the extra function
2013-10-13 22:13:20 -07:00
Ben Johnson
dc59bd8d77
gofmt
2013-10-13 21:37:45 -06:00
Ben Johnson
d44fd6661a
Fix registry cache issues.
2013-10-13 21:09:56 -06:00
Ben Johnson
013d07bc2a
Fix server dispatch redirection.
2013-10-13 16:58:36 -06:00
Xiang Li
e954d3d41f
fix registry.go: use the correct node name; self is already in the list
2013-10-13 15:25:07 -07:00
Ben Johnson
55c1f45805
Merge branch 'refactoring' of https://github.com/benbjohnson/etcd into refactoring
...
Conflicts:
server/registry.go
2013-10-13 15:04:21 -06:00
Ben Johnson
ec24e76959
Fix duplicates in registry.
2013-10-13 14:56:17 -06:00
Xiang Li
0c5808eeec
fix server/server.go accept name when creating a when server; gofmt
2013-10-13 10:44:40 -07:00
Ben Johnson
7416d2fdcc
Mostly working.
2013-10-12 23:39:34 -06:00
Ben Johnson
8670e1b7aa
Refactored.
2013-10-12 15:56:43 -06:00
Ben Johnson
bb9401544a
Intermediate commit.
2013-10-12 13:35:23 -06:00
Ben Johnson
eb78d96a20
Intermediate commit.
2013-10-12 00:28:46 -06:00