Commit graph

21 commits

Author SHA1 Message Date
Michael Baird
b0f8d5d8f9 Merge remote-tracking branch 'origin/master' into metrics
Conflicts:
	cmd/server.go
	ctl/config.go
2017-05-23 10:07:44 -05:00
Ben Johnson
788386b49a
Implement 'config' CLI command.
Renames `config` to `generate-config` and implements a new `config`
command that generates the configuration file based on the current
state instead of printing a static string.
2017-05-22 09:30:14 -06:00
Michael Baird
ba851accbb fixed test failures 2017-05-01 10:50:54 -05:00
Alan Bernstein
f795fbb116 Merge master 2017-04-25 15:32:01 -05:00
Cody Soyland
92ec0a0cb0 Update glide.lock 2017-04-24 14:25:33 -05:00
Travis
26b524a60e fix some tests and update glide.lock 2017-04-19 11:35:02 -05:00
Travis
b0f1fc7523 Makes Messenger a first-class object under Server (with pointers in Handler and Index).
Primary message interface is the MessageBroker which is an attribute of the Messenger.
MessageBroker implementations:
- Gossip (memberlist)
- Broadcast (uses HTTP, received by existing Handler)
- Static (no-ops)

Changes CacheSize from `int` to `uint32` for consistency with protobuf.
Removes unnecessary dependencies in glide:
- `github.com/aws/aws-sdk-go`
- `golang.org/x/net` (although this gets included by memberlist)

TODO:
- [ ] Add tests around the Messenger and MessageBroker objects.
- [ ] Refactor CreateSliceMessage to work with views.
- [ ] Support propogation of meta data on PATCH calls.

fixing some issues from last rebase
2017-04-19 10:33:26 -05:00
Travis
7c2f6a9bae adds a basic gossip implementation using hashicorp/memberlist
Changes Gossiper to NodeSet.
Adds StaticNodeSet (for testing) and GossipNodeSet (for memberlist) implementations.
Changes NodeSet interface to return a pilosa-specific generic instead of `NodeSet interface`.
Removes NumMembers from interface (which is specific to memberlist).

Implements a Messenger interface with which to send inter-node messages via NodeSet.
The Pilosa implementation occurs in the GossipNodeSet.

Implements the Messenger as an object on Server, Handler, and Index.

Uses HealthStatus constants.
Removes commented-out code.

for gossip, make sure to bind to both host and port, and advertise those as well

adjust messenger to work with the db schema logic

add dependencies: hashicorp/memberlist, golang.org/x/sync
add dependency: golang.org/x/net

Uses `errgroup` to handle errors from broadcast messages.
Marshals message one time instead of once for every node.
Adds error handling for some errors that were being swallowed.
2017-04-19 10:13:38 -05:00
Alan Bernstein
cbf0fddc54 Remove statik from glide.lock 2017-04-18 15:36:12 -05:00
Cody Soyland
4397e13a82 Use gorilla mux instead of big switch statement 2017-04-18 14:12:59 -05:00
Matt Jaffee
02c3c6d3e6 use cobra/viper and move cmd/pilosa to server subcommand 2017-03-03 13:03:57 -06:00
Matt Jaffee
33d2ecf6b7 remove unused vendor stuff 2017-02-24 15:51:02 -06:00
Travis
d4669f0994 Adds the github.com/aws/aws-sdk-go dependancy used in /bench 2017-01-12 14:04:08 -06:00
jaffee
1ed34ad439 Merge branch 'master' into benchmark-runner 2017-01-09 16:55:03 -06:00
Cody Soyland
ac6eb21a0f Add github.com/golang/protobuf package to Glide
Import was added in 3d0dada6fb.
2017-01-05 14:23:51 -06:00
jaffee
99f234a1e2 add run-uuid to bspawn and thread through bagent and create
also add forgotten crypto/ssh dependency to vendor which adds an unfortunate
number of new files for all of golang.org/x/crypto
2016-12-20 14:03:24 -06:00
jaffee
8bfa719484 copy errgroup code to bench and remove giant blob of dependencies 2016-12-01 16:58:56 -07:00
Cody Soyland
fbf85a07d6 Merge branch 'master' into benchmark-runner 2016-11-29 16:10:56 -06:00
Cody Soyland
27f49c2479 Add missing dependency golang.org/x/sync/errgroup 2016-11-29 13:37:27 -06:00
Cody Soyland
768c9bd3d3 Switch to Glide.sh for dependency management (Fixes #145) 2016-11-29 13:35:23 -06:00
Cody Soyland
917cd86185 Switch to Glide.sh for dependency management (Fixes #145) 2016-11-29 12:36:58 -06:00