Cluster with Two Servers
From Resin 3.0
(Difference between revisions)
(New page: Category: Cookbook == resin.xml configuration == <resin xmlns="http://caucho.com/ns/resin" xmlns:resin="urn:java:com.caucho.resin"> <log-handler name="" level="all" p...) |
|||
Line 18: | Line 18: | ||
<server id="a" address="192.168.1.10" port="6800"/> | <server id="a" address="192.168.1.10" port="6800"/> | ||
<server id="b" address="192.168.1.11" port="6801"/> | <server id="b" address="192.168.1.11" port="6801"/> | ||
− | + | ||
<resin:import path="${__DIR__}/app-default.xml"/> | <resin:import path="${__DIR__}/app-default.xml"/> | ||
<proxy-cache memory-size="64M"/> | <proxy-cache memory-size="64M"/> | ||
− | + | ||
<resin:DeployService/> | <resin:DeployService/> | ||
<resin:JmxService/> | <resin:JmxService/> | ||
Line 32: | Line 32: | ||
format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"' | format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"' | ||
rollover-period="1W"/> | rollover-period="1W"/> | ||
− | + | ||
<web-app-deploy path="webapps"/> | <web-app-deploy path="webapps"/> | ||
</host> | </host> | ||
</cluster> | </cluster> | ||
</resin> | </resin> |
Revision as of 22:50, 28 August 2010
resin.xml configuration
<resin xmlns="http://caucho.com/ns/resin" xmlns:resin="urn:java:com.caucho.resin"> <log-handler name="" level="all" path="stdout:" timestamp="[%y-%m-%d %H:%M:%S.%s] "/> <logger name="com.caucho" level="info"/> <cluster id="my-cluster"> <server-default> <http port="8080"/> </server-default> <server id="a" address="192.168.1.10" port="6800"/> <server id="b" address="192.168.1.11" port="6801"/> <resin:import path="${__DIR__}/app-default.xml"/> <proxy-cache memory-size="64M"/> <resin:DeployService/> <resin:JmxService/> <resin:LogService/> <resin:StatService/> <host id=""> <access-log path="log/access.log" format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"' rollover-period="1W"/> <web-app-deploy path="webapps"/> </host> </cluster> </resin>