Anonymous | Login | Signup for a new account | 12-17-2024 10:53 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0003872 | [Resin] | major | always | 02-03-10 11:42 | 02-17-10 14:04 | ||||
Reporter | chiefgeek | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 4.0.1 | ||||||
Summary | 0003872: session data is replicated between cluster instances in resin-data dir when persistent sessions are disabled | ||||||||
Description |
We do not use session data for anything it has become very difficult to restart a resin instance without stopping all instances and deleting the db files in resin-data. If we do not delete the db files in this dir it can take an hour or more for the app to startup. We use apache with multiple CauchoHost and CauchoBackup entries. For example: --- begin apache.conf snippet --- <Location /dealfinder/> CauchoHost x.x.x.1 6841 CauchoHost x.x.x.2 6841 CauchoHost x.x.x.3 6841 CauchoHost x.x.x.4 6841 CauchoBackup x.x.1.1 6841 CauchoBackup x.x.1.2 6841 CauchoBackup x.x.1.3 6841 CauchoBackup x.x.1.4 6841 </Location> ===== end apache.conf snippet === env variables --- begin resin.xml snippet ---- MYIP=<ip address of machine> Then in resin.xml on each host there is a cluster def as follows: <cluster id="dealfinder"> <!-- sets the content root for the cluster, relative to resin.root --> <root-directory>.</root-directory> <!-- defaults for each server, i.e. JVM --> <server-default> <!-- The http port --> <http address="*" port="7841" /> <jvm-arg>-Xmx1024m</jvm-arg> <jvm-arg>-XX:MaxPermSize=192m</jvm-arg> <jvm-arg>-Dcom.sun.management.jmxremote.port=8841</jvm-arg> <watchdog-arg>-Dcom.sun.management.jmxremote</watchdog-arg> </server-default> <!-- define the servers in the cluster --> <server id="dealfinder" address="${MYIP}" port="6841" watchdog-port="6700"> <!-- server-specific configuration, e.g. jvm-arg goes here --> </server> <!-- the default host, matching any host name --> <host id="" root-directory="."> <access-log path="instances/dealfinder/access.log" format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"' rollover-period="1W" /> <web-app id="/" root-directory="webapps/dealfinder/ROOT" archive-path="webapps/dealfinder/ROOT.war"> <listener> <listener-class>com.caucho.jsp.JspPrecompileListener</listener-class> <init> <extension>jsp</extension> <extension>jspx</extension> <extension>xtp</extension> </init> </listener> </web-app> <web-app id="/resin-admin" root-directory="${resin.root}/doc/admin"> <prologue> <resin:set var="resin_admin_external" value="false" /> <resin:set var="resin_admin_insecure" value="true" /> </prologue> </web-app> <web-app id="/resin-doc" root-directory="${resin.root}/doc/resin-doc" /> </host> </cluster> ==== end resin.xml snippet ==== Each cluster def only lists one host, itself. |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
37 total queries executed. 30 unique queries executed. |