Giter Club home page Giter Club logo

nomad-lab's Introduction

nomad lab

Testing the nomad orchestrator by running some things

requirements

  • virtualbox
  • go

usage

Single nomad agent on single host

# run vagrant
$ vagrant up && vagrant ssh
# start nomad
$ sudo nomad agent -dev | grep ERROR
# run the server job in /vagrant
$ nomad job run server.nomad
# inspect the job
$ nomad status server
# cleanup when done
$ vagrant destroy

Nomad cluster on single host

$ mkdir -p /tmp/{server1,client1,client2}
$ cd /vagrant
$ nohup nomad agent -config conf/server.hcl | grep ERROR > log/server.log &
$ nohup sudo nomad agent -config conf/client1.hcl | grep ERROR > log/client1.log &
$ nohup sudo nomad agent -config conf/client2.hcl | grep ERROR > log/client2.log &
$ tail -f log/*

new server release

# 1. Build-, and package the binaries on your host (requires go)
$ ./build.sh
# 2. commit and tag changes and make a new release on github
# 3. update source and checksum in *.nomad

todos

  • run arbitrary binary w exec driver
  • scale out using dynamic ports
  • use artifact to fetch remote resource
  • nomad agent cluster
  • inspect cgroups for binary jobs
  • try nomad alloc signal|exec
  • disaster recovery
  • try bridge network
  • register service w consul
  • service discovery w consul
  • add checksum to build step

nomad-lab's People

Contributors

karlpokus avatar

Watchers

 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.