No description
Find a file
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
cmd/pilosa Refactor config & service 2015-08-12 15:34:23 -06:00
core Refactor config & service 2015-08-12 15:34:23 -06:00
cruncher Remove commented code 2015-08-07 17:29:57 -05:00
db Refactor config & service 2015-08-12 15:34:23 -06:00
dispatch Refactor config & service 2015-08-12 15:34:23 -06:00
executor Refactor config & service 2015-08-12 15:34:23 -06:00
hold Remove commented code 2015-08-07 17:29:57 -05:00
index Refactor config & service 2015-08-12 15:34:23 -06:00
interfaces Update import path 2015-08-05 22:50:38 -06:00
query Remove commented code 2015-08-07 17:29:57 -05:00
transport Refactor config & service 2015-08-12 15:34:23 -06:00
util Refactor config & service 2015-08-12 15:34:23 -06:00
.gitignore Update import path 2015-08-05 22:50:38 -06:00
default.yaml Refactor config & service 2015-08-12 15:34:23 -06:00
deps.json Refactor config & service 2015-08-12 15:34:23 -06:00
README.md Update import path 2015-08-05 22:50:38 -06:00

pilosa

Pilosa is a bitmap index database.

Getting Started

To download the source, run go get:

$ go get github.com/umbel/pilosa

You can update the dependencies to specific versions using depman:

$ go get github.com/vube/depman

And then run depman from the project directory:

$ cd $GOPATH/src/github.com/umbel/pilosa
$ depman

Now you can install the pilosa binary:

$ go install github.com/umbel/pilosa/...

Pilosa requires that etcd is running locally for coordinating the cluster:

# In another terminal window
$ etcd

Now run pilosa with the default configuration:

PILOSA_CONFIG=default.yaml pilosa

This setup assumes that cassandra and etcd are running locally and that cassandra keyspace pilosa has been setup as describe in the file index/storage_cass.go.

If you don't want backend storage you can comment out storage_backend in the yaml file and it will just operate out of memory.