Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mesosphere/mom
Mesos on Mesos
https://github.com/mesosphere/mom
dcos dcos-orchestration-guild
Last synced: 2 months ago
JSON representation
Mesos on Mesos
- Host: GitHub
- URL: https://github.com/mesosphere/mom
- Owner: mesosphere
- License: apache-2.0
- Created: 2014-11-21T21:04:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-03-11T18:57:16.000Z (over 9 years ago)
- Last Synced: 2024-01-26T08:04:28.940Z (5 months ago)
- Topics: dcos, dcos-orchestration-guild
- Language: Go
- Size: 203 KB
- Stars: 15
- Watchers: 176
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-mesos - Mesos on Mesos
README
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 testingUSAGE:
mom [global options] command [command options] [arguments...]VERSION:
0.0.0COMMANDS:
cluster Cluster utilies
help, h Shows a list of commands or help for one commandGLOBAL 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-64db7714c3c4masters:
instances: 3
cpu: 0.100000
mem: 32slaves:
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
```