Commit graph

119 commits

Author SHA1 Message Date
Michael Baird
4a051900c0 Add sampling rate to StatsD functions, and fix data dog logging 2017-05-16 10:35:49 -05:00
Michael Baird
bd44949cb5 Merge remote-tracking branch 'origin/master' into metrics
Conflicts:
	config.go
	executor_test.go
	server/server.go
2017-05-09 11:31:14 -05:00
Michael Baird
bf6ed942f0 Merge pull request #8 from alanbernstein/stats
Stats
2017-05-09 11:15:23 -05:00
Alan Bernstein
4bb31d071e Change db to index 2017-05-09 11:07:09 -05:00
Ben Johnson
e3d6f96657
Add max-writes-per-requests limit.
A configurable limit has been added to restrict the number of
mutating calls in a `pql.Query`. This is to prevents requests from
timing out from large queries.

The default is set to 5000 writes per request and is configurable
through the configuration file and the command line flags.
2017-05-03 08:53:20 -06:00
Matt Jaffee
c828953702 change the default num and try to fix some tests 2017-05-01 16:58:45 -05:00
Michael Baird
ee159b455d Merge remote-tracking branch 'origin/master' into metrics
Conflicts:
	.gitignore
	cluster.go
	frame.go
	glide.lock
	index.go
2017-05-01 10:41:04 -05:00
alanbernstein
ae7b2615fe Merge branch 'master' into webui-updates 2017-04-29 18:57:13 -05:00
Alan Bernstein
75f2ff8cf0 Show statik error in browser 2017-04-29 16:22:26 -05:00
Alan Bernstein
2c3e35fa90 Don't panic on statik failure 2017-04-29 10:16:58 -05:00
Cody Soyland
3996b56b88 Apply Apache License 2.0 2017-04-28 14:22:03 -05:00
Linh Vo
e67c9c051c move statsd count to handler 2017-04-27 11:29:33 -05:00
Michael Baird
08590be4c3 Merge pull request #490 from raskle/485-godocs
godoc cleanup
2017-04-26 15:37:12 -05:00
Yuce Tekol
d2b2e258df
Renamed /nodes to /hosts 2017-04-26 02:19:17 +03:00
Michael Baird
d2a7869142 comment cleanup 2017-04-25 16:40:39 -05:00
Alan Bernstein
f795fbb116 Merge master 2017-04-25 15:32:01 -05:00
Michael Baird
3512dd4549 missing comments 2017-04-25 14:15:02 -05:00
Michael Baird
684a8afa23 missed these db to index changes in the merge conflicts 2017-04-25 11:48:20 -05:00
Michael Baird
e699c55700 fixed conflicts from the db index change
Conflicts:
	cluster.go
	executor_test.go
	handler_test.go
	server.go
2017-04-25 11:47:29 -05:00
Michael Baird
0c9f652ffb missing comments from merge 2017-04-24 22:38:12 -05:00
Michael Baird
5a8c165c53 Merge remote-tracking branch 'origin/master' into metrics
Conflicts:
	cache.go
	cluster.go
	db.go
	executor.go
	fragment.go
	frame.go
	gossip/gossip.go
	handler.go
	index.go
	server.go
	server/server.go
2017-04-24 16:35:25 -05:00
Alan Bernstein
5413597998 Move LongQueryTime option to cluster section of config file 2017-04-24 15:20:08 -05:00
Travis
74bf4731f5
WIP: Implement NodeState as an attribute of *Node
NodeState is shared among nodes in the cluster (via gossip
in a gossip implementation) and cached locally in Cluster.Nodes
in order to be available to the /status endpoint.
2017-04-24 12:33:43 -05:00
Alan Bernstein
615c830ecc Move LongQueryTime to Cluster 2017-04-24 11:31:50 -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
2cacff8e09
Rename Index to Holder
Rename `index.go` to `holder.go` and `index_test.go` to `holder_test.go`
2017-04-23 15:59:20 -05:00
Ben Johnson
d34687121f
Rename bitmap/profile to row/column. 2017-04-21 21:23:24 -06:00
Alan Bernstein
6a162c4be2 Support LongQueryTime as config option 2017-04-21 18:50:25 -05:00
Michael Baird
baafc7792a Merge remote-tracking branch 'origin/master' into metrics 2017-04-21 15:36:40 -05:00
Alan Bernstein
a1ba58398d Improve comments 2017-04-21 15:10:16 -05:00
Alan Bernstein
3b415ef3fd Simplify stats naming 2017-04-21 15:01:31 -05:00
Travis Turner
ea663b980f Merge pull request #435 from travisturner/messenger-rebase
Messenger rebase
2017-04-21 14:04:27 -05:00
Linh Vo
e1404cf330 change variable name of getValidOptions 2017-04-21 11:42:31 -05:00
Linh Vo
7e935dd90a rewrite custom UnmarshalJSON for postDBRequest and postFrameRequest 2017-04-21 11:37:32 -05:00
Cody Soyland
41c900c9c4 Add WIP pared-down webui/console prototype 2017-04-21 10:52:44 -05:00
Alan Bernstein
83e13bec74 Move version vars to pilosa package 2017-04-21 10:14:21 -05:00
Alan Bernstein
222206fc3f Add stats reporting in handler 2017-04-21 10:10:09 -05:00
Linh Vo
9198dfab59 inverseEnabled check for bool type 2017-04-20 22:11:01 -05:00
Linh Vo
9c02edc4e3 #457 rewrite validateOptions, update frame options 2017-04-20 17:28:22 -05:00
Michael Baird
940b62335c move the StateHandler interface from the Gossip package back to Pilosa and us this interface for the Handler to access the LocalState 2017-04-20 16:52:05 -05:00
Michael Baird
3f43b0d496 Merge remote-tracking branch 'travis/messenger-rebase' into metrics
# Conflicts:
#	server.go
2017-04-20 16:00:17 -05:00
Michael Baird
539b134e10 Store the node state information in Cluster
Access the overall cluster state info via the /status endpoint
2017-04-20 14:23:24 -05:00
Travis
95bd4913c8
adjusted DBOptions/FrameOptions logic and removed some unused tests 2017-04-20 10:41:17 -05:00
Travis
d2e68b2980
adjust some handler comments. remove debugging line 2017-04-19 17:08:10 -05:00
Travis
5a80685052
add support for CreateDB and CreateFrame without POST data (i.e. use defaults) 2017-04-19 16:59:56 -05:00
Travis
dcaf7617de
changed some json tag names to Lower Camel Case to be consistent with the rest 2017-04-19 14:01:46 -05:00
Travis
26b524a60e fix some tests and update glide.lock 2017-04-19 11:35:02 -05:00
Matt Jaffee
2d139d299c remove server from handler - not used anymore 2017-04-19 10:36:27 -05:00
Matt Jaffee
bc8f7f702f add BroadcastReceiver and collapse Gossip structs into one
GossipNodeSet and GossipBroadcaster had a lot of cross dependency - I made them
the same object and had it implement all three interfaces (NodeSet, Broadcaster,
BroadcastReceiver).

I implmented an HTTPBroadcastReceiver which runs as as separate server.
BroadcastReceiver is a separate entity on the pilosa.Server object and is
started separately from broadcaster and nodeset. In the case of GossipNodeSet,
the broadcast receiver must be started before Open()ing the Nodeset, because it
doesn't actually start listening until Open() is called, but it needs the
handler set up before then.

server/server.go was heavily refactored to configure the new structs and
interfaces on the pilosa.Server object.
2017-04-19 10:36:27 -05:00
Matt Jaffee
32d07fc9e1 rename MessageBroker -> Broadcaster 2017-04-19 10:34:52 -05:00