I'm interested in having my mesos-slave instances inherit attributes from the EC2 tags that the slave is running on. After some searching, I don't think such a setup exists. I would like to write one and contribute it back to the community.
Our slaves are running Ubuntu and we're using the mesos packages from the mesosphere repo. This creates a beautiful mesos-init-wrapper that allows mesos configuration (command line arguments) to be represented as files in /etc/mesos-slave/ or /etc/mesos/. I want to write a script which will:
- Use the ec2 API to get the instance tags (see here)
- Generate corresponding files in
[/etc/mesos/attributes/][3] - Run this script at an early run-level
Mesos community folks: is this the right way to go? Is it reasonable to build an implementation that is tied to mesos-init-wrapper?
Thanks!
Advait
Aucun commentaire:
Enregistrer un commentaire