davygeek
8c96d2573f
*: fixed some warning
2016-06-30 23:13:46 +08:00
Xiang Li
755d192ff7
*: make it clear that proxy only supports v2 api now
2016-06-23 12:06:42 -07:00
Gyu-Ho Lee
ef44f71da9
*: update LICENSE header
2016-05-12 20:51:48 -07:00
Xiang Li
aaefd52afa
Merge pull request #5092 from xiang90/etcdlet
...
*: gateway initial commit
2016-05-11 10:36:02 -07:00
Xiang Li
a300be92dc
*: initial support for gatway
...
etcd gatway is a simple l4 gateway that forwards tcp connections to
the given endpoints.
2016-05-11 09:44:50 -07:00
Anthony Romano
8c4958dd60
etcdmain: notify systemd when etcd is ready to accept requests
...
Fixes #5151
2016-05-10 13:36:46 -07:00
Ajit Yagaty
8bc5ab9f8d
etcd: Configuration file for etcd server.
...
Added a new command line option to etcd server to read in a YAML
based configuration file. I've also added an example configuration
file with comments and a set of test cases.
2016-05-09 18:17:27 -07:00
Xiang Li
973ad5aa7c
*: support auto tls on client side
2016-05-02 16:17:49 -07:00
Xiang Li
66d2ae7a39
proxy: move http related thing to httpproxy
2016-04-13 21:09:26 -07:00
Gyu-Ho Lee
9108af9046
*: clean up from go vet, misspell
2016-04-10 23:16:56 -07:00
Anthony Romano
c4caa65c51
etcdmain: start on unsupported arch when ETCD_UNSUPPORTED_ARCH is set
2016-04-10 19:36:04 -07:00
Gyu-Ho Lee
6e6d64fb9b
*: clean up unused vars, functions
...
With help from https://github.com/dominikh/go-unused .
IsNetTimeoutError seems useful, so moved to pkg/netutil.
2016-04-06 21:33:55 -07:00
Xiang Li
2c50eb240e
*: mv etcdhttp into api pkg
2016-04-04 16:31:35 -07:00
Anthony Romano
9b2c963179
etcdserver: configurable backend size quota
...
Configurable with the flag --experimental-quota-backend-bytes and
through ServerConfig.QuotaBackendBytes.
Fixes #4894
2016-03-29 18:39:25 -07:00
Xiang Li
6285455f85
etcdmain: warn on contradictory TLS settings
2016-03-24 10:21:47 -07:00
Xiang Li
5ee3729738
etcdmain: etcd should fail to start when https is enabled but tls config is not given
2016-03-24 09:57:25 -07:00
Xiang Li
70a9391378
*: enable v3 by default
2016-03-23 17:01:36 -07:00
Xiang Li
900a61b023
*: http and https on the same port
2016-03-23 10:28:38 -07:00
Anthony Romano
bd832e5b0a
*: migrate Godeps to vendor/
2016-03-22 17:10:28 -07:00
Gyu-Ho Lee
2364d71ea2
etcdmain: fix shadowed variables
2016-03-21 21:55:06 -07:00
Xiang Li
d3809abe42
*: gRPC + HTTP on the same port
...
We use cmux to do this since we want to do http+https on the same
port in the near future too.
2016-03-21 14:29:25 -07:00
Anthony Romano
e9b2bd751d
etcdmain: add --peer-auto-tls option
...
Lets the peer generate its own (unsigned) certs.
2016-03-21 11:38:23 -07:00
Anthony Romano
5f304b4dee
*: build phony etcd server binary for unsupported architectures
...
We don't qualify etcdserver for anything other than amd64, so don't
build binaries that are untested and might be unreliable.
2016-03-08 13:12:11 -08:00
Xiang Li
d265fe000c
*: support time based auto compaction.
...
Fix https://github.com/coreos/etcd/issues/3906 .
We will have extensive doc to talk about what is compaction
and what is auto compaction soon.
2016-02-25 16:02:03 -08:00
Anthony Romano
20461ab11a
*: fix many typos
2016-01-31 21:42:39 -08:00
Anthony Romano
4634874d99
etcdmain, integration, v3rpc: consolidate grpc server setup
2016-01-29 16:38:11 -08:00
Anthony Romano
563850bcc1
etcdmain: support v3 tls
2016-01-29 16:38:11 -08:00
Xiang Li
36cc8446c7
*: finish member api implementation
2016-01-26 18:09:14 -08:00
Anthony Romano
2e157530a0
etcdhttp, lease, v3api: forward keepalives to leader
...
keepalives don't go through raft so let follower peers announce
keepalives to the leader through the peer http handler
2016-01-22 12:40:40 -08:00
Xiang Li
f3daa9f677
etcdmain: proxy should only lookup srv if there is no existing cluster file
2016-01-14 11:23:36 -08:00
Hitoshi Mitake
588f655b4e
etcdmain: add an option for pprof
...
This commit adds a new option for activating profiling based on pprof
in etcd process.
- -enable-pprof: boolean type option which activates profiling
For example, if a client URL is http://localhost:12379 , users and
developers access heap profiler with this URL:
http://localhost:12379/debug/pprof/heap
2016-01-13 16:12:26 +09:00
Anthony Romano
811fbc5672
etcdmain: support keep alive listeners on limit listener connections
...
Fixes #4171
2016-01-08 10:11:31 -08:00
Xiang Li
99bee2fd29
Merge pull request #4162 from xiang90/lease
...
*: add support for lease create and revoke
2016-01-07 16:58:59 -08:00
Xiang Li
d9ca929a33
*: add support for lease create and revoke
...
Basic support for lease operations like create and revoke.
We still need to:
1. attach keys to leases in KV implmentation if lease field is set
2. leader periodically removes expired leases
3. leader serves keepAlive requests and follower forwards keepAlive
requests to leader.
2016-01-07 16:39:39 -08:00
Xiang Li
1f97f2dc36
etcdmain: tls listener MUST be at the outer layer of all listeners
...
go HTTP library uses type assertion to determine if a connection
is a TLS connection. If we wrapper TLS Listener with any customized
Listener that can create customized Conn, HTTPs will be broken.
This commit fixes the issue.
2016-01-07 10:26:49 -08:00
Gyu-Ho Lee
366e7a879f
*: fill in WatchResponse.Header
...
Related to coreos#3848.
2016-01-06 15:12:53 -08:00
Xiang Li
4bcd7587e2
etcdmain: fix incomplete proxy config file
...
etcd might generate incomplete proxy config file after a power failure.
It is because we use ioutil.WriteFile. And iotuile.WriteFile does
not call Sync before closing the file.
2015-12-21 16:15:00 -08:00
Gyu-Ho Lee
c48b0a5e18
etcdmain: fix shadowed variables
...
Fix for https://github.com/coreos/etcd/issues/3954 .
2015-12-12 09:38:26 -08:00
Xiang Li
9e4a003fb0
etcdmain: fix unstoppable startEtcd function
...
We should wrap the blocking function with a closure. And first
creates a go routine to execute the function. Or the inner function
blocks before creating the go routine.
2015-11-17 09:04:00 -08:00
Xiang Li
08f0d94019
Merge pull request #3809 from xiang90/rpc_kv
...
*: refactor kv rpc implementation
2015-11-04 19:05:48 -08:00
Yicheng Qin
3d15526c35
Merge pull request #3796 from yichengq/fix-get-version
...
etcdserver: not reuse connections for peer transport
2015-11-04 11:39:14 -08:00
Xiang Li
c37bd2385a
*: refactor kv rpc implementation
2015-11-04 11:36:17 -08:00
Yicheng Qin
4ccbcb91c8
rafthttp: add functions to create listener and roundTripper
...
This moves the code to create listener and roundTripper for raft communication
to the same place, and use explicit functions to build them. This prevents
possible development errors in the future.
2015-11-04 11:12:46 -08:00
Xiang Li
1a3f7f7fa4
*: rename etcd service to kv service in gRPC
2015-11-04 10:05:49 -08:00
Xiang Li
10de2e6dbe
*: serve watch service
...
Implement watch service and hook it up
with grpc server in etcdmain.
2015-11-03 15:58:34 -08:00
Yicheng Qin
9757dcd3a2
etcdmain: fix parsing discovery error
...
The discovery error is wrapped into a struct now, and cannot be compared
to predefined errors. Correct the comparison behavior to fix the
problem.
2015-11-02 17:23:06 -08:00
Yicheng Qin
207c92b627
rafthttp: build transport inside pkg instead of passed-in
...
rafthttp has different requirements for connections created by the
transport for different usage, and this is hard to achieve when giving
one http.RoundTripper. Pass into pkg the data needed to build transport
now, and let rafthttp build its own transports.
2015-10-11 21:42:37 -07:00
Xiang Li
51043830d4
etcdmain: print out error and suggestion for fixing notify issue
2015-10-02 13:39:41 -07:00
Yicheng Qin
49d262185d
Merge pull request #3590 from yichengq/discovery-log
...
etcdmain: improve log when join discovery fails
2015-09-29 08:02:18 -07:00
Yicheng Qin
939aa96a34
etcdmain: improve log when join discovery fails
...
Before this PR, the log is
```
2015/09/1 13:18:31 etcdmain: client: etcd cluster is unavailable or
misconfigured
```
It is quite hard for people to understand what happens.
Now we print out the exact reason for the failure, and explains the way
to handle it.
2015-09-28 23:23:50 -07:00