Commit graph

182 commits

Author SHA1 Message Date
Matthew Jaffee
876ed56e30
move pilosa.Config to pilosa/server.Config
step 1 of #1203

The Config object is really just a specification of the options to pilosa
server, so it makes sense to have it in that package.
2018-04-19 14:51:42 -05:00
Travis Turner
e7151eb2a8
Remove Index.TimeQuantum 2018-04-18 08:17:26 -05:00
Travis Turner
0a8d573fb3
WIP: Remove SecurityManager. Implement api restrictions in api package. 2018-04-16 17:12:28 -05:00
Matthew Jaffee
7233597f35
remove DefaultConfig global (only used once). Fix data-dir comment 2018-04-15 17:20:14 -05:00
Matthew Jaffee
3f303d1098
remove global defaults from config.go
these were occaisionally referenced elsewhere in the codebase - in all but one
case, there were workarounds that are actually better I think.

In the one case there wasn't I created a single top level DefaultConfig object
which is instantiated with all the default values and can be referred to if
necessary.

There was a bug in fragment.go with the way MaxWritesPerRequest was treated if
it was 0. Elsewhere, 0 meant no limit, but here, it would have caused a division
by 0.

Changed the default metrics provider from "nop" to "none", although "nop" will
still work. Previously, any value other than "statsd" or "expvar" was treated as
"nop", but I've changed this behavior to return an error if an invalid string is
provided. I think this is better behavior, because in the case that someone
bothered to change the default, they were probably interested in actually
getting stats, and might be annoyed when it silently failed.
2018-04-12 19:52:48 -05:00
Matthew Jaffee
07610560df
Merge branch 'master' into 1151-http-refactor 2018-04-10 08:10:25 -05:00
Travis Turner
1764d5a9bf
Merge pull request #1180 from travisturner/remove-rowcol-labels
Remove rowcol labels
2018-04-03 22:37:59 -05:00
Matthew Jaffee
be4965d962
fixup logger, handler.FileSystem 2018-04-03 16:09:11 -07:00
Yuce Tekol
8336784d57
More API updates; removed Cluster, Holder, etc from Handler 2018-04-03 15:01:36 -07:00
Yuce Tekol
2ebc1914be
More API functions 2018-04-03 14:34:39 -07:00
Yuce Tekol
6c3f3ac0f0
Added API struct; moved query logic to API 2018-04-03 13:41:15 -07:00
Travis Turner
fd8040e699
remove LogOutput and instead close any logger that implements io.Closer 2018-03-27 08:40:05 -05:00
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