data-aware-scheduler

command module
v0.0.0-...-9bebdc5 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2017 License: Apache-2.0 Imports: 22 Imported by: 0

README

Data Aware Scheduler (PoC)

This Scheduler works (and is tested) with Kubernetes 1.5

Dependency Managment

For the dependency managment was (dep)[https://github.com/golang/dep] used.

$ dep ensure -update

Build

To build the binary (for linux):

$ GOOS=linux go build -o scheduler -a --ldflags '-extldflags "-static" -s -w' -tags netgo -installsuffix netgo .

to build a Docker container:

$ VERSION=0.0.2
$ docker build -t johscheuer/data-aware-scheduler:$VERSION .
$ docker push johscheuer/data-aware-scheduler:$VERSION

Run it

Prerequisites
  • Running Quobyte Cluster (you can use this tool for a quick start)
  • Running Kubernetes Cluster
Inside Kubernetes

Adjust config deployments/scheduler_config.yaml to your need:

kubectl create --namespace=kube-system -f deployments/scheduler_config.yaml
kubectl create --namespace=kube-system -f deployments/scheduler.yaml
Outside Kubernetes

At the moment you need a local mount of Quobyte with xattr enabled (-o user_xattr). As soon as the same information is available over the API this requierement drops.

Copy the example configuration and adjust it to your needs:

copy config.yaml.example config.yaml

Now start the Scheduler:

./scheduler --config=./config.yaml

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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