Commit graph

29 commits

Author SHA1 Message Date
Ben Johnson
8e49332b25 Add distributed tracing. 2018-11-21 15:08:33 -06:00
Matt Jaffee
d86e9ed3ea
add docker based cluster tests, remove proxy stuff, fix advertise 2018-11-02 14:41:42 -05:00
Matt Jaffee
6e99a8757d
remove unnecessary memberlist constraint 2018-08-08 19:25:54 -05:00
Matt Jaffee
48af3adc21
add degraded cluster state and handle node failure
cluster is in degraded state when some number of nodes greater than 0 but less
than replicaN have failed. This is sort of a hybrid of "STARTING" and "NORMAL"
states because we can still respond to queries as in the NORMAL state, but we
need to be alert to re-add nodes to the cluster if they come back online which
required some changes to the cluster logic.

In order to make debugging easier, the test.MustRunCluster functionality now
names the nodes in the cluster explicitly as "node0", "node1", etc. "node0" is
the coordinator.

A number of TODOs are left in the test for scenarios that need to be checked.
2018-08-06 11:57:24 -05:00
Cody Soyland
1c2670184d Update dependencies for v1.0.0 2018-07-09 12:11:11 -05:00
Travis Turner
5dd7a9556a
rename slice to shard 2018-06-28 14:07:07 -05:00
Ben Johnson
8f3189c1b3
Translation fixes, error checking. 2018-06-22 08:12:35 -06:00
Ben Johnson
060254e0d6
Key-to-ID Translation
This commit adds id-to-key translation to make it easier for users
to provide non-integer identifiers for rows & columns.
2018-06-15 16:45:05 -06:00
Matt Jaffee
c1c89b9ef8
fix generate-config command, use single toml lib
The generate-config command was printing a fixed string rather than calling
NewConfig() which is the canonical source for default config. I also noticed
that we were depending on two different toml libraries, and so collapsed that to
a single one. We have to use pelletier rather than BurntSushi because the viper
library that we use depends on pelletier.
2018-06-01 09:21:38 -05:00
Cody Soyland
1a9beb0916 Add CORS support to handler. 2018-05-24 08:42:34 -05:00
Travis Turner
f2729b90d7
vendor github.com/golang/groupcache/lru. rebuild Gopkg.lock 2018-04-23 10:43:06 -05:00
Cody Soyland
c2444870c6 Remove gobreaker dep and add HTTP timeout 2018-03-13 12:30:39 -05:00
Yuce Tekol
c1f9dd4e59
Added query arg validator middleware; updated Gorilla/mux 2018-02-20 15:38:58 +03:00
Yuce Tekol
e2c2bd11e4
put back golang.org/x/net dep, required by golang.org/x/sync/errgroup 2018-02-12 17:16:38 +03:00
Yuce Tekol
a2580915ba
remove golang/org context from the lock 2018-02-09 17:34:18 +03:00
Yuce Tekol
f799d98564
Fixes #1092 2018-02-09 17:33:07 +03:00
Todd Gruben
a01a64aec5 remove unneeded dep 2018-02-06 10:51:03 -06:00
Todd Gruben
eca01e4b4f replace sha1 hash with faster xxhash 2018-02-06 08:51:38 -06:00
Matthew Jaffee
5799c10cd1
rename openPort, and some small refactors 2018-01-16 09:41:03 -06:00
Matthew Jaffee
e5c2d3e5d8
update gopkg.lock 2018-01-09 14:05:30 -06:00
Matthew Jaffee
59bd2da93f
fix a number of data races
datadog statsd client contained a race condition - was fixed in master

Server.Logger contained a race where multiple loggers could write to the same
output io.Writer

TestMain_FrameRestore contained a race where it tried to change a cluster's
nodes while it was running (which conflicted with antiEntropy reading that
state).
2018-01-09 13:31:17 -06:00
Yuce Tekol
94360e77e3
Adds CPU and mem info to the diagnostics payload. Implements #988, #989 2017-12-18 16:22:38 +03:00
Yuce Tekol
1448171a2c
Adds local and cluster IDs 2017-12-15 18:12:28 +03:00
Cody Soyland
b701fb68b0 Remove unneeded Gopkg.toml constraints and update all dependencies. Fixes #926. 2017-11-10 09:40:28 -06:00
Michael Baird
d50a0e241f gobreaker dep 2017-11-01 12:00:20 -05:00
Cody Soyland
04867a5fe0 Update a few more deps 2017-10-09 09:04:18 -05:00
Cody Soyland
7b004908bc Update dependencies and Go version 2017-10-06 16:11:33 -05:00
Matthew Jaffee
b0230f8ba9
dep ensure 2017-08-30 10:54:08 -05:00
Cody Soyland
5bc9c43611 Switch from glide to dep for dependency management. Fixes #732.
This implements the new `dep` command into our build process and removes
all references to Glide.
2017-07-21 11:09:43 -05:00