Hi Sean, the files are generated in a replicated directory outside the cf webroot. The virtual webroot is shared between all instances of the cluster. Sticky sessions are enable and I also need session replication enabled to allow for fail over if a server goes down. I have the single affinity set in NLB, so in effect the webserver requests stick on the original server.
The problem exists when the request comes in through web1 and the jrun connector sends the request to the cfmx server on web2. The jrun session sticks on web2 and the NLB requests stick on web1. The flashpaper doc is generated on web2, but the client is requesting it from web1. The file doesn't appear on web1 until it's replicated throught the distributed file system. An easy way to get around it would be to remove the jrun cluster and just have single instances of cf connected to the webserver on each machine. However, that kind of defeats the whole idea of clustering. I've created a dodgy work around that's got it going for now, but I'm not happy with it at all. After I generate the doc I wait for a few seconds before sending the html page back to the client, thereby giving the distributed file system time to replicate between the servers. Jason > > If you're generating the file in CF's web root, enable sticky session > on the JRun cluster. If you generating the file elsewhere, enable > sticky session on both the NLB and the JRun cluster. > > Another good reason to use sticky session (others include not needing > to use session replication - which cuts down network traffic - and > being able to rely on session scope for CFCs and therefore not need > the evil client scope). > -- > Sean A Corfield -- http://corfield.org/ > Team Fusebox -- http://fusebox.org/ > Got Gmail? -- I have 50, yes 50, invites to give away! > > "If you're not annoying somebody, you're not really alive." > -- Margaret Atwood > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to [EMAIL PROTECTED] > Aussie Macromedia Developers: http://lists.daemon.com.au/ > --- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
