67 Commits

Author SHA1 Message Date
Brian Waldon
f2d3d90b60 etcd: wire up client TLS flags 2014-09-22 17:58:31 -07:00
Brian Waldon
17459c7bfc transport: wrap net.Listener with TLSInfo 2014-09-22 17:58:30 -07:00
Brian Waldon
a782a1a7d1 etcd: manually construct listeners 2014-09-22 17:57:44 -07:00
Jonathan Boulle
1a36b53f14 main: add CORS support 2014-09-19 14:58:35 -07:00
Jonathan Boulle
f0789e7349 main: add address validation for bind-addr flag 2014-09-18 16:38:14 -07:00
Brian Waldon
6e782b0e63 etcd: add -proxy=readonly 2014-09-18 15:05:33 -07:00
Brian Waldon
afce2948d2 etcd: replace -proxy-mode with -proxy 2014-09-18 14:30:22 -07:00
Jonathan Boulle
1c544667ff Merge pull request #1040 from jonboulle/1040_config_env_vars
etcd needs to be configurable through env vars
2014-09-17 15:28:02 -07:00
Jonathan Boulle
b66a40495d raft: introduce Node interface 2014-09-17 14:18:56 -07:00
Jonathan Boulle
844897360c main: add test for setting flags 2014-09-17 14:12:04 -07:00
Xiang Li
ab61a8aa9a *: init for on disk snap support 2014-09-17 13:56:12 -07:00
Jonathan Boulle
40c19e525c main: retrieve config from env vars 2014-09-17 12:15:39 -07:00
Xiang Li
f17391a72b Merge pull request #1090 from jonboulle/1090_multiple_sockets
listen on multiple sockets
2014-09-16 15:29:05 -07:00
Yicheng Qin
f786de13d0 Merge pull request #1081 from unihorn/125
make TTL work
2014-09-16 15:14:44 -07:00
Jonathan Boulle
936ecd097a main: listen for client requests on multiple sockets 2014-09-16 14:46:51 -07:00
Jonathan Boulle
6d4c79b157 main: switch back to default ports 2014-09-16 14:36:59 -07:00
Yicheng Qin
023dc7cba2 etcdserver: add SYNC request 2014-09-16 13:42:03 -07:00
Jonathan Boulle
67e57ffca4 etcdserver: split out client and server listeners 2014-09-16 11:36:37 -07:00
Jonathan Boulle
e04c028d64 etcdserver/etcdhttp: switch to using http.ServeMux 2014-09-15 16:05:20 -07:00
Jonathan Boulle
8a5ab2ec06 etcdserver: introduce Server interface
This changes etcdserver.Server to an interface, with the former Server
(now "EtcdServer") becoming the canonical/production implementation.
This will facilitate better testing of the http server et al with mock
implementations of the interface.
It also more clearly defines the boundary for users of the Server.
2014-09-15 15:11:01 -07:00
Yicheng Qin
38c074cb05 Merge pull request #1067 from unihorn/122
raft: write entry 0 into log
2014-09-15 10:00:49 -07:00
Yicheng Qin
140fd6d6c4 raft: restart using last written entry also 2014-09-15 09:56:33 -07:00
Xiang Li
e7ea6a374a main: check node id is not noneid 2014-09-14 23:28:11 -07:00
Yicheng Qin
2030ca202f wal: change wal filename format
Make raftIndex section to be expected raftIndex of next entry.

It makes filename more intuitive and straight-forward.

The commit also adds comments for filename format.
2014-09-12 11:24:28 -07:00
Brandon Philips
884c702512 wal: wal.OpenFromIndex -> wal.OpenAtIndex
The first entry read from the wal should be the index provided. This
name makes that more clear.
2014-09-11 12:52:06 -07:00
Brian Waldon
7415d53020 proxy: add proxy-mode functionality to etcd daemon 2014-09-10 18:06:56 -07:00
Brian Waldon
a3334eed23 main: break out startEtcd func 2014-09-10 18:04:02 -07:00
Brian Waldon
c251304068 *: s/Id/ID/
golang convention dictates that the individual characters in an
abbreviation should all have the same case. Use ID instead of Id.

The protobuf generator still generates code that does not meet
this convention, but that's a fight for another day.
2014-09-10 16:09:08 -07:00
Yicheng Qin
d519491545 http: add TODO for peers var 2014-09-09 15:55:42 -07:00
Yicheng Qin
0c1d1b7aeb etcdhttp: add /v2/machines endpoint 2014-09-09 15:00:29 -07:00
Xiang Li
5c8839387d etcdhttp: set peer should clean up previous values 2014-09-08 16:38:01 -07:00
Xiang Li
9215ebb6aa Merge pull request #992 from coreos/wal
wal
2014-09-08 16:24:28 -07:00
Xiang Li
4a02a1a60c main: clarify fatal message for unexpect nodeid 2014-09-08 16:21:27 -07:00
Xiang Li
9a57d1067d main: make default data to have _data_etcd suffix 2014-09-08 16:15:18 -07:00
Xiang Li
54734b0903 main/wal: add a const for 0700 magic number 2014-09-08 15:45:58 -07:00
Xiang Li
a3b6a646eb main: check the id read by from wal. 2014-09-08 15:31:11 -07:00
Xiang Li
36730ca613 main: use -> using 2014-09-08 10:32:49 -07:00
Xiang Li
8c9d7e3e93 main: add a helper function for starting raft 2014-09-05 10:24:13 -07:00
Xiang Li
0851a1fe7f main: better error msg 2014-09-05 10:02:46 -07:00
Xiang Li
ee78890f22 main: use data-dir as the path to data directory flag 2014-09-05 09:56:25 -07:00
Xiang Li
1a6e908971 *: add wal 2014-09-05 09:52:40 -07:00
Xiang Li
bca8f9e0ed etcdserver: change default id to 0x1 2014-09-04 22:26:42 -07:00
Xiang Li
c1e7a788cd etcdserver: add default peer 2014-09-04 10:11:32 -07:00
Xiang Li
2ba57ee75d *: remove unused pkgs 2014-09-03 09:20:20 -07:00
Blake Mizerany
cf91035a36 main: log hex of id 2014-09-03 09:20:20 -07:00
Blake Mizerany
576e26ea39 oops 2014-09-03 09:20:20 -07:00
Blake Mizerany
dcd64f2a59 ... 2014-09-03 09:20:19 -07:00
Blake Mizerany
728690fa03 hanging 2014-09-03 09:20:19 -07:00
Blake Mizerany
8f3544ece8 server of one is alive! 2014-09-03 09:20:19 -07:00
Blake Mizerany
cb7b321240 boom 2014-09-03 09:20:19 -07:00