Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How many applications per shell.py script? #11

Open
pgporada opened this issue May 15, 2015 · 3 comments
Open

How many applications per shell.py script? #11

pgporada opened this issue May 15, 2015 · 3 comments

Comments

@pgporada
Copy link

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
Copy link

opaugam commented May 15, 2015

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
Copy link
Author

Yes it does, thank you.

@opaugam
Copy link

opaugam commented May 15, 2015

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants