Giter Club home page Giter Club logo

vagrant-mesos's Introduction

vagrant-mesos

Vagrant dev environent setup with Mesos/Marathon/Chronos/Aurora/Jenkins/Docker

Disclaimer: This Vagrant setup consumes significant resources but runs fine on my 2013 Macbook Pro developer notebook with a 2.8 GHz Intel Core i7 processor and 16 GB RAM. It may not work as well on a machine with lesser hardware specs.

Vagrant Setup

Setup

Run the following script which will launch 3 VMs each with all the components shown in the graphic above installed. To save time the script will install everything on the first VM, save it as a vbox image and then clone the remaining VMs from it.

$ ./create.sh

Mesos master instance

mesos1 ip address: 192.168.56.101

The main instance has the following services actively running upon startup and has 4GB allocated RAM:

1. Mesos master
2. Mesos slave
3. Zookeeper
4. Docker
5. Docker Executor
6. Jenkins
7. Marathon
8. Aurora
9. Chronos

Additional VMs

Your cluster now effectively has 3 Mesos masters, 3 zookeepers and 3 Mesos slaves (each with Docker installed). Jenkins, Marathon, Chronos & Aurora are installed on the additional VMs too except that they have been disabled on startup. The additional Mesos instances have been allocated a lesser 2GB RAM each.

mesos2 ip address: 192.168.56.102
mesos3 ip address: 192.168.56.103

Each additional VM with the following services actively running upon startup:

1. Mesos master
2. Mesos slave
3. Zookeeper
4. Docker

SSH Access

ssh root@mesos1 | ssh root@mesos2 | ssh root@mesos3

Root SSH Credentials:

username: root
password: vagrant

/etc/hosts

Create these entries in the /etc/hosts file on the host machine for quick access to the VMs.

192.168.56.101	mesos1 jenkins1 marathon1 aurora1 chronos1
192.168.56.102	mesos2 jenkins2 marathon2 aurora2 chronos2
192.168.56.103	mesos3 jenkins3 marathon3 aurora3 chronos3

An Nginx HTTP proxy server is running on each machine so that you can access the applications on the respective VMs. Only one Mesos master is active at a time so you will be immediately redirected to the leading master.

Mesos - http://mesos1 | http://mesos2 | http://mesos3

Accessing the Jenkins web UI:

http://jenkins1

Accessing the Marathon web UI

http://marathon1

Accessing the Aurora web UI

http://aurora1

Accessing the Chronos web UI

http://chronos1

Destroying VMs

Run the following script to destroy the VMs

./destroy.sh

vagrant-mesos's People

Contributors

ahunnargikar avatar mohitsoni avatar

Watchers

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