Commit Graph

386 Commits (bc9e433ca26be0314a37c8c6ead66429a584bbc9)

Author SHA1 Message Date
Piotr Tabor de55bb6331 pkg: Rename imports after making 'pkg' a module
find -name '*.go' | xargs sed --follow-symlinks -i 's|go.etcd.io/etcd/v3/pkg/|go.etcd.io/etcd/pkg/v3/|g'
go fmt ./...
2020-10-13 00:09:27 +02:00
Piotr Tabor 28036db6f0 Mechanical: Move mock packages out of ./pkg
Mechanical execution of:

```
git mv ./pkg/mock/mockserver ./client/pkg/mock
git mv ./pkg/mock/{mockstorage,mockstore,mockwait} ./server/pkg/mock
```

The packages depend on etcd API / protos - so they are NOT etcd-dependencies.
In such situation thay should be placed in 'pkg' folder.
2020-10-12 23:58:09 +02:00
Xiang Li 4296cd3fa4 *: remove old server 2014-09-03 09:20:10 -07:00
Blake Mizerany 0881021e54 all config -> cfg 2014-09-03 09:20:07 -07:00
Blake Mizerany d77773acb3 server: ignore server in build/tests 2014-09-03 09:20:06 -07:00
Xiang Li 44836d9099 etcd: move server/usage.go to etcd/v2_usage.go 2014-09-03 09:19:49 -07:00
Xiang Li b8d71dfe70 v2: remove old tests 2014-09-03 09:19:49 -07:00
Yicheng Qin 02ced2c2d7 v1: deprecate v1 support
Etcd moves to 0.5 without the support of v1.
2014-09-03 09:19:49 -07:00
Xiang Li 8d758be3e4 server: remove unused file 2014-09-03 09:05:15 -07:00
Xiang Li 02c854717b config: make config a self-contained pkg 2014-09-03 09:05:13 -07:00
Yicheng Qin c9db87a302 server: bump to 0.4.6+git 2014-07-29 10:33:44 -07:00
Yicheng Qin 49e0dff2b8 CHANGELOG: v0.4.6 2014-07-29 10:31:48 -07:00
Yicheng Qin a884f2a18a Merge pull request #881 from unihorn/111
standby server: save Running info correctly
2014-07-24 17:29:25 -07:00
Yicheng Qin c00594e680 server: fix timer leak 2014-07-21 14:23:52 -07:00
Brandon Philips 1cffdb3a48 Merge pull request #866 from coreos/qread
feat(get): get from quorum
2014-07-08 18:30:18 -07:00
Yicheng Qin f7854c4ab9 standby server: save Running info correctly
Running should be true when Start, and set to false when switching to
the other mode.
2014-07-08 08:29:17 -07:00
Brandon Philips 13b0e72304 CHANGELOG: v0.4.5 2014-07-07 18:11:29 -07:00
Brandon Philips 43791a2f41 Merge pull request #877 from Rawn/flush-headers-on-wait-stream
server: Flush headers when using wait=true and stream=true
2014-07-07 17:04:02 -07:00
Brandon Philips 084dcb5596 etcd: add a read/write timeout to server
The default is for connections to last forever[1]. This leads to fds
leaking. I set the timeout so high by default so that watches don't have
to keep retrying but perhaps we should set it slower.

Tested on a cluster with lots of clients and it seems to have relieved
the problem.

[1] https://groups.google.com/forum/#!msg/golang-nuts/JFhGwh1q9xU/heh4J8pul3QJ
2014-07-07 11:42:56 -07:00
Yicheng Qin 8a0266a806 Merge pull request #867 from iand/json-headers
fix(server/server.go): /v2/stats endpoints emit application/json content type header
2014-07-07 10:33:27 -07:00
Christoffer Vikström 2338481bb1 server: Flush headers when using wait=true and stream=true
Many http clients will missbehave unless they get an initial http-
response, even when long-polling. It also saves the user/client from
having to handle headers on the first action of the watch, but rather
handle the response immediately.
2014-07-03 18:04:36 +02:00
Cole Gleason ce1e19ae2f Merge pull request #849 from colegleason/max-cluster-size
docs(cluster-size): remove outdated references to flag max-cluster-size
2014-07-02 12:21:14 -07:00
Ian Davis a288333e6f fix(server/server.go): /v2/stats endpoints emit application/json content type header 2014-06-30 10:50:43 +01:00
Brandon Philips 774cb03f83 server: bump to 0.4.4+git 2014-06-24 10:58:11 -07:00
Brandon Philips 4fb6087f4a CHANGELOG: release 0.4.4 2014-06-24 10:56:53 -07:00
Yicheng Qin 5524131a9e Merge pull request #865 from robstrong/hotfix/contentType
fix(peer_server) set content type to application/json in admin
2014-06-23 16:31:49 -07:00
Brandon Philips 3efb4d837b Merge pull request #844 from unihorn/102
chore(peer_server): improve log for auto removal
2014-06-23 14:19:48 -07:00
Xiang Li 973bde9a07 feat(get): get from quorum 2014-06-22 21:33:38 -07:00
Rob Strong 494d2c67aa fix(peer_server) set content type to application/json in admin 2014-06-21 13:13:10 -04:00
Yicheng Qin a29f6fb799 docs(configuration): add cluster configuration 2014-06-16 13:58:00 -07:00
Cole Gleason f4f429d4e3 docs(cluster-size): remove outdated refrences to flag max-cluster-size 2014-06-16 09:41:37 -07:00
Yicheng Qin f387bf8464 chore(peer_server): improve log for auto removal 2014-06-12 10:02:56 -07:00
Brandon Philips dc1f4adcd0 chore(server): bump to 0.4.3+git 2014-06-07 18:17:54 -07:00
Brandon Philips 9970141f76 chore(server): bump to 0.4.3 2014-06-07 18:17:05 -07:00
Brandon Philips 16c2bcf951 chore(server): go fmt
blame me for not running test first.
2014-06-07 18:03:22 -07:00
Brandon Philips 1c958f8fc3 fix(server): reduce the screaming heartbeat logs
Currently the only way we know that a peer isn't getting a heartbeat is
an edge triggered event from go raft on every missed heartbeat. This
means that we need to do some book keeping in order to do exponential
backoff.

The upside is that instead of screaming thousands of log lines before a
machine hits the default removal of 30 minutes it is only ~100.
2014-06-07 17:47:10 -07:00
Yicheng Qin ed58193ebe chore(server): set DefaultRemoveDelay to 30mins
Its value was 5s before, which could remove the node insanely fast.
2014-06-06 16:57:35 -07:00
Yicheng Qin fbcfe8e1c4 Merge pull request #807 from Shopify/raft-server-stats-struct-field-tag-fix
style(server): changed a LeaderInfo struct field from "startTime" to "StartTime"
2014-06-05 12:45:34 -07:00
Brandon Philips a974bbfe4f chore(server): bump to 0.4.2+git 2014-06-02 15:26:06 -07:00
Brandon Philips 99dcc8c322 chore(server): bump back to 0.4.2 2014-06-02 15:25:03 -07:00
Brandon Philips 707174b56a chore(server): bump to 0.4.2+git 2014-06-02 14:19:52 -07:00
Brandon Philips ce92cc3dc5 feat(CHANGELOG): bump to v0.4.2 2014-06-02 14:17:38 -07:00
Yicheng Qin 2387ef3f21 Merge pull request #819 from unihorn/97
fix(server): joinIndex is not set after recovery from full outage
2014-06-02 11:04:07 -07:00
Yicheng Qin d5bfca9465 Merge pull request #814 from unihorn/91
fix(server/v2): set correct content-type for etcdError response
2014-06-02 10:38:36 -07:00
Yicheng Qin d7768635fd fix(server): set joinIndex when recovered 2014-05-31 10:03:39 -07:00
Yicheng Qin 4bebb538eb fix(standby_server): able to join the cluster containing itself
Standby server will switch to peer server if it finds that
it has been contained in the cluster.
2014-05-30 14:03:49 -07:00
Yicheng Qin db4c5e0eaa fix(server/v2): set correct content-type for etcdError response
"net/http".Error reset the content type, so we get rid of it and
write our own one.
2014-05-29 14:18:50 -07:00
marc.barry 673d90728e style(server): changed a LeaderInfo struct field from "startTime" to "StartTime"
Changed the LeaderInfo struct "start time" field from "startTime" to "StartTime" so that it is an exported identifier. This required adding the `json:"startTime"` structure field tag so that the encoding/json package correctly performs JSON encoding (i.e. the correct property name --> startTime).
2014-05-21 11:19:56 -04:00
Brandon Philips 22c944d8ef chore(server): bump 0.4.0+git 2014-05-20 20:55:57 -07:00
Brandon Philips a2d16b52bb chore(server): bump to 0.4.1 2014-05-20 20:46:46 -07:00