Travis Turner
9db359d34a
GoRename Frame to Field in holder.go
2018-06-05 22:36:19 -05:00
Travis Turner
3531c128c4
GoRename Frame to Field in index.go
2018-06-05 22:33:48 -05:00
Travis Turner
1d3c4d6fcb
first pass at GoRename Frame to Field in frame.go
2018-06-05 17:52:22 -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
Travis Turner
54d94f1aca
rename CreateField to createBSIGroup
2018-06-04 17:33:55 -05:00
Cody Soyland
77a5c6f811
Merge branch 'master' into cors-support
2018-05-29 08:18:26 -05:00
Matt Jaffee
47f7beaecc
WIP removing inverse
2018-05-25 17:18:38 -05:00
Cody Soyland
1a9beb0916
Add CORS support to handler.
2018-05-24 08:42:34 -05:00
Cody Soyland
422d901e44
Close HTTP handler gracefully ( Fixes #1018 )
...
An earlier version of this patch (PR #1019 ) was erroneously removed during a merge.
2018-05-17 15:47:56 -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
Travis Turner
43ec69d08b
API.URI was not being used. removed it.
2018-05-09 09:32:18 -05:00
Yuce Tekol
24c9699432
Merge pull request #1242 from yuce/dont-create-tilde-directory-when-running-tests
...
Make sure ~ is expanded in NewServer; BroadcastReceiver uses temp path
2018-05-09 09:53:02 +03:00
Yuce Tekol
0244f4b51d
Added dataDir field to Server
2018-05-09 01:27:42 +03:00
Matt Jaffee
0d3df71e37
add URI argument to InternalClient.SendMessage
...
passing values through context is error prone and usually bad practice.
2018-05-07 12:40:37 -07:00
Cody Soyland
85f90ac8fc
Log time/version to startup log ( Fixes #391 )
2018-05-03 16:11:43 -05:00
Yuce Tekol
beaa69a7bd
Made expandDirName generic.
2018-05-03 00:07:56 +03:00
Yuce Tekol
806437bd23
Make sure ~ is expanded in NewServer; BroadcastReceiver uses temp path
2018-05-02 17:07:17 +03:00
Matthew Jaffee
57ac2f40aa
fix nil client bug in monitorAntiEntropy (and test)
...
also fix bug where broadcast_test tried to listen on localhost:10101
2018-04-28 09:12:59 -05:00
Yuce Tekol
75bd93d895
Fixes crash due to server.diagnostics.server not set
2018-04-27 15:11:15 +03:00
Matthew Jaffee
f9ff20689a
remove holder.Peek, combine with HasData, move server logic
...
Server initializing happens more in NewServer than Open now - expecting to
continue this trend. goal was to remove remoteClient from Server (since it has a
defaultClient) as well, but we'll have to refactor the client usage in fragment
and frame first.
2018-04-24 08:44:58 -05:00
Matthew Jaffee
9f1720f01d
unexport stuff in pilosa.Server
...
refactor gossip.NewGossipMemberset to not take Server
2018-04-23 15:12:23 -05:00
Matthew Jaffee
28acc29a10
refactoring pilosa/server
...
trying to separate internal an external concerns in pilosa.Server - it should
handle Cluster, Holder, etc. while pilosa/server handles things with external
deps - e.g. Logger, Stats, Handler, etc. Using functional options in
pilosa.Server now.
2018-04-23 13:35:39 -05:00
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