Discussion:
Multiple applications
goodieboy
2007-04-13 19:38:56 UTC
Permalink
Hi,

I've decided to go with Nginx and mongrel clusters. The setup is very
simple and works well.

My question is related to running multiple applications. For Nginx,
should I run one instance (one config file) and then add in virtual
hosts within that one config file? Or should I run multiple instances,
each with their own config?

For mongrel clusters... is it possible to startup a single cluster of
10, and then have 3 completely different applications that one
cluster? Are there problems with this? Is it better to have a cluster
per/application?

That's it for now!

Matt
Josh Knowles
2007-04-13 19:55:08 UTC
Permalink
Post by goodieboy
My question is related to running multiple applications. For Nginx,
should I run one instance (one config file) and then add in virtual
hosts within that one config file? Or should I run multiple instances,
each with their own config?
If you want all applications to run off a single IP/Port combo then you need
to setup virtual hosts.

For mongrel clusters... is it possible to startup a single cluster of
Post by goodieboy
10, and then have 3 completely different applications that one
cluster? Are there problems with this? Is it better to have a cluster
per/application?
Cluster is intended to be used for a single application.
--
Josh Knowles
joshknowles-***@public.gmane.org
Chris Bailey
2007-04-13 22:05:55 UTC
Permalink
Some of this will depend on how you are load balancing, what your front end
network access looks like, whether you want things on different ports, etc.
For example, if you want everyone on port 80, I'd guess you will want one
Nginx, that then directs the requests, based on domain, path, etc. to the
appropriate mongrel_clusters. I would for sure run a mongrel cluster per
application (I don't think you can do it any other way, but why would you -
you want to shield your apps from each other).
Post by goodieboy
Hi,
I've decided to go with Nginx and mongrel clusters. The setup is very
simple and works well.
My question is related to running multiple applications. For Nginx,
should I run one instance (one config file) and then add in virtual
hosts within that one config file? Or should I run multiple instances,
each with their own config?
For mongrel clusters... is it possible to startup a single cluster of
10, and then have 3 completely different applications that one
cluster? Are there problems with this? Is it better to have a cluster
per/application?
That's it for now!
Matt
--
Chris Bailey
hackersapien
2007-04-14 14:00:49 UTC
Permalink
I'm also in the same situation whereby I'd like to deploy multiple
instances of the same application using sub-domains similar to what
wordpress.com does when you signup for a new blog i.e.
http://hackersapien.crazyapps.com .This is virgin territory for me so
any help in terms of deployment would really go a long way, I'm using
a dedicated server and I'm yet to decide on which deployment solution
to go ahead with.
Post by Chris Bailey
Some of this will depend on how you are load balancing, what your front end
network access looks like, whether you want things on different ports, etc.
For example, if you want everyone on port 80, I'd guess you will want one
Nginx, that then directs the requests, based on domain, path, etc. to the
appropriate mongrel_clusters. I would for sure run a mongrel cluster per
application (I don't think you can do it any other way, but why would you -
you want to shield your apps from each other).
Post by goodieboy
Hi,
I've decided to go with Nginx and mongrel clusters. The setup is very
simple and works well.
My question is related to running multiple applications. For Nginx,
should I run one instance (one config file) and then add in virtual
hosts within that one config file? Or should I run multiple instances,
each with their own config?
For mongrel clusters... is it possible to startup a single cluster of
10, and then have 3 completely different applications that one
cluster? Are there problems with this? Is it better to have a cluster
per/application?
That's it for now!
Matt
--
Chris Bailey
goodieboy
2007-04-16 18:13:35 UTC
Permalink
OK thanks for your help! I've come up with a solution that seems to
work pretty well. Here is the new post:

http://groups.google.com/group/rubyonrails-deployment/t/719783b55713f3ab

Matt
Post by hackersapien
I'm also in the same situation whereby I'd like to deploy multiple
instances of the same application using sub-domains similar to what
wordpress.com does when you signup for a new blog i.e.http://hackersapien.crazyapps.com.This is virgin territory for me so
any help in terms of deployment would really go a long way, I'm using
a dedicated server and I'm yet to decide on which deployment solution
to go ahead with.
Post by Chris Bailey
Some of this will depend on how you are load balancing, what your front end
network access looks like, whether you want things on different ports, etc.
For example, if you want everyone on port 80, I'd guess you will want one
Nginx, that then directs the requests, based on domain, path, etc. to the
appropriate mongrel_clusters. I would for sure run a mongrel cluster per
application (I don't think you can do it any other way, but why would you -
you want to shield your apps from each other).
Post by goodieboy
Hi,
I've decided to go with Nginx and mongrel clusters. The setup is very
simple and works well.
My question is related to running multiple applications. For Nginx,
should I run one instance (one config file) and then add in virtual
hosts within that one config file? Or should I run multiple instances,
each with their own config?
For mongrel clusters... is it possible to startup a single cluster of
10, and then have 3 completely different applications that one
cluster? Are there problems with this? Is it better to have a cluster
per/application?
That's it for now!
Matt
--
Chris Bailey
Loading...