ansibleshipyard / ansible-marathon Goto Github PK
View Code? Open in Web Editor NEWAnsible Marathon Playbook
License: Apache License 2.0
Ansible Marathon Playbook
License: Apache License 2.0
I think giving people an option to build from source is nice, but by default we use stable gz file.
I'm thinking of allow people to specify "latest", then we would build from source maybe from a build.yml file.
marathon_version: "latest"
@JasonGiedymin what are your thought on this?
It would be nice to have a place to set JAVA_OPTS
https://mesosphere.github.io/marathon/docs/command-line-flags.html
For now, I'm adding it to my environment but that doesn't seem very safe overall.
I propose to split following task into 1 task to enable
the service and one that restarts it (through a handler):
- name: Start Marathon service
service: name=marathon state=restarted enabled=yes
tags:
- restart
Where do I specify the --task_launch_timeout variable for Marathon. We have a slow internet connection thus it takes time to pull the docker images. I have increased the executor_registration_timeout for all the mesos slaves, which I found in https://github.com/AnsibleShipyard/ansible-mesos/blob/master/vars/main.yml but we need to also increase the task_launch_timeout for Marathon.
Do the upgrade with the minimum (1) leader fail-overs (vs worst-case: 'number of HA master/marathon nodes'), as recommended on:
https://mesosphere.github.io/marathon/docs/upgrade/index.html
http://stackoverflow.com/questions/33042343/is-it-possible-to-perform-a-zero-downtime-upgrade-or-reconfiguration-of-mesos
Currently I've a flexible serial
attribute to provide the (optional) rolling upgrade logic, in a typical
playbook:
- hosts: marathon
become: True
roles:
- {role: teralytics.marathon}
environment: "{{proxy_env}}"
tags: marathon
serial: "{{ (rolling_upgrade|default(false)|bool)|ternary(1,0) }}"
run the upgrade in a specific order, so that the current leader (can be provided for ex. using a consul-DNS or mesos-dns url like 'leader.mesos' ) is deployed last.
I've some ideas, but before doing actual work, wanted to ask the ansible/devOps community for any existing solutions or recommendations.
I see 2 diff approaches:
leader.mesos
(could be done with some list mangling, including the resolution of dns entries to IPs to match the leader.mesos
with the actual hostname (from the inventory)! )leader.mesos
hostIdeas!?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.