# [Mesos](https://mesos.apache.org/)

> We wanted people to be able to program for the datacenter just like they program for their laptop ~ Ben Hindman

[Apache Mesos](https://mesos.apache.org/) is a software layer for resource management and scheduling across multiple computers. It has built in support for docker.

## Mesosphere
[Mesosphere](https://mesosphere.com/) provides an interface for automating the deploying mesos and associated packages on a number of cloud providers. I've started taking Mesos for a spin on [Google Cloud](https://google.mesosphere.com).

Mesosphere set up everything for me. Basically, I provided my ssh key and it did the rest. Documentation for Mesosphere on Google Cloud is pretty sparse but available at [http://mesosphere.com/docs/getting-started/cloud/google/](http://mesosphere.com/docs/getting-started/cloud/google/)

- [scary-fish-999](https://console.developers.google.com/project/scary-fish-999/compute/instances?graph=GCE_CPU).
- [My Mesosphere project](https://google.mesosphere.com/clusters/3512-development) includes the following:
    - Apache Mesos with in-built Docker support
    - Mesosphere Marathon
    - Chronos
    - Spark
    - Apache ZooKeeper
    - HAProxy
    - OpenVPN
    - HDFS
  
### Mesos

The mesos console is at [http://10.42.95.190:5050](http://10.42.95.190:5050)
  
### Login

To login to my master node, I need to login from my laptop which has my public ssh key:

```
ssh jclouds@130.211.180.206
```

### Spark

The spark console can be launched using `/opt/spark/bin/spark-shell`. The Spark web view is at [http://10.42.95.190:4040](http://10.42.95.190:4040/stages/), but use OpenVPN to access my cluster first.
  
  
