[cfaussie] Session Sharing on Cloud Cluster

2011-12-19 Thread Dale Fraser
So RackSpace and Amazon dont support sticky sessions on https, im guessing
because the data is encrypted and they cant see it.

 

I was toying with the idea of doing something like this, which would
effectivally do the same thing

 

Lets say I have 4 endpoints

 

 

ap00 (balancer)

ap01 (server 1)

ap02 (server 2)

ap03 (server 3)

 

In on request if the server is ap00, just redirect to the real server im on,
which I can obtain (answer to previous question)

machineName = createObject(java,
java.net.InetAddress).localhost.getCanonicalHostName();

 

so balancer takes me to 03, I just hard redirect to 03 and user stays on
that server.

 

Only downside I can think of, which is a decent downside, is that if a user
bookmarks any url, they are on that server forever.

 

Any other options, I cant be the first person to try this.

 

Regards

Dale Fraser

 

 http://dale.fraser.id.au http://dale.fraser.id.au

 http://cfmldocs.com http://cfmldocs.com

 http://learncf.com http://learncf.com

 http://flexcf.com http://flexcf.com

 

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



Re: [cfaussie] Session Sharing on Cloud Cluster

2011-12-19 Thread Phil Haeusler

Dale

The other way to tackle this would be to run your own dedicated 
load-balancer on your ap00 instance.   Your SSL certs would live on ap00 
which could then handle the SSL connections and manage the sticky 
sessions to your actual application servers.  This would remove the need 
for CF to actually know anything about how your app is deployed across 
the cloud.


Phil


On 19/12/11 11:13 PM, Dale Fraser wrote:


So RackSpace and Amazon dont support sticky sessions on https, im 
guessing because the data is encrypted and they cant see it.


I was toying with the idea of doing something like this, which would 
effectivally do the same thing


Lets say I have 4 endpoints

ap00 (balancer)

ap01 (server 1)

ap02 (server 2)

ap03 (server 3)

In on request if the server is ap00, just redirect to the real server 
im on, which I can obtain (answer to previous question)


machineName = createObject(java, 
java.net.InetAddress).localhost.getCanonicalHostName();


so balancer takes me to 03, I just hard redirect to 03 and user stays 
on that server.


Only downside I can think of, which is a decent downside, is that if a 
user bookmarks any url, they are on that server forever.


Any other options, I cant be the first person to try this.

Regards

Dale Fraser

http://dale.fraser.id.au

http://cfmldocs.com

http://learncf.com

http://flexcf.com

--
You received this message because you are subscribed to the Google 
Groups cfaussie group.

To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.


--
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



Re: [cfaussie] Session Sharing on Cloud Cluster

2011-12-19 Thread Paul Kukiel
I'd be surprised if you can't install a SSL cirt on the load balancer.
 This article seams to indicate it is possible at Amazon:
http://awsdocs.s3.amazonaws.com/ElasticLoadBalancing/latest/elb-dg.pdf

Paul.


On Mon, Dec 19, 2011 at 11:13 PM, Dale Fraser d...@fraser.id.au wrote:

 So RackSpace and Amazon dont support sticky sessions on https, im guessing
 because the data is encrypted and they cant see it.

 ** **

 I was toying with the idea of doing something like this, which would
 effectivally do the same thing

 ** **

 Lets say I have 4 endpoints

 ** **

 ** **

 ap00 (balancer)

 ap01 (server 1)

 ap02 (server 2)

 ap03 (server 3)

 ** **

 In on request if the server is ap00, just redirect to the real server im
 on, which I can obtain (answer to previous question)

 machineName = createObject(java,
 java.net.InetAddress).localhost.getCanonicalHostName();

 ** **

 so balancer takes me to 03, I just hard redirect to 03 and user stays on
 that server.

 ** **

 Only downside I can think of, which is a decent downside, is that if a
 user bookmarks any url, they are on that server forever.

 ** **

 Any other options, I cant be the first person to try this.

 ** **

 Regards

 Dale Fraser

 ** **

 http://dale.fraser.id.au

 http://cfmldocs.com

 http://learncf.com

 http://flexcf.com

 ** **

 --
 You received this message because you are subscribed to the Google Groups
 cfaussie group.
 To post to this group, send email to cfaussie@googlegroups.com.
 To unsubscribe from this group, send email to
 cfaussie+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/cfaussie?hl=en.




-- 
Paul Kukiel

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] Session Sharing on Cloud Cluster

2011-12-19 Thread Dale Fraser
Any recommendations,

 

I was also looking for a third party SSL load balancer service if anyone
knows of such a thing.

 

Regards

Dale Fraser

 

http://dale.fraser.id.au

http://cfmldocs.com

http://learncf.com

http://flexcf.com

 

From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf
Of Phil Haeusler
Sent: Tuesday, 20 December 2011 8:31 AM
To: cfaussie@googlegroups.com
Subject: Re: [cfaussie] Session Sharing on Cloud Cluster

 

Dale

The other way to tackle this would be to run your own dedicated
load-balancer on your ap00 instance.   Your SSL certs would live on ap00
which could then handle the SSL connections and manage the sticky sessions
to your actual application servers.  This would remove the need for CF to
actually know anything about how your app is deployed across the cloud.

Phil

 
On 19/12/11 11:13 PM, Dale Fraser wrote: 

So RackSpace and Amazon dont support sticky sessions on https, im guessing
because the data is encrypted and they cant see it.

 

I was toying with the idea of doing something like this, which would
effectivally do the same thing

 

Lets say I have 4 endpoints

 

 

ap00 (balancer)

ap01 (server 1)

ap02 (server 2)

ap03 (server 3)

 

In on request if the server is ap00, just redirect to the real server im on,
which I can obtain (answer to previous question)

machineName = createObject(java,
java.net.InetAddress).localhost.getCanonicalHostName();

 

so balancer takes me to 03, I just hard redirect to 03 and user stays on
that server.

 

Only downside I can think of, which is a decent downside, is that if a user
bookmarks any url, they are on that server forever.

 

Any other options, I cant be the first person to try this.

 

Regards

Dale Fraser

 

http://dale.fraser.id.au

http://cfmldocs.com

http://learncf.com

http://flexcf.com

 

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

 

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] Session Sharing on Cloud Cluster

2011-12-19 Thread Dale Fraser
Yes,

 

I found that afterwards with Amazon, most don't support it.

 

I'd be happy with IP based server allocation.

 

Regards

Dale Fraser

 

http://dale.fraser.id.au

http://cfmldocs.com

http://learncf.com

http://flexcf.com

 

From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf
Of Paul Kukiel
Sent: Tuesday, 20 December 2011 8:47 AM
To: cfaussie@googlegroups.com
Subject: Re: [cfaussie] Session Sharing on Cloud Cluster

 

I'd be surprised if you can't install a SSL cirt on the load balancer.  This
article seams to indicate it is possible at Amazon:
http://awsdocs.s3.amazonaws.com/ElasticLoadBalancing/latest/elb-dg.pdf 

Paul.



On Mon, Dec 19, 2011 at 11:13 PM, Dale Fraser d...@fraser.id.au wrote:

So RackSpace and Amazon dont support sticky sessions on https, im guessing
because the data is encrypted and they cant see it.

 

I was toying with the idea of doing something like this, which would
effectivally do the same thing

 

Lets say I have 4 endpoints

 

 

ap00 (balancer)

ap01 (server 1)

ap02 (server 2)

ap03 (server 3)

 

In on request if the server is ap00, just redirect to the real server im on,
which I can obtain (answer to previous question)

machineName = createObject(java,
java.net.InetAddress).localhost.getCanonicalHostName();

 

so balancer takes me to 03, I just hard redirect to 03 and user stays on
that server.

 

Only downside I can think of, which is a decent downside, is that if a user
bookmarks any url, they are on that server forever.

 

Any other options, I cant be the first person to try this.

 

Regards

Dale Fraser

 

http://dale.fraser.id.au

http://cfmldocs.com

http://learncf.com

http://flexcf.com

 

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com
mailto:cfaussie%2bunsubscr...@googlegroups.com .
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.





 

-- 
Paul Kukiel

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



Re: [cfaussie] Session Sharing on Cloud Cluster

2011-12-19 Thread Kym Kovan

Hi Dale,

what's the code like? One option is to not use the session scope and go 
to client vars. No issue then... :-)


--
Yours,

Kym Kovan
mbcomms.net.au


--
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] Session Sharing on Cloud Cluster

2011-12-19 Thread Dale Fraser
Yeah,

I considered that too, I'll have to search the code base and see how widely
we use them

Thanks

Regards
Dale Fraser

http://dale.fraser.id.au
http://cfmldocs.com
http://learncf.com
http://flexcf.com

-Original Message-
From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf
Of Kym Kovan
Sent: Tuesday, 20 December 2011 10:56 AM
To: cfaussie@googlegroups.com
Subject: Re: [cfaussie] Session Sharing on Cloud Cluster

Hi Dale,

what's the code like? One option is to not use the session scope and go to
client vars. No issue then... :-)

--
Yours,

Kym Kovan
mbcomms.net.au


--
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



Re: [cfaussie] Session Sharing on Cloud Cluster

2011-12-19 Thread Kym Kovan

On 20/12/2011 11:10, Dale Fraser wrote:

Yeah,

I considered that too, I'll have to search the code base and see how widely
we use them


or do the client  session trick. Copy to client scope to session in 
OnRequestStart and back in OnRequestEnd, serialized as needed...




--
Yours,

Kym Kovan
mbcomms.net.au


--
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] Session Sharing on Cloud Cluster

2011-12-19 Thread Dale Fraser
That could work,

Thanks

Regards
Dale Fraser

http://dale.fraser.id.au
http://cfmldocs.com
http://learncf.com
http://flexcf.com


-Original Message-
From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf
Of Kym Kovan
Sent: Tuesday, 20 December 2011 11:30 AM
To: cfaussie@googlegroups.com
Subject: Re: [cfaussie] Session Sharing on Cloud Cluster

On 20/12/2011 11:10, Dale Fraser wrote:
 Yeah,

 I considered that too, I'll have to search the code base and see how
widely
 we use them

or do the client  session trick. Copy to client scope to session in 
OnRequestStart and back in OnRequestEnd, serialized as needed...



-- 
Yours,

Kym Kovan
mbcomms.net.au


-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



Re: [cfaussie] Session Sharing on Cloud Cluster

2011-12-19 Thread Mark Mandel
What about turning on JSessionIDs, and use a distributed cache to store
session information in.

CF sets up the unique IDs for you, and you just use that value to store
data in your distributed cache.

Then it doesn't matter what server you are on.

Amazon has ElastiCache - should be easy enough to get going.

Mark



On Tue, Dec 20, 2011 at 1:23 PM, MrBuzzy mrbu...@gmail.com wrote:

 I tried this on Jelastic and it pretty much works perfectly out of the
 box.

 Here's a URL to try;
 https://mrbuzzy.jelastic.com/balance/
 It will out put various things for debugging, try it from more than one
 browser, machine, device, etc.

 Your HTTPS request will hit and 'stick' on a particular host.
 It looks like Nginx is handling the SSL decryption and 'stickiness' to one
 of many hosts.
 It also uses Tomcat clustering an session replication. The 'node' within
 the Tomcat cluster can be seen in the JSESSIONID which is used for
 'stickiness' at the Tomcat level.
 ColdFusion is seeing a non-SSL request on port 80.

 Also attaching a few screenshots.

 Cheers.

 On 20 December 2011 12:09, Dale Fraser d...@fraser.id.au wrote:

 That could work,

 Thanks

 Regards
 Dale Fraser

 http://dale.fraser.id.au
 http://cfmldocs.com
 http://learncf.com
 http://flexcf.com


 -Original Message-
 From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On
 Behalf
 Of Kym Kovan
 Sent: Tuesday, 20 December 2011 11:30 AM
 To: cfaussie@googlegroups.com
 Subject: Re: [cfaussie] Session Sharing on Cloud Cluster

 On 20/12/2011 11:10, Dale Fraser wrote:
  Yeah,
 
  I considered that too, I'll have to search the code base and see how
 widely
  we use them

 or do the client  session trick. Copy to client scope to session in
 OnRequestStart and back in OnRequestEnd, serialized as needed...



 --
 Yours,

 Kym Kovan
 mbcomms.net.au


 --
 You received this message because you are subscribed to the Google Groups
 cfaussie group.
 To post to this group, send email to cfaussie@googlegroups.com.
 To unsubscribe from this group, send email to
 cfaussie+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/cfaussie?hl=en.

 --
 You received this message because you are subscribed to the Google Groups
 cfaussie group.
 To post to this group, send email to cfaussie@googlegroups.com.
 To unsubscribe from this group, send email to
 cfaussie+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/cfaussie?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 cfaussie group.
 To post to this group, send email to cfaussie@googlegroups.com.
 To unsubscribe from this group, send email to
 cfaussie+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/cfaussie?hl=en.




-- 
E: mark.man...@gmail.com
T: http://www.twitter.com/neurotic
W: www.compoundtheory.com

2 Devs from Down Under Podcast
http://www.2ddu.com/

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.