How to set up cluster with SESSION replication in Coldfusion 10?Discover Which Coldfusion Server Being Used In ClusterProblem with session variables using ColdFusion, Tomcat and FirefoxClustering with ColdFusionColdFusion 9 Cluster on VMWareLoad Balancing and Clustering using mod_proxy_ajp on Apache HTTP Server 2.2.21 and Tomcat 7.0.23Session replication in Tomcatfailover cluster file replicationHow remote instances work on Coldfusion Clustering?How to enable stateless session resumption cache behind load balancer?Tomcat session replication issue
How to not starve gigantic beasts
How important is it that $TERM is correct?
SFDX - Create Objects with Custom Properties
Extracting Dirichlet series coefficients
Find the identical rows in a matrix
Contradiction proof for inequality of P and NP?
Does a large simulator bay have standard public address announcements?
Von Neumann Extractor - Which bit is retained?
Why did Rep. Omar conclude her criticism of US troops with the phrase "NotTodaySatan"?
Older movie/show about humans on derelict alien warship which refuels by passing through a star
How much of a wave function must reside inside event horizon for it to be consumed by the black hole?
What does "function" actually mean in music?
Can I criticise the more senior developers around me for not writing clean code?
Work requires me to come in early to start computer but wont let me clock in to get paid for it
What is the term for a person whose job is to place products on shelves in stores?
How can I practically buy stocks?
Could moose/elk survive in the Amazon forest?
Apply a different color ramp to subset of categorized symbols in QGIS?
Will I lose my paid in full property
What is this word supposed to be?
Prove that the countable union of countable sets is also countable
Do I need to watch Ant-Man and the Wasp and Captain Marvel before watching Avengers: Endgame?
What to do with someone that cheated their way through university and a PhD program?
Unknown code in script
How to set up cluster with SESSION replication in Coldfusion 10?
Discover Which Coldfusion Server Being Used In ClusterProblem with session variables using ColdFusion, Tomcat and FirefoxClustering with ColdFusionColdFusion 9 Cluster on VMWareLoad Balancing and Clustering using mod_proxy_ajp on Apache HTTP Server 2.2.21 and Tomcat 7.0.23Session replication in Tomcatfailover cluster file replicationHow remote instances work on Coldfusion Clustering?How to enable stateless session resumption cache behind load balancer?Tomcat session replication issue
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I am not able to set up a cluster with session replication. I have successfully set up a cluster with sticky session.
When googled I found a lot of links explaining the same issue, like
http://cfmlblog.adamcameron.me/2012/11/problem-with-session-replication-with.html
https://forums.adobe.com/thread/1238702?start=0&tstart=0
Does deselecting the sticky session auto enables the session replication?
But no where i got a solutions. Anyone solved this problem?
load-balancing failovercluster coldfusion session
add a comment |
I am not able to set up a cluster with session replication. I have successfully set up a cluster with sticky session.
When googled I found a lot of links explaining the same issue, like
http://cfmlblog.adamcameron.me/2012/11/problem-with-session-replication-with.html
https://forums.adobe.com/thread/1238702?start=0&tstart=0
Does deselecting the sticky session auto enables the session replication?
But no where i got a solutions. Anyone solved this problem?
load-balancing failovercluster coldfusion session
add a comment |
I am not able to set up a cluster with session replication. I have successfully set up a cluster with sticky session.
When googled I found a lot of links explaining the same issue, like
http://cfmlblog.adamcameron.me/2012/11/problem-with-session-replication-with.html
https://forums.adobe.com/thread/1238702?start=0&tstart=0
Does deselecting the sticky session auto enables the session replication?
But no where i got a solutions. Anyone solved this problem?
load-balancing failovercluster coldfusion session
I am not able to set up a cluster with session replication. I have successfully set up a cluster with sticky session.
When googled I found a lot of links explaining the same issue, like
http://cfmlblog.adamcameron.me/2012/11/problem-with-session-replication-with.html
https://forums.adobe.com/thread/1238702?start=0&tstart=0
Does deselecting the sticky session auto enables the session replication?
But no where i got a solutions. Anyone solved this problem?
load-balancing failovercluster coldfusion session
load-balancing failovercluster coldfusion session
asked Jun 6 '14 at 12:08
user3427540user3427540
12917
12917
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Cross posting here from my answer on StackOverflow to this same question
From the article you included by Adam Cameron he mentions having trouble with session replication - Problem with session replication with CF10 clustering. The key here is that a bug was entered for ColdFusion 10 (3361502) not having the option to enable session replication in the Administrator. That bug has since been fixed. Are you running the updated version?
In one of the comments from that bug someone from Adobe mentions this:
When sticky session is enabled the session is not replicated and when sticky session is disabled the session is automatically replicated.
So it would seem that in ColdFusion 10 when you disable sticky sessions, that should enable session replication. You must also enable J2EE session variables.
There are also some limitations with session replication. From the docs here:
Session replication also ensures that that Session scope variables are replicated across the cluster. However, session replication does not support replication of arrays in Session scope CFCs or variables.
After a brief chat I referred the OP to this article - Working with Tomcat as the built-in application server which goes into greater detail about working with clusters in ColdFusion 10. Of particular interest is the section regarding cluster management titled "Adding remote instance to the cluster". In there it mentions some additions that need to be made to the server.xml file on each remote instance.
Use the following steps to add a remote instance to a cluster:
- Register the remote instance to local machine.
- Create a cluster in the local machine.
- Open the cf_install_dirinstance-nameruntimeconfserver.xml file of the remote instance.
- Add the following block between the entries
</host>
and</engine>
:
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" channelSendOptions="8">
<Manager notifyListenersOnReplication="true" expireSessionsOnShutdown="false" className="org.apache.catalina.ha.session.DeltaManager">
</Manager>
<Channel className="org.apache.catalina.tribes.group.GroupChannel">
<Membership port="45565" dropTime="3000" address="228.0.0.4" className="org.apache.catalina.tribes.membership.McastService" frequency="500">
</Membership>
<Receiver port="4003" autoBind="100" address="auto" selectorTimeout="5000" maxThreads="6" className="org.apache.catalina.tribes.transport.nio.NioReceiver">
</Receiver>
<Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
<Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender">
</Transport>
</Sender>
<Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector">
</Interceptor>
<Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor">
</Interceptor>
</Channel>
<Valve className="org.apache.catalina.ha.tcp.ReplicationValve" filter="">
</Valve>
<Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve">
</Valve>
<ClusterListener className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener">
</ClusterListener>
<ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener”>
</ClusterListener>
</Cluster>
5 . In the entry above, update the membership port with the multicast port of the cluster.
6 . Using ColdFusion administrator of the local host, add the local instance and the remote instance to the cluster.
Note: If you enable sticky sessions, the JVM route of the remote instance and local instance must not be the same.
7 . Restart all of the instances.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f602333%2fhow-to-set-up-cluster-with-session-replication-in-coldfusion-10%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Cross posting here from my answer on StackOverflow to this same question
From the article you included by Adam Cameron he mentions having trouble with session replication - Problem with session replication with CF10 clustering. The key here is that a bug was entered for ColdFusion 10 (3361502) not having the option to enable session replication in the Administrator. That bug has since been fixed. Are you running the updated version?
In one of the comments from that bug someone from Adobe mentions this:
When sticky session is enabled the session is not replicated and when sticky session is disabled the session is automatically replicated.
So it would seem that in ColdFusion 10 when you disable sticky sessions, that should enable session replication. You must also enable J2EE session variables.
There are also some limitations with session replication. From the docs here:
Session replication also ensures that that Session scope variables are replicated across the cluster. However, session replication does not support replication of arrays in Session scope CFCs or variables.
After a brief chat I referred the OP to this article - Working with Tomcat as the built-in application server which goes into greater detail about working with clusters in ColdFusion 10. Of particular interest is the section regarding cluster management titled "Adding remote instance to the cluster". In there it mentions some additions that need to be made to the server.xml file on each remote instance.
Use the following steps to add a remote instance to a cluster:
- Register the remote instance to local machine.
- Create a cluster in the local machine.
- Open the cf_install_dirinstance-nameruntimeconfserver.xml file of the remote instance.
- Add the following block between the entries
</host>
and</engine>
:
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" channelSendOptions="8">
<Manager notifyListenersOnReplication="true" expireSessionsOnShutdown="false" className="org.apache.catalina.ha.session.DeltaManager">
</Manager>
<Channel className="org.apache.catalina.tribes.group.GroupChannel">
<Membership port="45565" dropTime="3000" address="228.0.0.4" className="org.apache.catalina.tribes.membership.McastService" frequency="500">
</Membership>
<Receiver port="4003" autoBind="100" address="auto" selectorTimeout="5000" maxThreads="6" className="org.apache.catalina.tribes.transport.nio.NioReceiver">
</Receiver>
<Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
<Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender">
</Transport>
</Sender>
<Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector">
</Interceptor>
<Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor">
</Interceptor>
</Channel>
<Valve className="org.apache.catalina.ha.tcp.ReplicationValve" filter="">
</Valve>
<Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve">
</Valve>
<ClusterListener className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener">
</ClusterListener>
<ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener”>
</ClusterListener>
</Cluster>
5 . In the entry above, update the membership port with the multicast port of the cluster.
6 . Using ColdFusion administrator of the local host, add the local instance and the remote instance to the cluster.
Note: If you enable sticky sessions, the JVM route of the remote instance and local instance must not be the same.
7 . Restart all of the instances.
add a comment |
Cross posting here from my answer on StackOverflow to this same question
From the article you included by Adam Cameron he mentions having trouble with session replication - Problem with session replication with CF10 clustering. The key here is that a bug was entered for ColdFusion 10 (3361502) not having the option to enable session replication in the Administrator. That bug has since been fixed. Are you running the updated version?
In one of the comments from that bug someone from Adobe mentions this:
When sticky session is enabled the session is not replicated and when sticky session is disabled the session is automatically replicated.
So it would seem that in ColdFusion 10 when you disable sticky sessions, that should enable session replication. You must also enable J2EE session variables.
There are also some limitations with session replication. From the docs here:
Session replication also ensures that that Session scope variables are replicated across the cluster. However, session replication does not support replication of arrays in Session scope CFCs or variables.
After a brief chat I referred the OP to this article - Working with Tomcat as the built-in application server which goes into greater detail about working with clusters in ColdFusion 10. Of particular interest is the section regarding cluster management titled "Adding remote instance to the cluster". In there it mentions some additions that need to be made to the server.xml file on each remote instance.
Use the following steps to add a remote instance to a cluster:
- Register the remote instance to local machine.
- Create a cluster in the local machine.
- Open the cf_install_dirinstance-nameruntimeconfserver.xml file of the remote instance.
- Add the following block between the entries
</host>
and</engine>
:
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" channelSendOptions="8">
<Manager notifyListenersOnReplication="true" expireSessionsOnShutdown="false" className="org.apache.catalina.ha.session.DeltaManager">
</Manager>
<Channel className="org.apache.catalina.tribes.group.GroupChannel">
<Membership port="45565" dropTime="3000" address="228.0.0.4" className="org.apache.catalina.tribes.membership.McastService" frequency="500">
</Membership>
<Receiver port="4003" autoBind="100" address="auto" selectorTimeout="5000" maxThreads="6" className="org.apache.catalina.tribes.transport.nio.NioReceiver">
</Receiver>
<Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
<Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender">
</Transport>
</Sender>
<Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector">
</Interceptor>
<Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor">
</Interceptor>
</Channel>
<Valve className="org.apache.catalina.ha.tcp.ReplicationValve" filter="">
</Valve>
<Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve">
</Valve>
<ClusterListener className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener">
</ClusterListener>
<ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener”>
</ClusterListener>
</Cluster>
5 . In the entry above, update the membership port with the multicast port of the cluster.
6 . Using ColdFusion administrator of the local host, add the local instance and the remote instance to the cluster.
Note: If you enable sticky sessions, the JVM route of the remote instance and local instance must not be the same.
7 . Restart all of the instances.
add a comment |
Cross posting here from my answer on StackOverflow to this same question
From the article you included by Adam Cameron he mentions having trouble with session replication - Problem with session replication with CF10 clustering. The key here is that a bug was entered for ColdFusion 10 (3361502) not having the option to enable session replication in the Administrator. That bug has since been fixed. Are you running the updated version?
In one of the comments from that bug someone from Adobe mentions this:
When sticky session is enabled the session is not replicated and when sticky session is disabled the session is automatically replicated.
So it would seem that in ColdFusion 10 when you disable sticky sessions, that should enable session replication. You must also enable J2EE session variables.
There are also some limitations with session replication. From the docs here:
Session replication also ensures that that Session scope variables are replicated across the cluster. However, session replication does not support replication of arrays in Session scope CFCs or variables.
After a brief chat I referred the OP to this article - Working with Tomcat as the built-in application server which goes into greater detail about working with clusters in ColdFusion 10. Of particular interest is the section regarding cluster management titled "Adding remote instance to the cluster". In there it mentions some additions that need to be made to the server.xml file on each remote instance.
Use the following steps to add a remote instance to a cluster:
- Register the remote instance to local machine.
- Create a cluster in the local machine.
- Open the cf_install_dirinstance-nameruntimeconfserver.xml file of the remote instance.
- Add the following block between the entries
</host>
and</engine>
:
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" channelSendOptions="8">
<Manager notifyListenersOnReplication="true" expireSessionsOnShutdown="false" className="org.apache.catalina.ha.session.DeltaManager">
</Manager>
<Channel className="org.apache.catalina.tribes.group.GroupChannel">
<Membership port="45565" dropTime="3000" address="228.0.0.4" className="org.apache.catalina.tribes.membership.McastService" frequency="500">
</Membership>
<Receiver port="4003" autoBind="100" address="auto" selectorTimeout="5000" maxThreads="6" className="org.apache.catalina.tribes.transport.nio.NioReceiver">
</Receiver>
<Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
<Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender">
</Transport>
</Sender>
<Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector">
</Interceptor>
<Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor">
</Interceptor>
</Channel>
<Valve className="org.apache.catalina.ha.tcp.ReplicationValve" filter="">
</Valve>
<Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve">
</Valve>
<ClusterListener className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener">
</ClusterListener>
<ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener”>
</ClusterListener>
</Cluster>
5 . In the entry above, update the membership port with the multicast port of the cluster.
6 . Using ColdFusion administrator of the local host, add the local instance and the remote instance to the cluster.
Note: If you enable sticky sessions, the JVM route of the remote instance and local instance must not be the same.
7 . Restart all of the instances.
Cross posting here from my answer on StackOverflow to this same question
From the article you included by Adam Cameron he mentions having trouble with session replication - Problem with session replication with CF10 clustering. The key here is that a bug was entered for ColdFusion 10 (3361502) not having the option to enable session replication in the Administrator. That bug has since been fixed. Are you running the updated version?
In one of the comments from that bug someone from Adobe mentions this:
When sticky session is enabled the session is not replicated and when sticky session is disabled the session is automatically replicated.
So it would seem that in ColdFusion 10 when you disable sticky sessions, that should enable session replication. You must also enable J2EE session variables.
There are also some limitations with session replication. From the docs here:
Session replication also ensures that that Session scope variables are replicated across the cluster. However, session replication does not support replication of arrays in Session scope CFCs or variables.
After a brief chat I referred the OP to this article - Working with Tomcat as the built-in application server which goes into greater detail about working with clusters in ColdFusion 10. Of particular interest is the section regarding cluster management titled "Adding remote instance to the cluster". In there it mentions some additions that need to be made to the server.xml file on each remote instance.
Use the following steps to add a remote instance to a cluster:
- Register the remote instance to local machine.
- Create a cluster in the local machine.
- Open the cf_install_dirinstance-nameruntimeconfserver.xml file of the remote instance.
- Add the following block between the entries
</host>
and</engine>
:
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" channelSendOptions="8">
<Manager notifyListenersOnReplication="true" expireSessionsOnShutdown="false" className="org.apache.catalina.ha.session.DeltaManager">
</Manager>
<Channel className="org.apache.catalina.tribes.group.GroupChannel">
<Membership port="45565" dropTime="3000" address="228.0.0.4" className="org.apache.catalina.tribes.membership.McastService" frequency="500">
</Membership>
<Receiver port="4003" autoBind="100" address="auto" selectorTimeout="5000" maxThreads="6" className="org.apache.catalina.tribes.transport.nio.NioReceiver">
</Receiver>
<Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
<Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender">
</Transport>
</Sender>
<Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector">
</Interceptor>
<Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor">
</Interceptor>
</Channel>
<Valve className="org.apache.catalina.ha.tcp.ReplicationValve" filter="">
</Valve>
<Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve">
</Valve>
<ClusterListener className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener">
</ClusterListener>
<ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener”>
</ClusterListener>
</Cluster>
5 . In the entry above, update the membership port with the multicast port of the cluster.
6 . Using ColdFusion administrator of the local host, add the local instance and the remote instance to the cluster.
Note: If you enable sticky sessions, the JVM route of the remote instance and local instance must not be the same.
7 . Restart all of the instances.
edited May 23 '17 at 12:41
Community♦
1
1
answered Jun 6 '14 at 14:37
Miguel-FMiguel-F
287310
287310
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f602333%2fhow-to-set-up-cluster-with-session-replication-in-coldfusion-10%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown