Cluster
From Resin 3.0
(Difference between revisions)
Line 8: | Line 8: | ||
A Resin cluster is a collection of [[server|servers]] which do the same task. For example, all the load-balance servers form a cluster and all the application-servers in the app-tier form a cluster. | A Resin cluster is a collection of [[server|servers]] which do the same task. For example, all the load-balance servers form a cluster and all the application-servers in the app-tier form a cluster. | ||
− | == | + | == Configuration == |
A cluster is configured in a <cluster> tag in the resin.conf. | A cluster is configured in a <cluster> tag in the resin.conf. | ||
Line 15: | Line 15: | ||
# A set of virtual hosts, each containing several [[web-app|web-apps]] serving pages | # A set of virtual hosts, each containing several [[web-app|web-apps]] serving pages | ||
# Shared resources like databases | # Shared resources like databases | ||
+ | |||
+ | == example == | ||
A cluster with two servers might look like: | A cluster with two servers might look like: |
Revision as of 09:41, 14 January 2009
- Cluster configuration documentation for Resin 4.0 is at http://www.caucho.com/resin/doc/resin-clustering.xtp.
- <cluster> tag documentation for Resin 4.0 is at http://www.caucho.com/resin/doc/resin-clustering.xtp.
A Resin cluster is a collection of servers which do the same task. For example, all the load-balance servers form a cluster and all the application-servers in the app-tier form a cluster.
Configuration
A cluster is configured in a <cluster> tag in the resin.conf.
- A set of servers, each with its own cluster port for cluster communication
- A set of virtual hosts, each containing several web-apps serving pages
- Shared resources like databases
example
A cluster with two servers might look like:
resin.xml
<resin xmlns="http://caucho.com/ns/resin" xmlns:resin="http://caucho.com/ns/resin/core"> <resin:import path="${__DIR__}/app-default.xml"/> <cluster id="app-tier"> <server id="a" address="192.168.0.10" port="6800"/> <server id="b" address="192.168.0.11" port="6800"/> <host id="www.foo.com"> <root-directory>/var/www/www.foo.com</root-directory> <web-app-deploy path="webapps"/> </host> </cluster> </resin>