tgruben
2fc7abd72e
Dataframe ( #2241 )
...
* Dataframe
(cherry picked from commit 2f1beaf119 )
2022-12-12 09:01:20 -08:00
Fletcher Haynes
da9b57bd45
Updated dependency paths to reflect new repo location
2022-09-06 09:39:22 -07:00
Fletcher Haynes
eb06bb50ae
Updated code to latest version for open-sourcing.
2022-09-02 13:23:39 -07:00
Cody Soyland
0b86bbb4f5
Fix linter issues: gochecknoinits
2018-07-18 11:58:27 -05:00
Matt Jaffee
bbb93abd57
remove lots of unused code
2018-07-05 15:35:32 -05:00
Matt Jaffee
6309d3b7f7
get gossip using serializer stuff, remove proto and internal
2018-07-05 12:32:49 -05:00
Matt Jaffee
2cec75e399
add proto encoding subpackage and use for send and receive message
2018-07-05 12:00:42 -05:00
Matt Jaffee
1b2aaa26bf
export NodeEvent
2018-07-05 09:26:58 -05:00
Matt Jaffee
6417f468bb
wip implement more... still quite broken
2018-07-04 16:50:20 -05:00
Matt Jaffee
4ef8fff9b6
WIP, broken. refactoring to isolate intneral structs and define core structs
2018-07-04 07:29:16 -05:00
Matt Jaffee
f6aef32093
make gossip's interface to Pilosa the API struct rather than effectively being pilosa.Server
2018-07-03 12:58:18 -05:00
Matt Jaffee
9ea300da20
unexport broadcaster
2018-07-02 08:34:58 -05:00
Matt Jaffee
2e15db7ce0
Merge branch 'develop' into more-gossip-stuff
2018-06-29 06:49:13 -05:00
Matt Jaffee
91454a5cd0
collapse *handler interfaces into MemberServer
...
gossip now takes a single "MemberServer" which is implemented by server. Several
interfaces have been removed.
MemberServer contains ReceiveMessage which is a superset of the functionality of
ReceiveEvent, LocalStatus and HandleRemoteStatus are all that's left of
StatusHandler - ClusterStatus was not used and is gone. The Node() method is
actually a subset of LocalStatus() functionality. Maybe we should break up
localstatus or remove Node... not sure.
Remove BroadcastReceiver test which was a bit silly.
NodeEvent can now be unexported, and is.
2018-06-28 17:16:08 -05:00
Travis Turner
5dd7a9556a
rename slice to shard
2018-06-28 14:07:07 -05:00
Matt Jaffee
5e48023565
remove some unused interfaces and implementations from broadcast.go
2018-06-27 14:48:07 -05:00
Matt Jaffee
bcb6942c80
continue simplifying memberset and pilosa setup
...
since the gossip MemberSet has access to Server, it wasn't really necessary to
pass it a Node object when calling Open on it from Cluster. The end goal is to
have it be removed from Cluster entirely, and have it be Opened externally, and
this is a step toward that.
Exposing Node method on Server doesn't really expose any more than was already
there as the same info can be gotten from LocalStatus with a bit of type
casting. I figured adding the method was a little cleaner, and we could collapse
all the functionality when the dust has settled.
The Cluster.open method has been broken into two parts - one of which happens
earlier (at NewServer time), and the other will eventually just be "waiting to
make sure we've joined the cluster". Right now it's calling Memberset.Open, and
then waiting to make sure the cluster has been joined.
2018-06-26 14:36:05 -05:00
Travis Turner
7d91261968
un-export some package level constants
2018-06-13 17:18:52 -05:00
Travis Turner
cb7487e34d
change all instances of internal Frame to Field
2018-06-05 23:24:24 -05:00
Travis Turner
50f8ea3921
remove CreateField and DeleteField from API
2018-06-05 13:58:28 -05:00
Travis Turner
a6ae39d0b0
remove cases of Field from frame.go
2018-06-04 17:33:55 -05:00
Matt Jaffee
616545cd5c
remove input definition, add install-stringer to Makefile
...
also removes one line of unreachable code in cluster.go (unrelated)
2018-05-14 17:14:20 -05:00
Alan Bernstein
0ba14600da
Wrap a few more errors
2018-05-10 12:08:46 -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
1233226aa0
remove Join method from StaticMemberSet struct
2018-03-06 12:18:44 -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
Yuce Tekol
c2d16f44e3
Spread recalculate caches to all nodes. Fixes #1069
2018-02-12 04:12:35 +03: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
9667a04cad
Merge branch 'master' into cluster-resize
2017-12-08 17:56:31 -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
29bd0319dc
Create a SendSync Interface for the Broadcast handler
2017-12-08 08:22:59 -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
426992bc59
add set-coordinator endpoint
2017-11-15 09:13:52 -06: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
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
Michael Baird
ff3190e0d3
Broadcast and handle the DeleteViewMessage
2017-08-22 11:39:00 -05:00
Michael Baird
428b94dd05
Broadcast Delete InputDefinition Messages and handle on remote nodes.
2017-06-16 14:06:46 -05:00
Michael Baird
1db97b9312
CreateInputDefinitionMessage now contains the definition and not just the name.
2017-06-14 14:12:07 -05:00
Cody Soyland
3996b56b88
Apply Apache License 2.0
2017-04-28 14:22:03 -05:00
Michael Baird
2f876c46a6
Broadcaster comment corrections
2017-04-25 22:25:10 -05:00
Michael Baird
d2a7869142
comment cleanup
2017-04-25 16:40:39 -05:00
Michael Baird
fe0e8a3c5b
fixed enum comments
2017-04-25 15:27:10 -05:00
Michael Baird
35c1648c75
missing comments
2017-04-25 15:12:44 -05:00
Michael Baird
acc4b022d7
added Join method to Static Nodeset so that Status is calculated with the local node
2017-04-24 13:57:35 -05:00
Travis
2ad322c2c7
Rename DB to Index
...
Rename `db.go` to `index.go` and `db_test.go` to `index_test.go`
2017-04-23 21:49:27 -05:00
Travis
b4a69be751
Add support for Node.InternalHost.
...
This was required for the HTTPBroadcaster to run locally on different InternalPorts.
2017-04-19 10:37:00 -05:00