Mantis - Resin
Viewing Issue Advanced Details
4867 minor always 11-22-11 13:55 06-13-12 13:57
ferg  
ferg  
normal  
closed 4.0.24  
no change required  
none    
none 4.0.28  
0004867: WEB-INF/work handling multiple VMs
(rep by theBlueSage)

I am experimenting with using a cluster of 5 resins, managed by a single watchdog. So far I have been able to get 99% of it working but the last bit is a killing me and is a show-stopper.

How can I configure resin.xml to allow me to use different work-dirs for each <server> node

so far I have this :

<server id="a" ip="*" port="6800">
<http port="10880" />
</server>
<server id="b" ip="*" port="6801">
<http port="10881" />
</server>

etc, but as work-dir is a child/attribute of web-app, and web-app is a child if resin and/or host, but not a child of server, how can I configure resin to achieve my goals?

answers, suggestions, pointer etc, all welcome ....

Notes
(0005623)
ferg   
11-22-11 13:56   
Note: the workaround is to define the work-dir as

  <work-dir>WEB-INF/work-${resin.serverId}</work-dir>

Since this question has come up repeatedly, this bug report is a feature request to possibly change Resin's default behavior.
(0005643)
alex   
11-29-11 16:58   
let's also think of WEB-INF/tmp
(0005838)
ferg   
06-13-12 13:54   
server/1q30

<work-dir>WEB-INF/work-${server.id}</work-dir>