Web farm server synchronization

Topics: Installing Orchard
Jul 27, 2012 at 11:27 PM

Have run into some issues running Orchard in a web farm.  Two of the pressing ones are:

1. Module installation - When installing modules, it appears to only update the cache.dat and mappings.bin on the one web server getting the request.  Should these two files be synchronized or located on a common file share?

2. Cache expiration notices - when updating a piece of content on one one of the servers it updates the cache on that one server, but the other web servers are stale.  How can they be synched?

Also, We have not established an out-of-proc session state, but are relying on the default in-proc session.  Is there any need or benefit to doing so?

Coordinator
Jul 28, 2012 at 5:04 PM

1. Yes, you need to either synchronize the modules and themes folders of your sites, or you need to refrain from installing modules and themes from the production server and instead deploy the installed modules from your dev/staging environment. I'd recommend the latter.

2. They can't, unless you use distributed cache, such as http://orchardappfabric.codeplex.com/

3. If you are in a web farm, in-proc session simply won't work, except if your farm is explicitly configured for session affinity.