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

How remote instances work on Coldfusion Clustering?

Community Beginner ,
Jun 24, 2014 Jun 24, 2014

I have just decided to set up my site using ColdFusion clustering in the staging environment. I need to find out what code adjustments are required when we move to a cluster environment. I have two machines where Coldfusion server is installed. Till now Steps I followed:

  1. On CFServer_1 I have created a instance.(cfinstance_1)
  2. On CFServer_2 I have created another instance. (cfinstance_2)
  3. On CFServer_1 I have created a Cluster using these two instances.
  4. Now on CFServer_1 I have created a IIS site(testsite.com) pointing to my codebase.
  5. Now On CFServer_1, Using the Web Configuration Tool I have associated testsite.com with the cluster.

Now my question is Do I also need to set up the code base on the second server(CFServer_2), Create a site in IIS with same name(testsite.com) and associate the site with the cfinstance_2?

1.6K
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

correct answers 1 Correct answer

Community Beginner , Jul 02, 2014 Jul 02, 2014

The Key point is

ColdFusion 10 servers must be Enterprise Edition for Session Replication To Work.

As in Developer Edition you will never see a option(Check box) for enabling session replication. Its so strange that some forums explains that "Deselecting the Sticky Session" option leads to session replication, which I tried a lot on my local dev edition but did not worked. I do not understand why Adobe does not explain these things properly on the documentation.

Thanks a lot for the info.

Thanks

Deep

...
Translate
Enthusiast ,
Jun 25, 2014 Jun 25, 2014

Hi Deepak,

Everything is correct

Do not worry, you need not to create a site/folder in the server where you have cfinstance_2. Just place the .cfm in the webroot only and I believe IIS is configured in the machine where you have cfinstance_1.

HTH

Thanks
VJ

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
Community Beginner ,
Jun 25, 2014 Jun 25, 2014

Yes IIS is configured on cfinstance_1. So basically all my project files and folders must be on both the machines.Am I correct?

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 ,
Jun 25, 2014 Jun 25, 2014

Place the cfm in 2 different folders

1. in the webroot (say C:\inetpub\wwwroot)

2. in the cfinstance_2 webroot which is the other server (server 2) where you have this instance. The path will be C:\ColdFusion11\cfinstance_2\wwwroot

Thanks
VJ

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
Community Beginner ,
Jun 28, 2014 Jun 28, 2014

Thanks VJ, for you reply. Now everything is working fine. But I have one more query. Actually I have two instances from my local machine and one instance from remote server. Session replication is not working properly. Session replication works fine when i switch between the two local instances (sessionid remains same) , but the time when it hits to the remote server instance the sessionid changes and all my session variable are lost. I have followed  all the steps exactly mentioned on this link Adobe ColdFusion 10 * Enterprise Manager section .   Do I need any other setting changes?

Any Help would be greatly appreciated.

Thanks,

Deepak Kumar

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 ,
Jul 01, 2014 Jul 01, 2014

Check this thread : https://forums.adobe.com/message/5616340#5616340

Also, make sure when you add the instances in the cluster then you must check the "Session Replication" option

Capture.JPG

HTH

Thanks

VJ

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
Community Beginner ,
Jul 02, 2014 Jul 02, 2014
LATEST

The Key point is

ColdFusion 10 servers must be Enterprise Edition for Session Replication To Work.

As in Developer Edition you will never see a option(Check box) for enabling session replication. Its so strange that some forums explains that "Deselecting the Sticky Session" option leads to session replication, which I tried a lot on my local dev edition but did not worked. I do not understand why Adobe does not explain these things properly on the documentation.

Thanks a lot for the info.

Thanks

Deepak Kumar

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