Commit graph

70 commits

Author SHA1 Message Date
Ben Johnson
7048aa519b clean up ids 2015-09-03 15:50:08 -06:00
Ben Johnson
45fd4fc992 flatten util into pilosa
This commit moves ID-related types and functions to the top
level package and moves remaining statsd wrapper into a `statsd`
package.
2015-09-03 14:43:34 -06:00
Ben Johnson
306249c293 refactor storage
This commit moves individual storage engines to their own packages.
They can be registered and instantiated by a string name.
2015-08-30 16:49:32 -06:00
Ben Johnson
2f1e3b6078 Refactor config & service
This commit refactors the config into a `main.Config` object instead
of a global singleton. The `core.Service` is also refactored into
the `main` package and individual pieces of the service are wired
together by the `pilosa` binary.

These two changes are required to begin to decouple packages from
one another and allow them to be individually unit tested. Previously
most top-level objects in the system could access any other top-level
object through the `core.Service` which effectively made `Service` a
singleton in the system. Each top-level object now has inline interfaces
for their dependencies so that can be set at runtime by the `main`
package or can be mocked by a test package.
2015-08-12 15:34:23 -06:00
travisturner
33dd34107a Remove commented code
Some commented test code was left in case these are tests that
need to be implemented.
2015-08-07 17:29:57 -05:00
Ben Johnson
b06ecf3320 Update import path
This commit updates the import path from:

```
pilosa/*
```

to:

```
github.com/umbel/pilosa/*
```

This follows standard Go convention and makes the project "go gettable".

The README was also updated to reflect the changes.
2015-08-05 22:50:38 -06:00
Todd Gruben
3d87b3bfbe more balanced node creation 2015-07-23 14:58:39 +00:00
Todd Gruben
58247dabc5 removed debug in load; fixed etcd processid compare 2015-06-10 19:20:55 +00:00
Todd Gruben
6bd377ebe2 updated etcd client 2015-03-31 18:32:21 +00:00
Todd Gruben
8ce29cc316 added back in hashring 2015-03-20 03:00:03 +00:00
Todd Gruben
d31d289520 protection during fragment creation 2015-03-18 19:29:39 +00:00
Todd Gruben
9cc003683e added some more logging on fragment creation 2015-03-16 20:39:38 +00:00
Todd Gruben
7a40a594c2 sanity check for fragment creation 2015-03-11 15:11:30 +00:00
Todd Gruben
02a0ee73cd added nil check to GetProcess 2015-03-11 03:27:34 +00:00
Todd Gruben
7b9472bffe more logging and stats updats 2015-02-10 11:41:36 +00:00
Todd Gruben
377d850534 added new logging setup 2015-02-05 21:09:07 +00:00
Todd Gruben
c6e3788a20 first pass at remote setbit, doesn't work 2015-01-21 20:28:07 +00:00
travisturner
aef7799dbb remove fragments hashring from FrameSliceIntersect 2015-01-19 09:29:17 -06:00
Todd Gruben
0225f6e798 added more logging and a panic detector to try and figure out why process dieing 2014-11-26 10:27:53 +00:00
travisturner
62a9961a15 add parser/planner support for the index.Difference method 2014-07-25 16:36:02 -05:00
Todd Gruben
48d6c56533 etcd lock code 2014-07-23 15:03:43 -05:00
Todd Gruben
210236532f added debugging 2014-06-25 22:12:16 -05:00
Todd Gruben
474eb8eb96 changed to lock to just db/slice 2014-06-25 22:04:14 -05:00
Todd Gruben
e97c910158 again 2014-06-26 02:26:17 +00:00
Todd Gruben
f4f3193ae7 more etcd cleanup 2014-06-25 21:19:59 -05:00
Todd Gruben
98bb92ecf4 check for bad etcd entry 2014-06-25 19:35:48 -05:00
Todd Gruben
819b9ef655 fix bad process 2014-06-25 19:21:48 -05:00
Todd Gruben
b3e7e1eb2c added a bit more logging 2014-06-25 18:05:14 -05:00
travisturner
f0a3ad15de adjusted the error handling around auto fragment creation logic 2014-06-25 11:27:04 -05:00
Todd Gruben
ce61d00ed7 merge 2014-06-24 09:57:31 -05:00
travisturner
fc1f4ab176 set single default supported_frames ("default") 2014-06-24 09:09:41 -05:00
Todd Gruben
009128078a core/etcd.go 2014-06-24 08:03:06 -05:00
Todd Gruben
6b8428f64c adusted cas batch; removed panics 2014-06-24 07:55:43 -05:00
Todd Gruben
515f6ce181 more trying 2014-06-23 18:58:46 -05:00
Todd Gruben
cfd93d7753 bad check 2014-06-23 18:01:43 -05:00
Todd Gruben
0c2a24d8d8 protect invalid guid in etcd 2014-06-23 17:51:07 -05:00
Todd Gruben
26b64288fc turned autocreate back on 2014-06-23 15:46:21 -05:00
Todd Gruben
4520ab2a35 disabled autocreae again 2014-06-23 14:22:59 -05:00
Todd Gruben
3c9a45a0a7 adjusted cassandra config; locked down fragment setup and renable autoaloc 2014-06-19 16:36:39 -05:00
Todd Gruben
574b700634 disable alloc 2014-06-19 14:18:52 -05:00
Todd Gruben
6e5ad5dbc8 more verbose logging 2014-06-19 14:00:53 -05:00
Todd Gruben
27ab4f7c0b ok 2014-06-19 13:23:39 -05:00
Todd Gruben
784acc982f added docs to code 2014-06-18 21:25:56 -05:00
Todd Gruben
8ee3b7eddc changed the sort order 2014-06-18 21:23:41 -05:00
Todd Gruben
1b89d79c0a auto allocate .001 2014-06-18 15:09:31 -05:00
Todd Gruben
4a2c3e73d0 converted to main cql driver 2014-06-17 13:06:56 -05:00
Todd Gruben
a773c7959f added plug point for fragment creation 2014-06-17 12:21:11 -05:00
Todd Gruben
35f718bf33 first pass at auto frament allocation 2014-06-16 16:00:59 -05:00
Cody Soyland
ff15b64e9f Make it work if the etcd is empty 2014-04-07 12:44:54 -05:00
travisturner
0679ed17a2 convert UUID to use "tux21b.org/v1/gocql/uuid" 2014-01-03 17:47:22 -06:00