aresdb

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

README

AresDB

AresDB is a GPU-based analytics engine with storage and query capabilities. The goal of AresDB is to develop a real-time analytics system with fresh data and interactive response time at a low cost. This repo contains the source code of AresDB and debug UI.

AresDB requires the CUDA Toolkit. Please ensure you read, acknowledge, and accept the CUDA End User License Agreement.

Getting started

To get AresDB:

git clone git@github.com:uber/AresDB.git $GOPATH/src/github.com/uber/AresDB.git

NVIDIA Driver and CUDA Setup

AresDB needs NVIDIA driver version >= 390.48 and CUDA version 9.1.

Environment Variables

Run the following to make sure the following environment variables are correctly set:

export PATH=/path/to/cuda/bin:${PATH}
export LD_LIBRARY_PATH=/path/to/cuda/lib64:/path/to/aresdb/lib:${LD_LIBRARY_PATH}

Language Requirements

Building and running AresDB requires:

  • golang 1.9+
  • C++ compiler that support c++11
  • nvcc version 9.1

Build

The following dependencies need to be installed before building the binary.

glide

We use glide to manage Go dependencies. Please make sure glide is in your PATH before you attempt to build.

Local Test

AresDB is written in C++ (query engine) and Golang (mem store, disk store, disk store and other query components). Because of this, we break testing into two parts:

Test Golang Code
Ginkgo

We use Ginkgo as the test framework for running the Golang unit test and coverage. Install Ginkgo first and run

make test
Test C++ Code
google-test

We use google-test as the test framework to test C++ code. Install google-test and set the environment variable, GTEST_ROOT, to the installed location.

After you have installed properly, run

make test-cuda

Run AresDB Server

The following command will start an AresDB server locally. You can start to query the server using a curl command or swagger page.

make run

Contributing

We'd love your help in making AresDB great. If you find a bug or need a new feature, open an issue and we will respond as fast as we can. If you want to implement new feature(s) and/or fix bug(s) yourself, open a pull request with the appropriate unit tests and we will merge it after review. Before we can merge your changes, you must agree to the Uber Contributor License Agreement.

Documentation

Interested in learning more about AresDB? Read the blog post: TBD

License

Apache 2.0 License, please see LICENSE for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package api provide the RESTful APIs to interact with AresDB.
Package api provide the RESTful APIs to interact with AresDB.
mocks
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
mocks
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
mocks
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
Package memstore has to put test factory here since otherwise we will have a memstore -> utils -> memstore import cycle.
Package memstore has to put test factory here since otherwise we will have a memstore -> utils -> memstore import cycle.
common/mocks
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.
mocks
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.
mocks
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0
mocks
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Package mocks is generated by mockery v1.0.0 Package mocks generated by mockery v1.0.0
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Package mocks is generated by mockery v1.0.0 Package mocks generated by mockery v1.0.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL