Brandon Philips
58e1f12240
doc(server): some basic docs on the tls_config object
...
This should be refactored but something to remember while refactoring.
2014-01-31 17:08:37 -08:00
Brandon Philips
0fa6d38574
fix(server): fix client certificate verification
...
In d0c4916fe9b2afaa273a2a7bc9782321a866ab9f the TLS CA Certificate
verification broke.
This was bisected using the following basic test:
```
./bin/etcd -f -name machine0 -data-dir machine0 -ca-file=/tmp/ca/ca.crt -cert-file=/tmp/ca/server.crt -key-file=/tmp/ca/server.key.insecure
```
And in another window doing
```
curl --key /tmp/ca/server2.key.insecure --cert /tmp/ca/server2.crt -k -L https://127.0.0.1:4001/v2/keys/foo -XPUT -d value=bar -v
```
Before merging this PR there are a few things that need to be fixed up:
1) Tests for client certs both positive and negative
2) Refactor (or at least documentation of) the TLSConfig types
2014-01-31 16:56:15 -08:00
Brian Waldon
2fe22f1890
refactor(servers): emit http.Handlers from *Server
2014-01-22 11:17:58 -08:00
Brian Waldon
089021ca6d
refacotor(transporter): make TLS config explicit
2014-01-22 11:17:58 -08:00
Brian Waldon
f158dfcd77
refactor(peerserver): Remove PeerServerConfig.Path
2014-01-22 11:17:58 -08:00
Brian Waldon
19980a7033
refactor(peerserver): remove timeouts from PeerServerConfig
2014-01-22 11:17:58 -08:00
Brian Waldon
a7d9efa900
refactor(server): Remove ServerConfig struct
2014-01-22 11:17:58 -08:00
Brian Waldon
0abd860f7e
refactor(server): drop Serve code; rename cors object
...
* server/cors.go renamed to http/cors.go
* all CORS code removed from Server and PeerServer
* Server and PeerServer fulfill http.Handler, now passed to http.Serve
* non-HTTP code in PeerServer.Serve moved to PeerServer.Start
2014-01-22 11:17:57 -08:00
Brian Waldon
5c3a3db2d8
refactor(server): treat Server as an http.Handler
2014-01-22 11:17:57 -08:00
Brian Waldon
074099a1b2
refactor(cors): Simplify corsInfo struct
2014-01-22 11:17:57 -08:00
Brian Waldon
a2ee620394
refactor(raft): init raft transporter & server in main
2014-01-22 11:17:56 -08:00
Brian Waldon
ffa2b07dc4
refactor(transporter): Pass in everything the transporter needs
2014-01-22 11:17:43 -08:00
Brian Waldon
60bbc57aeb
refactor(transporter): pass in timeouts
2014-01-22 11:17:43 -08:00
Brian Waldon
86718167e8
refactor(peer_server): move stats construction to factories
2014-01-22 11:17:42 -08:00
Brian Waldon
7bd4d05a38
refactor(peer-server): move listener init out of peer_server.go
2014-01-22 11:17:41 -08:00
Brian Waldon
d0c4916fe9
refactor(server): move listener init out of server.go
2014-01-22 11:17:26 -08:00
Brian Waldon
91fc6aabd2
chore(gofmt): Run gofmt
2014-01-22 11:17:26 -08:00
Brian Waldon
c0ff8f6026
chore(imports): Shift around some imports
2014-01-22 11:17:26 -08:00
Brian Waldon
a93d60be90
refactor(cors): Break apart CORS data and middleware
2014-01-22 11:17:26 -08:00
Brian Waldon
c47760382e
refactor(Server): Use a config struct in Server
2014-01-22 11:17:25 -08:00
Brian Waldon
9c8a23c333
refactor(PeerServer): Use a config struct in PeerServer
2014-01-22 11:17:03 -08:00
Brian Waldon
91f768f9ae
refactor(cors): Rename cors_handler.go to cors.go
2014-01-22 10:59:12 -08:00
Brian Waldon
97bc5b260d
feat(metrics): Publish peer heartbeat events as metrics
2014-01-21 11:44:22 -08:00
Brian Waldon
7eaad5c8e0
feat(metrics): enable some metrics; push to graphite
...
* -trace flag controls whether or not to enable metrics-gathering
and the /debug/* HTTP endpoints
* -graphite-host flag controls where metrics should be sent
* timer.ae.handle metric tracks execution time of AppendEntriesRequest
2014-01-20 15:39:36 -08:00
Brandon Philips
7a7f6aea00
Merge pull request #479 from philips/add-debug-endpoint
...
add-debug-endpoint
2014-01-16 11:28:52 -08:00
Brandon Philips
c2077ed0b6
feat(server): add net/http/pprof endpoints
...
Add some basic profiling endpoints over http to start digging into
memory and request latencies.
2014-01-15 15:03:29 -08:00
Xiang Li
d9088a5f18
Merge pull request #473 from bcwaldon/fix-peer-timeouts
...
Use election and heartbeat timeouts when building peer transporter
2014-01-15 02:11:40 -08:00
Brandon Philips
e2e0853492
fix(server/release_version): checkin to git
2014-01-14 22:14:47 -08:00
Brian Waldon
48e36422b5
chore(gofmt): Run gofmt on server/config.go
2014-01-14 09:18:09 -08:00
Brian Waldon
32df6f92fc
fix(peer): Pass peer server timeouts through factory
...
The peer's heartbeat and election timeouts are needed to build
the transporter in the factory method.
2014-01-14 09:18:03 -08:00
Brian Waldon
ae2130952b
fix(config): Set VeryVerbose properly
2014-01-10 11:45:04 -08:00
Brian Waldon
b0cdf73565
feat(logging): Add VeryVeryVerbose opt to control raft trace info
...
Set very_very_verbose=true in a config file or use the -vvv CLI
option to get raft trace logs in addition to etcd debug logs.
2014-01-10 11:45:04 -08:00
Ben Johnson
c64c739fab
Merge pull request #461 from xiangli-cmu/stream_watcher
...
feat(stream watchers) add stream watcher support
2014-01-10 08:42:31 -08:00
Cenk Alti
5b924dfd4e
feat(stream watchers) disable double chunking
2014-01-10 15:09:35 +02:00
Xiang Li
f250649a5e
fix(snapshot) count num of log entries rather than etcd transcations
2014-01-09 21:28:09 +08:00
Cenk Alti
c247d807af
feat(stream watchers) end streaming if too many notifications
2014-01-09 14:15:36 +02:00
Xiang Li
22a25a18b3
feat(stream watchers) add stream watcher support
2014-01-09 15:28:33 +08:00
Xiang Li
6b77b94127
Merge pull request #420 from benbjohnson/logging
...
Logging
2014-01-08 21:36:52 -08:00
Xiang Li
2bfb8f5e4f
Merge pull request #418 from xiangli-cmu/cancel_watcher
...
cancel watcher
2014-01-08 21:34:32 -08:00
Xiang Li
fa3b4a7941
refactor(watcher) change newWatcher to Watch
2014-01-09 13:29:04 +08:00
Ben Johnson
53477af1eb
Merge branch 'master' of https://github.com/coreos/etcd into logging
2014-01-08 16:50:51 -07:00
Ben Johnson
b47042634a
Add ThresholdMonitorTimeout.
2014-01-08 15:51:13 -07:00
Ben Johnson
88e0263d08
Add heartbeat and timeout threshold loggers.
2014-01-07 16:17:48 -07:00
Xiang Li
60c2680bfd
fix(peer_server.go) init name field and update leader field
2014-01-07 12:30:20 +08:00
Brandon Philips
ecc96df699
chore(server): remove web url
...
web URL is not longer used so remove it from tests and configuration
documents.
2014-01-05 20:39:39 -08:00
Ben Johnson
d7087ed61a
Merge branch 'master' of https://github.com/coreos/etcd into logging
2014-01-02 16:30:09 -07:00
Andy Bakun
5b105ed156
fix deprecated option tests
2014-01-02 11:11:27 -06:00
Andy Bakun
af3240fa18
docs(server/config.go): minor formatting changes
...
When -version or -help are given, don't warn about having to derive
the data directory name.
Print warnings about deprecated options on separate lines so the log
isn't screwy.
2014-01-02 04:30:38 -06:00
Xiang Li
fd0d0813ce
Merge pull request #432 from btipling/fix_trimsplit
...
Trimsplit Wasn't using separator, more efficient.
2014-01-01 13:46:08 -08:00
Bjorn Tipling
5a4c41be37
Don't copy strings.
2014-01-01 13:44:04 -08:00