Skip to content

Three services demonstrating usage of python library `Tiltai` in the Mesos/Marathon environment

License

Notifications You must be signed in to change notification settings

Zogg/Tiltai-example

 
 

Repository files navigation

Tiltai example

Tiltai-example helps you quickly tryout Tiltai functionality on a single host.

It is based on Playa Mesos, which helps you quickly create Apache Mesos test environments. This project relies on VirtualBox, Vagrant, and an Ubuntu box image which has Mesos and Marathon pre-installed.

Requirements

Quick Start

  1. Install VirtualBox

  2. Install Vagrant

  3. Clone this repository

git clone https://github.com/Zogg/Tiltai-example.git
cd Tiltai-example
  1. Make sure tests pass
bin/test
  1. Start the VM
vagrant up
  1. Connect to the Mesos Web UI on 10.141.141.10:5050 and the Marathon Web UI on 10.141.141.10:8080 and the Consul Web UI on 10.141.141.10:8500

  2. SSH to the VM

vagrant ssh
  1. Launch the infrastructure
cd /vagrant/bin
./make_infra

Inspect Marathon Web UI, it should now deploy the services. Using Mesos Web UI you may inspect service logs. And using Consul Web UI you may observe the registered services and their ip/ports.

  1. Playing with the services
# The services are found at /vagrant/services
# Modify the source code of the service
cd /vagrant/services/feeder
vim ./src/run.py
# Rebuild docker image
./build.sh
# Restart marathon infrastructure
cd /vagrant/bin && ./restart_infra

The marathon's software-defined-infrastructure is defined at /vagrant/grouped-infra.json

Documentation

About

Three services demonstrating usage of python library `Tiltai` in the Mesos/Marathon environment

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 73.1%
  • Ruby 19.9%
  • Python 7.0%