autodesk-cloud / ochopod

Your friendly orchestration overlay over Mesos, K8S and more !
http://autodesk-cloud.github.io/ochopod/
Apache License 2.0
122 stars 20 forks source link

How many applications per shell.py script? #11

Open pgporada opened 9 years ago

pgporada commented 9 years ago

I have a need to run several applications in a container that require service discovery. Is ochopod able to support more than one application per shell.py script or should I have supervisord start each application with it's own instance of shell.py ala

shell1.py - Sensu
shell2.py - Fluentd
shell3.py - Company app
opaugam commented 9 years ago

Hello Phil !

You could run multiple pod scripts per container, yes. However this does not offer much advantages over breaking it down. Now if you do have peripheral stuff you need to run as companions tools (typically a local collectd, newrelic monitor, sensu, etc.) I would simply recommend to have your pod script start them during its configuration phase (super trivial if you already have supervisor installed in-container).

I do this actually for my API tiers where I need to run at least 1 collectd that then forwards metrics to librato.com.

Does my answer make sense ?

pgporada commented 9 years ago

Yes it does, thank you.

opaugam commented 9 years ago

BTW - if suggest you get started with our ochothon PaaS if you can (so Mesos+Marathon). This is my active project right now and is the most stable/complete to date (i'll get back to K8S soon).