f1ed69e883
*: switch to line comments for copyright
...
Build tags are not compatible with block comments.
Also adds copyright header to a few places it was missing.
2015-01-26 09:53:30 -08:00
27d47977d9
etcdserver: move recorder to testutil
2015-01-02 11:21:23 -08:00
c3d2f5eea0
pbutil: add getbool to pbutil
2014-12-30 14:51:26 -08:00
0541f0afa0
etcdserver: refactor ValidateClusterAndAssignIDs
2014-11-17 14:23:37 -08:00
0c2b45ddc6
etcdserver: not record attributes when add member
...
There is no need to set attributes value when adding member because new
member will publish the information whenever it starts.
2014-11-12 17:48:15 -08:00
5967794009
*: support updating advertise-peer-url
...
Users might want to update the peerurl of the etcd member in several cases.
For example, if the IP address of the physical machine etcd running on is
changed, user need to update the adversite-pee-rurl accordingly.
This commit makes etcd support updating the advertise-peer-url of its members.
2014-11-11 12:07:03 -08:00
67a0de4bbc
etcdserver: use member pointer for all tests
2014-11-11 11:20:56 -08:00
e4931e0c47
etcdserver: remove unnecessary newTestMemberp
2014-11-11 11:09:33 -08:00
077e144e8a
etcdserver: move newTestMember* to member_test.go
2014-11-11 11:02:50 -08:00
bd2b18b6de
etcdserver: validate peerurl when adding members
2014-11-05 23:12:48 -08:00
99b1af40c6
etcdserver: move config validation to cluster
2014-11-05 17:55:07 -08:00
55c92ad456
*: create ID type
...
This creates a simple ID type (wrapped around uint64) to provide for
standard serialization/deserialization to a string (i.e. base 16
encoded). This replaces strutil so now that package is removed.
2014-10-31 10:34:07 -07:00
3dfb6723b2
*: rename initial-cluster-name to initial-cluster-token
2014-10-30 13:43:38 -07:00
d7f9228133
Merge pull request #1381 from jonboulle/members
...
/v2/admin/members API should use JSON containers in response
2014-10-24 13:20:10 -07:00
d1b57b448d
Merge pull request #1383 from unihorn/183
...
etcdserver: support newly-join member bootstrap
2014-10-24 12:43:25 -07:00
08593bcdf6
etcdserver: support newly-join member bootstrap
2014-10-24 12:38:44 -07:00
543e12074a
etcdserver/member: change JSON fields to lowerCamelCase
2014-10-24 12:03:17 -07:00
b9514ea265
etcdserver: add test for cluster.String
2014-10-24 10:03:28 -07:00
d7301a5cf4
main: fix proxy initialization and setupCluster
2014-10-23 16:09:29 -07:00
af42f4a56b
etcdserver: sort Members() in Cluster
2014-10-23 15:57:27 -07:00
8eee8c260e
etcdserver: rebase on master and code clean
2014-10-23 13:58:55 -07:00
3d243baacd
etcdserver: generate id when new cluster
2014-10-23 13:27:54 -07:00
67412e07f8
etcdserver: MemberFromName -> MemberByName
2014-10-23 13:27:54 -07:00
89572b5fd7
etcdserver: refactor cluster and clusterStore
...
Integrate clusterStore into cluster, and let cluster become the source of
cluster info.
2014-10-23 13:27:54 -07:00
502a3c2460
Refactor Cluster to hold and add members.
2014-10-22 13:52:42 -04:00
ad0b7b7dbb
Add cluster name to etcd flags
2014-10-22 13:52:42 -04:00
456d1ebcae
etcdserver: Calculate IDs for nodes solely on PeerURLs
...
Removes the notion of name being anything more than advisory or
command-line grouping, and adds checks for bootstrapping the command
line. IDs are consistent if the URLs are consistent.
2014-10-22 13:49:54 -04:00
a44849deec
Merge pull request #1286 from coreos/clusterid
...
*: generate clusterid
2014-10-20 19:07:03 -07:00
ea6bcacfe4
*: generate clusterid
2014-10-20 15:00:54 -07:00
7a4d42166b
*: add license header to all source files
2014-10-17 15:41:22 -07:00
77271b0663
etcdserver: split Member into RaftAttributes and Attributes
...
The split helps to save them in different key paths, because they have
distinct life cycle on update.
2014-10-09 20:28:00 -07:00
8bbbaa88b2
*: raft related int64 -> uint64
2014-10-09 14:29:21 +08:00
45ebfb4217
raft: refine initial entries logic in StartNode
2014-10-06 16:06:01 -07:00
c15c3eab4c
etcdserver: move int64Slice into pkg/types/
2014-10-06 15:12:02 -07:00
d2df23183d
etcdserver: restore test coverage of cluster
2014-10-03 17:06:23 -07:00
c2f96631d3
etcdserver: stop using addScheme
...
This standardizes the flags to use a list of URLs everywhere. The next
step is to enforce the scheme based on TLS settings and support compat
flags.
2014-09-30 16:40:32 -07:00
5784693a39
etcdserver: Cluster.Endpoints() -> Cluster.PeerURLs()
2014-09-28 14:39:47 -07:00
e83f851995
etcdserver: move cluster test from etcdhttp to etcdserver
2014-09-28 14:35:48 -07:00
15798a73d9
etcdserver: return client urls for /v2/machines
2014-09-26 16:50:15 -07:00
5e3fd6ee3f
etcdserver: introduce the cluster and member
...
This introduces two new concepts: the cluster and the member.
Members are logical etcd instances that have a name, raft ID, and a list
of peer and client addresses.
A cluster is made up of a list of members.
2014-09-25 18:04:10 -07:00