GithubHelp home page GithubHelp logo

mom's Introduction

Mesos on Mesos

Way too short build instructions

Assuming you have GOPATH setup and GOPATH/bin in your PATH.

$ git clone [email protected]:mesosphere/mom.git
$ cd mom
$ go get ./...
$ mom
NAME:
   mom - Mesos on Mesos cluster testing

USAGE:
   mom [global options] command [command options] [arguments...]

VERSION:
   0.0.0

COMMANDS:
   cluster      Cluster utilies
   help, h      Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h           show help
   --version, -v        print the version

Set up environment

Copy mom.json to ~/.mom.json and change variables to match your setup.

$ cat ~/.mom.json
{
  "marathon_url": "http://foobar:8080",
  "docker_hub": "barbaz:5000",
  "zookeeper": "zk://localhost:2181/mom/",
  "app_prefix": "/mom",
  "quorum_size": 1,
  "master_count": 3,
  "master_cpu": 0.1,
  "master_mem": 32,
  "master_flags": "",
  "slave_count": 10,
  "slave_cpu": 0.1,
  "slave_mem": 32,
  "slave_flags": ""
}

Launch a cluster

Assuming that you have $GOPATH/bin in your $PATH

$ mom cluster launch
Launching cluster id:  81b6ab3a-1d05-4f89-6f30-64db7714c3c4

masters:
        instances:      3
        cpu:            0.100000
        mem:            32

slaves:
        instances:      10
        cpu:            0.100000
        mem:            32

Get details on your new cluster

You can get details about the new cluster by:

$ mom cluster status 81b6ab3a-1d05-4f89-6f30-64db7714c3c4
masters:
        srv3.hw.ca1.mesosphere.com:31006
        srv2.hw.ca1.mesosphere.com:31324
        srv4.hw.ca1.mesosphere.com:31959

Tear down cluster

You tear down the cluster by

$ mom cluster destroy 81b6ab3a-1d05-4f89-6f30-64db7714c3c4
Cluster session 81b6ab3a-1d05-4f89-6f30-64db7714c3c4 destroyed

mom's People

Contributors

air avatar nqn 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.