url redirect persistance - load balancing

5 views
Skip to first unread message

jbuda

unread,
Nov 24, 2009, 4:58:45 AM11/24/09
to Mach-II for CFML
Hi there

i have spent several hours trying to figure this out, but i think it
may be down to our server setup.

We have a load balancer with 2 server, both running CF9 Standard. I
have been reading posts about setting sticky session within the
Cluster Manager on the CFAdmin. However, being on standard we cannot
do that.

Im needing to persist some event arguments using the redirect in the
xml file, however, im beginning to notice that this is very
temperamental as sometimes it works and others it doesnt.

My guess is that the persisted object is available on one of the
servers, but when being directed through the url it gets to the other
other server where the object doesnt exist? We have Cookies set on
both servers.

Hope someone can help me or point me in the right direction.

Thanks

Peter J. Farrell

unread,
Nov 24, 2009, 5:16:23 AM11/24/09
to mach-ii-for...@googlegroups.com
Yes, this would have to do with your server setup. Your load balancer is
not keeping your session on the same server.

As stated in the docs, redirect persist uses the application or session
scope to store a temporary copy of the data. The key in the URL is used
to retrieve it. If your load balancer is not acting correctly,
sometimes you will be routed to server B when your session actually
lives on server A.

You don't have to worry about sticky sessions in CF's clustering (which
you indicated you can't do)...all arrows point to an incorrectly
configured load balancer.

.Peter

jbuda said the following on 11/24/2009 03:58 AM:

jbuda

unread,
Nov 24, 2009, 5:38:53 AM11/24/09
to Mach-II for CFML
Okay, so its exactly what i thought it was.

I just need to configure the Load Balancer to force the user to remain
on the same server for the duration of the visit to the site.

Thanks for your help.

Matthew Woodward

unread,
Nov 24, 2009, 10:04:08 AM11/24/09
to mach-ii-for...@googlegroups.com
On Tue, Nov 24, 2009 at 2:16 AM, Peter J. Farrell <pe...@mach-ii.com> wrote:
You don't have to worry about sticky sessions in CF's clustering (which
you indicated you can't do)...all arrows point to an incorrectly
configured load balancer.


Just echoing what Peter said for reinforcement--set session affinity ("sticky sessions") on the load balancer and that's all you need to do.

--
Matthew Woodward
ma...@mattwoodward.com
http://mpwoodward.posterous.com
identi.ca/Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint, etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html
Reply all
Reply to author
Forward
0 new messages