Code Monkey home page Code Monkey logo

ansible-mesos-stack's Introduction

Ansible Playbook to install a complete Apache Mesos stack

Donate Support Chat

This playbook deploys a full Apache Mesos stack. The access to mesos (agent and master) need credentials. The default one is "marathon:marathon".

Requirements

  • CentOS 7 (deprecated) or Debian/Ubuntu:[focal|jammy]
  • Ansible Galaxy collection: community.general
  • Ansible version:
$ ansible --version

ansible [core 2.14.2]
  python version = 3.10.9 (main, Dec  6 2022, 18:44:57)
  jinja version = 3.1.2
  libyaml = True

Informations

  • These playbook will install cronjobs to cleanup unused docker images, containers and local volumes. To besure that local volumes will not be deleted, add a tag called "mesos" as label. As example:
docker volume create --label tag=mesos volumename
  • These playbook will not restart services. If you apply new configuration and want to restart the service, use the tag "restart"

How to use

Install the whole stack

ansible-playbook -i ../inventory/inventory/mesos plays/server-config.yaml

Skip installation, only configure the whole stack

ansible-playbook -i ../inventory/inventory/mesos plays/server-config.yaml --skip-tags install

Update Mesos, Docker, Zookeeper and Mesos-DNS

ansible-playbook -i ../inventory/inventory/mesos plays/server-config.yaml --tags update

Restart all daemons

ansible-playbook -i ../inventory/inventory/mesos plays/server-config.yaml --tags restart

Reconfigure DNS

ansible-playbook -i ../inventory/inventory/mesos plays/server-config.yaml --tags dns

Reconfigure Worker

ansible-playbook -i ../inventory/inventory/mesos plays/server-config.yaml --tags worker

Reconfigure Manager

ansible-playbook -i ../inventory/inventory/mesos plays/server-config.yaml --tags manager

Reconfigure Mesos Plugins

ansible-playbook -i ../inventory/inventory/mesos plays/server-config.yaml --tags plugin

Reconfigure SSL

ansible-playbook -i ../inventory/inventory/mesos plays/server-config.yaml --tags ssl

Manager node

Software version Role Install type
Mesos 1.11.0-0.3.0 Mesos Masters RPM/DEB
Zookeeper 3.8.1 Zookeeper cluster RPM/DEB
Mesos-DNS 0.9.0 Service Discovery for Mesos Tasks RPM/DEB

Worker node

Software version Role Install type
Mesos 1.11.0-0.3.0 Mesos Agent RPM/DEB
Docker CE latest Docker engine RPM/DEB
DNSMasq 2 Container DNS RPM/DEB

Persistent Storage

For persistent container storage, we recomend to use our ansible-docker-volume playbook to deploy S3 docker-plugins as systemd service.

Troubleshooting

Missing ping between containers

If weave cannot ping between containers at different hosts, you have to change the following configuration:

sysctl net.bridge.bridge-nf-call-iptables=0

Do not forget to make it persistent.

To many open files

If you get the error message "To many open files" but file-max looks fine, then it could be helpful to resize max user instances:

sysctl fs.inotify.max_user_instances=8192

ansible-mesos-stack's People

Contributors

andreaspeters avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

ansible-mesos-stack's Issues

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.