Re: Which Framework Now: Vars / Session State in a Cluster
On 5/3/07, Peterson, Chris <[EMAIL PROTECTED]> wrote: > I currently have my Cisco CSS set to use the users IP address to keep > their session 'sticky' to a given server, which works for most of my > cases (AOL is busted). Configure it to use a (transient) cookie instead. That's how adobe.com (formerly macromedia.com) works. Load balancer (either round robin or least used) . Web server cluster (Apache / static content) . Load balancer (cookie-based sticky session) . CF app server cluster (David Keith presented the adobe.com architecture today at cf.Objective()) -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~| ColdFusion MX7 by AdobeĀ® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277069 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Which Framework Now: Vars / Session State in a Cluster
AOL is a nightmare for this due to its rotational IP nonsense. -Original Message- From: Peterson, Chris [mailto:[EMAIL PROTECTED] Sent: 03 May 2007 12:51 To: CF-Talk Subject: RE: Which Framework Now: Vars / Session State in a Cluster Paul, Thanks a ton for that tag, it does exactly what I want! I currently have my Cisco CSS set to use the users IP address to keep their session 'sticky' to a given server, which works for most of my cases (AOL is busted). I am at the very beginning of a complete application re-write, so I am doing all my research now =) Thanks for the advice, and thanks to anyone else putting up with my inane questioning! Chris -Original Message- From: Paul Vernon [mailto:[EMAIL PROTECTED] Sent: Thursday, May 03, 2007 7:40 AM To: CF-Talk Subject: RE: Which Framework Now: Vars / Session State in a Cluster Chris, I've sent you a custom tag I wrote off list that should stop race conditions across servers, as for maintaining state, if you aren't going to use client vars in a cluster, then you need to use sticky sessions so that each users lands and remains on that server for the length of their session. This is usually achieved with round robin DNS and/or specialist load balancing software. The only clusters I ever built all used a dedicated SQL Server DB (cookiejar) to store the client vars in and another SQL Server machine for the application DB because the amount of hits to cookiejar was 2 or 3 per page request depending on what was happening as I recall so splitting out the resources made sense when we got to very high loads. Paul ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276893 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Which Framework Now: Vars / Session State in a Cluster
Paul, Thanks a ton for that tag, it does exactly what I want! I currently have my Cisco CSS set to use the users IP address to keep their session 'sticky' to a given server, which works for most of my cases (AOL is busted). I am at the very beginning of a complete application re-write, so I am doing all my research now =) Thanks for the advice, and thanks to anyone else putting up with my inane questioning! Chris -Original Message- From: Paul Vernon [mailto:[EMAIL PROTECTED] Sent: Thursday, May 03, 2007 7:40 AM To: CF-Talk Subject: RE: Which Framework Now: Vars / Session State in a Cluster Chris, I've sent you a custom tag I wrote off list that should stop race conditions across servers, as for maintaining state, if you aren't going to use client vars in a cluster, then you need to use sticky sessions so that each users lands and remains on that server for the length of their session. This is usually achieved with round robin DNS and/or specialist load balancing software. The only clusters I ever built all used a dedicated SQL Server DB (cookiejar) to store the client vars in and another SQL Server machine for the application DB because the amount of hits to cookiejar was 2 or 3 per page request depending on what was happening as I recall so splitting out the resources made sense when we got to very high loads. Paul ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276891 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Which Framework Now: Vars / Session State in a Cluster
Chris, I've sent you a custom tag I wrote off list that should stop race conditions across servers, as for maintaining state, if you aren't going to use client vars in a cluster, then you need to use sticky sessions so that each users lands and remains on that server for the length of their session. This is usually achieved with round robin DNS and/or specialist load balancing software. The only clusters I ever built all used a dedicated SQL Server DB (cookiejar) to store the client vars in and another SQL Server machine for the application DB because the amount of hits to cookiejar was 2 or 3 per page request depending on what was happening as I recall so splitting out the resources made sense when we got to very high loads. Paul > Sean (or anyone else!), > > In a post "Which Framework do you use", You said "Mostly the frameworks > are all designed to manages requests and data on a single server. I > never use client variables (and I've only ever worked on clustered CFMX > Enterprise systems)." May I ask how you maintain session state? I need > to take into account users behind multiple proxies (AOL), and from what > I have read you can either include link tokens in every single link / > form post on your site, you can save data to a cookie (which is not > 100% > reliable or secure), or you can use a combination of a url token and > client variables stored in a shared database file between all the > servers. What works best for you? Are you using the built in cluster > capability in Coldfusion, or a hardware device? > > Also, I have been trying to find out how effective cflock is in a > clustered environment. Looking at the cflock tag, the name of the lock > and the scope are mutually exclusive. I was rather hoping I could name > a > lock in the client scope (which would be shared between the servers, so > the others would wait for the lock to release). How do you ensure that > 2 different servers don't overwrite the same data, or get into race > conditions on the database? > > Thanks in advance! > > Chris ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276890 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4