Multiple applications

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

On 4/13/07, goodieboy [email protected] wrote:

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

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 K.
[email protected]
http://joshknowles.com

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

On 4/13/07, goodieboy [email protected] wrote:

each with their own config?


Chris B.
[email protected]

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

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.