Travis Turner
5c52e48b12
change NewStandardLogger() to only take an io.Writer
2018-03-27 10:30:41 -05:00
Travis Turner
36ce12da59
This commit adds a Close() method to the pilosa.Logger interface,
...
and it moves the file handling (open/close) out of the main Command and
into the interface implementation. The Logger implementations both have
a `Logger()` method which returns their internal logger (`*log.Logger`).
This is because the gossip setup (memberlist) needs a `*log.Logger` for
its configuration.
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
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
Travis Turner
1cc45b22a2
Change Config.Coordinator from URI to bool
2018-03-08 12:42:24 -06:00
Travis Turner
1233226aa0
remove Join method from StaticMemberSet struct
2018-03-06 12:18:44 -06:00
Travis Turner
c3f25e6d2c
Merge pull request #1143 from travisturner/scheme-in-bind-addr
...
handle the scheme correctly in config.Bind
2018-02-23 14:20:59 -06:00
Travis Turner
3d1538d53c
handle the scheme correctly in config.Bind
2018-02-23 10:48:55 -06:00
Cody Soyland
a23fe86839
Convert gossip seed string to slice
2018-02-22 13:14:45 -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
Travis Turner
1085be6582
fix bug in NewServerCluster where each host was its own coordinator
2018-02-08 15:11:51 -06:00
Travis Turner
9085c03ce8
Changes configuration cluster.type (string) to cluster.disabled (bool)
2018-02-08 12:40:46 -06:00
Travis Turner
2d5daaf78d
Merge branch 'master' into cluster-resize
2018-02-06 10:06:15 -06:00
Travis Turner
668689e119
ensure that the license is prepended to all source files
2018-02-05 16:35:28 -06:00
Cody Soyland
6756d97089
Enable diagnostics via build constraint to prevent from running in tests
2018-02-02 17:32:14 -06:00
Travis Turner
216ba7a41e
Use NodeID instead of URI for node identification
2018-02-02 15:58:46 -06:00
Travis Turner
0cb8b77640
fix potential race condition: reading from a nil channel
2018-01-23 16:32:32 -06:00
Travis Turner
f12527d535
put a mutex around Cluster.State
2018-01-23 16:00:32 -06:00
Travis Turner
1b0fcb0e5a
move cluster Main test helpers to the test package
2018-01-23 12:38:14 -06:00
Travis Turner
d64a107ddd
remove deprecated MustNewRunningServer
2018-01-17 13:26:20 -06:00
Travis Turner
c0fab2bcee
Merge branch 'master' into cluster-resize
2018-01-17 12:55:12 -06:00
Yuce Tekol
be24428367
Uses NewServerCluster method in tests
2018-01-17 14:43:58 +03:00
Matthew Jaffee
5799c10cd1
rename openPort, and some small refactors
2018-01-16 09:41:03 -06:00
Matthew Jaffee
673a290255
make diagnostics false in cluster test
2018-01-15 10:40:36 -06:00
Matthew Jaffee
0ac8648ea9
add NewServerCluster(size int) method to pilosa/test
2018-01-12 16:29:32 -06:00
Matthew Jaffee
e72d596ad6
Merge pull request #923 from jaffee/test-helpers
...
add test helper for starting a new pilosa instance
2017-12-29 16:46:48 -06:00
Travis Turner
c9886b049b
Merge branch 'master' into cluster-resize working branch.
2017-12-04 22:18:57 -06:00
Travis Turner
5aa905b9a1
Merge pull request #935 from travisturner/cluster-resize-test-setvalue
...
add SetFieldValue() method to TestCluster and use in tests
2017-12-04 17:31:49 -06:00
Todd Gruben
e7d64c4f48
limit httpclient instances on executor tests
2017-12-04 12:17:41 -06:00
Todd Gruben
f051f7ccea
refactored httpclient handling
2017-12-01 16:00:12 -06:00
Travis Turner
bd511dae80
ensure that holder opens before node is deemed ready
2017-11-27 11:06:03 -06:00
Travis Turner
a13db570cc
WIP: Wait for nodeState on Holder.Open().
...
Implement prefect in Cluster so a node can start http listener in a
restricted mode.
Adjust tests; particularly start test.Holder in state Normal.
TODO:
- [ ] fix test TestMain_SendReceiveMessage
- [ ] add additional tests for `nodeState`
2017-11-27 11:06:03 -06:00
Travis Turner
212628b220
adjust tests to include Cluster.ListenForJoins()
2017-11-10 11:38:16 -06:00
Travis Turner
e641aa1d8a
Merge branch 'master' into 'cluster-resize'
2017-11-07 15:00:11 -06:00
Travis Turner
7e797efdc2
Allow CacheType to be set for a RangeEnabled frame (to apply to the standard frame)
2017-11-06 14:32:20 -06:00
Travis Turner
0d5a2e7bfd
add SetFieldValue() method to TestCluster and use in tests
2017-11-06 10:51:13 -06:00
Travis Turner
c7c1be6813
change read lock to write lock
2017-11-03 17:43:05 -05:00
Travis Turner
73b9d9fd85
Add Cluster resize tests.
...
Consolidate schema creation into Holder.ApplySchema.
Add view names to proto schema.
2017-11-03 17:22:39 -05:00
Matthew Jaffee
05254ad11e
add test helper for starting a new pilosa instance
...
Pilosa runs on ephemeral ports with temporrary storage.
2017-11-01 13:21:06 -05:00
Travis Turner
ed7dcdcdef
rename NodeState to ClusterState
2017-10-30 13:09:27 -05:00
Travis Turner
f4b0729458
Rename structs and funcs.
...
NodeSet -> MemberSet
URISet -> NodeSet
AddNode -> AddNodeBasicSorted
AddHost -> AddNode
2017-10-30 13:03:55 -05:00
Travis Turner
deed9adfe4
Fix existing tests
2017-10-25 11:53:11 -05:00
Travis Turner
a8871ada6a
Convert Host to URI.
...
Fix all compile errors.
2017-10-25 11:52:55 -05:00
Travis
f1e3ac90d4
Determine cluster membership via gossip.
...
Handle resize cluster events.
Add Toplogy support.
Refactor FrameOptions.
Add tests.
2017-10-25 00:27:30 -05:00
Yuce Tekol
66650ec1f7
NewExecutor doesn't return an error; renamed NewClient to NewInternalHTTPClient
2017-10-18 17:38:20 +03:00
Yuce Tekol
838d56011c
Renamed Client to InternalHTTPClient
2017-10-17 16:04:42 +03:00
Yuce Tekol
48c0dbaee7
Initial client refactoring
2017-10-17 11:35:01 +03:00
Yuce Tekol
e223ec3f9a
Rename Host -> URI
2017-10-12 15:49:34 +03:00