GithubHelp home page GithubHelp logo

docker-mapd's Introduction

Containerized MapD

Images

There are images for CPU and GPU targets. Each image compiles and builds mapd from source. When multi-stage builds become available we will split the images.

AFAIK we cannot use the GPU image for CPU only targets because the GPU image only contains stubs for the CUDA libraries and mapd expects the real libraries to exist at runtime. I decided to not to investigate this further and just have different build images for each target.

Build the image yourself

cd build/cpu
docker build . -t fred/mapd-cpu
cd ../cuda
docker build . -t fred/mapd-cuda

Usage

We use the .env file to set which image(CPU or GPU build) to use.

Copy and edit .env

cp .env-example .env
vi .env
cp data/.env-example data/.env
vi data/.env-example

Edit the fragment size in data/create.sql. A good start is:

(# Rows in db)/(# CPUs OR # GPUs)

e.g for a cpu deployment of 40m rows, on a node that has 4 cpus fragment size is ~ 10m

CPU-only

Load data (optional)

cd data
docker-compose up
cd ..

Start mapd servers and nginx load balancer

docker-compose up -d

GPU

We use nvidia-docker and nvidia-docker-compose to run Docker containers with NVIDIA GPUs

Ensure all dependencies have been installed on host see ubuntu-16.04/init.sh for example on ubuntu 16.04.

NOTE: it is recommended that you freeze the kernel after installing the nvidia driver. Everytime the linux kernal is updated you will have to reinstall the nvidia drivers.

e.g

sudo apt-mark hold linux-image-4.4.0-1013-aws
sudo apt-mark hold linux-base

Test nvidia-docker

nvidia-docker run --rm nvidia/cuda nvidia-smi

Load data (optional)

cd data
nvidia-docker-compose up
cd ..

Start mapd servers and nginx load balancer

nvidia-docker-compose up -d

docker-mapd's People

Contributors

shusson avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.