Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Session Replication in the cloud (EC2)

Guest
Apr 26, 2013 Apr 26, 2013

Hi,

I have 2 ColdFusion instances (different machines) in a cluster on amazon EC2.

They are working fine, except for session replication.

EC2 don't support IP multicasting. So, I am trying a static approach.

I had added a static member interceptor:

<Interceptor className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor">

                                        

                                        <Member

                                                  className="org.apache.catalina.tribes.membership.StaticMember"

                                                    port="4001"

                                                    host="remoteIP"

                                                    domain="ClusterName"

                                                  uniqueId="{1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0}"/>

                     </Interceptor>

and disabled the multicasting commenting this:

<!--  <Membership port="45565" dropTime="3000" address="228.0.0.4"     className="org.apache.catalina.tribes.membership.McastService" frequency="500">

        </Membership> -->

and changing the cluster tag like this

<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"         channelSendOptions="6" channelStartOptions="3">

This worked locally on my machine, but in EC2 is not replicating.

The logs have:

Apr 26, 2013 8:47:44 PM org.apache.catalina.ha.tcp.SimpleTcpCluster memberAdded,  which is good.

Also have this messages:

Apr 26, 2013 8:48:02 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#/

So, I am lost here.. what else can I try?

762
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
May 01, 2013 May 01, 2013
LATEST

Do you need to replicate the sessions, you may be able to use sticky sessions with better results.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources