Travis Turner
9a2aeac6f8
Clean up logger; make it honor --log-path flag.
...
Add functional options to NewGossipMemberSet.
2018-03-27 08:40:04 -05:00
Travis Turner
b2b0fd081a
Remove ColumnLabel support
2018-03-26 15:35:56 -05:00
Cody Soyland
f9efa6c579
Use type func(string) AttrStore in place of interface AttrStoreGenerator for simplicity
2018-03-23 13:57:29 -05:00
Travis Turner
b66bedd1ef
put BoltDB behind AttrStore interface
2018-03-19 11:30:41 -05:00
Cody Soyland
754de2e057
Add correct diagnostics interval to startup message.
2018-03-15 15:26:36 -05:00
Cody Soyland
c2444870c6
Remove gobreaker dep and add HTTP timeout
2018-03-13 12:30:39 -05:00
Cody Soyland
f4c1e0c492
Refactor gopsutil into SystemInfo interface/subpackage for dependency injection.
2018-03-13 11:41:45 -05:00
Cody Soyland
510c64ef06
Move diagnostics into package pilosa
2018-03-12 16:32:35 -05:00
Travis Turner
2a462d5e42
make sure cluster.Nodes[].IsCoordinator values get updated. return old coordinator node in response.
2018-03-08 14:18:10 -06:00
Travis Turner
fa4e543e84
send a NodeJoin event on startup for cases where a quick restart has occurred and memberlist is not aware of it
2018-03-08 12:42:24 -06:00
Travis Turner
1cc45b22a2
Change Config.Coordinator from URI to bool
2018-03-08 12:42:24 -06:00
Travis Turner
10ebb6ab11
put GCNotify behind an inerface
2018-02-26 10:30:51 -06:00
Travis Turner
e454473ec7
prevent excessive sendSyce (createView) messages.
2018-02-22 16:02:43 -06:00
Travis Turner
c4f6a6beda
Merge branch 'master' into cluster-resize
2018-02-21 16:23:53 -06:00
Travis Turner
da125e323c
broadcast.SendSync field creation and deletion to all nodes
2018-02-21 14:56:38 -06:00
Travis Turner
ea210cd525
remove extra context import
2018-02-16 11:21:47 -06:00
Travis Turner
6776fa81ef
Merge branch 'master' into cluster-resize-merging
2018-02-16 11:13:40 -06:00
Yuce Tekol
c2d16f44e3
Spread recalculate caches to all nodes. Fixes #1069
2018-02-12 04:12:35 +03:00
Yuce Tekol
f799d98564
Fixes #1092
2018-02-09 17:33:07 +03:00
Travis Turner
86dbbbf393
don't require oldNode in SetCoordinator()
2018-02-02 15:58:51 -06:00
Travis Turner
216ba7a41e
Use NodeID instead of URI for node identification
2018-02-02 15:58:46 -06:00
Travis Turner
9b8d1ad4f9
add CreateViewMessage for broadcaster
2018-01-29 11:22:19 -06:00
Travis Turner
f12527d535
put a mutex around Cluster.State
2018-01-23 16:00:32 -06:00
Travis Turner
c0fab2bcee
Merge branch 'master' into cluster-resize
2018-01-17 12:55:12 -06:00
Travis Turner
3fc2f27710
add some statsd calls to HolderSyncer
2018-01-11 14:57:45 -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
Travis Turner
3631cfc314
Merge pull request #1014 from travisturner/cluster-resize-gossip-config
...
Cluster resize gossip config
2018-01-03 11:20:20 -06:00
Travis Turner
17484fd73e
make sure the holder has opened before merging NodeStatus
2017-12-20 16:42:58 -06:00
Yuce Tekol
a7c76f09ad
Merge pull request #1016 from yuce/990-diagnostics-schema-fields
...
Added BSIFieldCount diagnostics; refactored schema diagnostics
2017-12-20 07:48:10 +03:00
Cody Soyland
8135eca1ca
Merge pull request #1019 from codysoyland/1018-handler-error
...
Close HTTP handler gracefully (Fixes #1018 )
2017-12-19 16:10:56 -06:00
Yuce Tekol
bdf813d7ee
update
2017-12-19 23:59:04 +03:00
Travis Turner
52897421ad
fix comment
2017-12-19 11:07:34 -06:00
Cody Soyland
2345ae0004
Close HTTP handler gracefully ( Fixes #1018 )
2017-12-19 11:01:36 -06:00
Travis Turner
6b3f4d1a64
Merge branch 'master' into cluster-resize
...
Refactored LocalID/ClusterID for use with Topology and Coordinator.
2017-12-18 15:39:50 -06:00
Yuce Tekol
7355f97b62
Added BSIFieldCount diagnostics; refactored schema diagnostics
2017-12-18 18:07:31 +03:00
Yuce Tekol
94360e77e3
Adds CPU and mem info to the diagnostics payload. Implements #988 , #989
2017-12-18 16:22:38 +03:00
Travis Turner
d2d0756f4a
Define default config values for pilosa server in NewConfig rather than
...
flags. Based on work done in #885 .
2017-12-15 15:07:02 -06:00
Yuce Tekol
1448171a2c
Adds local and cluster IDs
2017-12-15 18:12:28 +03:00
Travis Turner
0342da92bb
WIP: add tests for cluster resize
...
This commit adds support for allocating a gossip transport
and a server listener prior to opening server (and cluster).
Doing that allows tests to use a dynamically allocated port
by supplying bind port: 0.
2017-12-12 16:27:47 -06:00
Travis Turner
9667a04cad
Merge branch 'master' into cluster-resize
2017-12-08 17:56:31 -06:00
Travis Turner
cf1e41faf1
Merge branch 'master' into cluster-resize
2017-12-08 15:22:12 -06:00
Travis Turner
637111a76c
Change Broadcaster.SyndSync to send direct via http
...
as opposed to using memberlist's gossip broadcast.
Introduce a Gossiper interface for SendAsync gossip messages.
2017-12-08 09:00:47 -06:00
Michael Baird
21072a665f
refactor same node URI check in SendSync
2017-12-08 08:27:09 -06:00
Michael Baird
04790f70f2
moved the broadcast handler receive message process to the handler ProcessClusterMessage
2017-12-08 08:27:09 -06:00
Travis Turner
0f971f7bc6
Merge pull request #950 from raskle/914-syncblock-maxwrites
...
group the write operations in syncBlock by MaxWritesPerRequest
2017-12-06 14:02:07 -06:00
Travis Turner
c9886b049b
Merge branch 'master' into cluster-resize working branch.
2017-12-04 22:18:57 -06:00
Todd Gruben
f051f7ccea
refactored httpclient handling
2017-12-01 16:00:12 -06:00
Travis Turner
8228ef2382
Add a Cluster.Static override for tests to treat static nodes as
...
Coordinator.
Refactor the Server.joining channel to be in Cluster instead.
2017-11-28 16:40:05 -06:00
Travis Turner
ccdd6262c5
add error logging for non-topology nodeJoin
2017-11-28 12:43:49 -06:00
Travis Turner
013cd0cd95
refactor resize instruction logic to support multi-index. wait to open holder on non-coordinator nodes.
2017-11-27 11:06:03 -06:00