Xiang Li
9db360387d
storage: support Range
2015-05-27 09:31:11 -07:00
Xiang Li
7bb388ed52
storage: initial kv api
2015-05-27 09:31:11 -07:00
Xiang Li
9be6a7c8fd
Merge pull request #2831 from xiang90/index
...
storage: initial index and key index
2015-05-27 09:29:42 -07:00
Xiang Li
49da7b6556
storage: add boltdb as dependency
2015-05-27 09:24:49 -07:00
Yicheng Qin
5d741e4945
Merge pull request #2797 from yichengq/stream-2.0
...
rafthttp: try stream msgappV1 handler if msgappV2 is unsupported
2015-05-26 15:09:51 -07:00
Yicheng Qin
19fc1a7137
rafthttp: update streamReader term in time
...
Because etcd 2.1 will build stream to any existing peers and etcd 2.0
requires the remote to provide most updated term, it is
necessary for streamReader to know the latest term.
2015-05-26 14:52:42 -07:00
Yicheng Qin
fad2c09fa8
rafthttp: not log expected timeout as error
...
The network timeout from stream with etcd 2.0 is expected because etcd
2.0 doesn't heartbeat on idle connections.
2015-05-26 14:52:41 -07:00
Yicheng Qin
38b8e848ac
rafthttp: try stream msgappV1 handler if msgappV2 is unsupported
...
This helps etcd 2.1 connect to msgappV1 handler when the remote member
doesn't support msgappV2. And it doesn't print out unsupported handler
error to make log clean.
2015-05-26 14:52:41 -07:00
Xiang Li
42fe370b35
Merge pull request #2848 from xiang90/metrics
...
*: use namespace and subsystem in metrics
2015-05-26 14:44:54 -07:00
Yicheng Qin
60c8719d08
Merge pull request #2782 from yichengq/not-close-stream
...
rafthttp: only close streamMsgApp when updating term
2015-05-26 14:41:22 -07:00
Xiang Li
34ac145b38
*: use namespace and subsystem in metrics
...
Fix #2841 .
From Prometheus developer:
```
the recommended way for etcd as an open source project and under
consideration of its size would be etcd_<subsystem>_<name>.
```
We made the naming change accordingly.
2015-05-26 14:39:04 -07:00
Xiang Li
3028edd7dc
Merge pull request #2856 from xiang90/mrefactor
...
etcdserver: refactore member.go
2015-05-26 14:37:37 -07:00
Yicheng Qin
4d8be39fd1
Merge pull request #2870 from yichengq/enable-travis-govet
...
travis: stop install tools cover and vet
2015-05-26 11:59:42 -07:00
Xiang Li
c951c22fff
Merge pull request #2861 from barakmich/2859
...
etcdserver: fix go vet. Fixes #2859
2015-05-26 11:06:55 -07:00
Yicheng Qin
90ad78aa46
travis: stop install tools cover and vet
...
There is no need to install them separately because they have been
downloaded in the default go root directory.
2015-05-26 11:03:53 -07:00
Xiang Li
1be69b1391
Merge pull request #2864 from schmichael/mention-metafora
...
docs: mention metafora distributed task library
2015-05-22 13:24:20 -07:00
Michael Schurter
e93242967c
docs: mention metafora distributed task library
...
Metafora uses etcd as a task broker, command channel, and state store.
2015-05-22 13:17:05 -07:00
Barak Michener
9ef098c5ed
etcdserver: fix go vet. Fixes #2859
2015-05-22 13:54:54 -04:00
Xiang Li
58eefda72d
Merge pull request #2840 from yichengq/revert-url-equal
...
Revert "Treat URLs have same IP address as same"
2015-05-21 19:27:19 -07:00
Xiang Li
4a72d3a8bb
etcdserver: refactore member.go
2015-05-21 09:19:29 -07:00
Xiang Li
e332e86b5d
storage: address barak's comments
2015-05-20 17:47:35 -07:00
Xiang Li
0ad6d7e3ba
Merge pull request #2853 from bdarnell/status
...
raft: MultiNode.Status returns nil for non-existent groups.
2015-05-20 13:07:23 -07:00
Ben Darnell
d58fac453d
raft: MultiNode.Status returns nil for non-existent groups.
...
Previously it would panic if the group did not exist.
2015-05-20 15:45:38 -04:00
Xiang Li
781eccb337
Merge pull request #2852 from bdarnell/hex-node-id
...
raft: Format node IDs as hex in DescribeMessage.
2015-05-20 12:34:35 -07:00
Ben Darnell
ef721db247
raft: Format node IDs as hex in DescribeMessage.
...
This is how they are printed in all other log messages.
2015-05-20 15:32:56 -04:00
Xiang Li
260aad5468
Merge pull request #2830 from xiang90/join_checking
...
checking cluster version compatibility before joining the existing cluster
2015-05-20 12:25:50 -07:00
Xiang Li
aa417ab644
etcdserver: log the per endpoint error in getVersion
2015-05-20 12:10:10 -07:00
Xiang Li
db7db689a6
etcdserver: check cluster version compability when joining
2015-05-19 10:19:41 -07:00
Xiang Li
845cb61213
storage: add kv and event proto
2015-05-18 14:35:10 -07:00
Barak Michener
00ed4fe778
Merge pull request #2764 from barakmich/2755
...
security: Lazily create the security directories. Fixes #2755 .
2015-05-18 17:34:13 -04:00
Barak Michener
a88a53274f
security: Lazily create the security directories. Fixes #2755 , may find new instances for #2741
...
revert the kv integration test
fix nits
amend security mention of GUEST
2015-05-18 17:28:04 -04:00
Xiang Li
6ee5cd9105
Merge pull request #2675 from xiang90/v3rfc
...
doc: v3api rfc
2015-05-18 13:52:54 -07:00
Xiang Li
7c879ee576
doc: v3api rfc
2015-05-18 13:48:16 -07:00
Yicheng Qin
3153e635d5
Revert "Treat URLs have same IP address as same"
...
This reverts commit f8ce5996b0566619fde8cca431890a49c52cf3d6.
etcd no longer resolves TCP addresses passed in through flags,
so there is no need to compare hostname and IP slices anymore.
(for more details: a3892221eea4804f58ce83934c91964e83f4f30c)
Conflicts:
etcdserver/cluster.go
etcdserver/config.go
pkg/netutil/netutil.go
pkg/netutil/netutil_test.go
2015-05-16 03:21:10 -07:00
Marcus Stong
b3e6ad136a
docs: add node-etcd-config to libs and tools doc
2015-05-16 02:02:44 -07:00
Xiang Li
9575cc4258
storage: add delete example
2015-05-15 19:33:59 -07:00
Yicheng Qin
2e43ac8463
rafthttp: add test for streamReader.updateMsgAppTerm
2015-05-15 11:21:54 -07:00
Yicheng Qin
8637a4bf69
rafthttp: only close streamMsgApp when updating term
...
In all stream types, streamMsgApp needs to be closed when
updating term because its stream connection can only be used under
a certain term. But there is no need to close other streams, which
may waste time and reduce performance.
2015-05-15 11:21:54 -07:00
Yicheng Qin
9699a501f3
Merge pull request #2833 from yichengq/rename-closer
...
rafthttp: resetCloser -> close
2015-05-15 11:18:58 -07:00
Yicheng Qin
8e0992a28b
rafthttp: resetCloser -> close
...
name 'close' is shorter and more straightforward.
2015-05-14 22:24:05 -07:00
Yicheng Qin
fc4543a3fd
Merge pull request #2628 from yichengq/improve-msgappv2
...
rafthttp: reduce allocs in msgappv2
2015-05-14 21:18:16 -07:00
Xiang Li
4b0d9f69c7
storage: add a simple backend and kv example
2015-05-14 20:43:32 -07:00
Yicheng Qin
d611904a41
Merge pull request #2828 from yichengq/cluster-health-log
...
etcdctl/cluster_health: improve output if failed to get leader stats
2015-05-14 19:01:48 -07:00
Yicheng Qin
3d8fe3b3ca
etcdctl/cluster_health: improve output if failed to get leader stats
...
When failing to get leader stats, it said 'cluster is unhealthy' before.
This is confusing when it cannot get stats because advertised client urls
are set wrong and the cluster is healthy.
2015-05-14 18:52:10 -07:00
Xiang Li
9d831e3075
*: godep btree
2015-05-14 17:59:55 -07:00
Xiang Li
660fd5e3e1
storage: add comment around compact
2015-05-14 17:55:54 -07:00
Xiang Li
ee47973199
storage: initial index
2015-05-14 17:53:41 -07:00
Xiang Li
32d44aa3b2
storage: initial key index
2015-05-14 17:35:12 -07:00
Xiang Li
556713739c
Merge pull request #2823 from alexwlchan/master
...
docs: small fixes to spelling and similar
2015-05-14 15:41:14 -07:00
Xiang Li
9f8342dba4
etcdserver: do not get local version via HTTP
2015-05-13 17:19:32 -07:00