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

CF 9.01 Enterprise - multi-instance image problem

New Here ,
Nov 04, 2010 Nov 04, 2010

Have 9.01 enterprise running with 3 instances (sticky sessions) - the problem situation is as follows:  eg. CFchart created on instance1, writes .swf to cache1.  Print of chart writes .jpg to cache1, cfdocument shows that the image has expired - 1 to 3 refreshes of the page will ultimately show the image.  Apears that the cfdocument is looking for the image in other instances.  Removal of the cfdoucment tag and having the image go to a html page works.  Appreciate any assistance that will get us past this.

753
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 Expert ,
Nov 04, 2010 Nov 04, 2010

It sounds like your sticky sessions aren't sticking. The user isn't being directed back to the same server that generated the image.

Dave Watts, CTO, Fig Leaf Software

http://www.figleaf.com/

http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on

GSA Schedule, and provides the highest caliber vendor-authorized

instruction at our training centers, online, or onsite.

Read this before you post:

http://forums.adobe.com/thread/607238

Dave Watts, Eidolon LLC
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
New Here ,
Nov 05, 2010 Nov 05, 2010

I guess my followup question is then, "how to make the sticky sessions sticky?" and why it's only a problem when using cfdocument, as the output to html works as expected.

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 Expert ,
Nov 05, 2010 Nov 05, 2010

Ah! I didn't realize the exact problem you were having until your followup.

CFDOCUMENT is using HTTP to fetch the resources to build the page. That HTTP request isn't being stuck to the same server, as it's not really part of the session.

There are a couple of ways you might fix this problem. One might be to use the local filesystem instead of HTTP using the LOCALURL attribute of CFDOCUMENT. Another might be to direct all requests that invoke CFDOCUMENT to a specific server within the cluster using that server's unique name, so that CFDOCUMENT also uses that unique name.

Dave Watts, CTO, Fig Leaf Software

http://www.figleaf.com/

http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on

GSA Schedule, and provides the highest caliber vendor-authorized

instruction at our training centers, online, or onsite.

Read this before you post:

http://forums.adobe.com/thread/607238

Dave Watts, Eidolon LLC
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
New Here ,
Nov 05, 2010 Nov 05, 2010
LOCALURL generates a broken image.  We are not referencing a specif image, we are using CFCHART to generate.
Just to be clear, when you say "direct all requests to specific server within the cluster"  do you mean specific instance, because we have 3 instances all running on the same server.
Thanx
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 Expert ,
Nov 05, 2010 Nov 05, 2010

OK, using CFCHART makes things a bit more complicated as well, as that generates a temporary file that won't persist very long. By default, CFCHART points to a temporary servlet URL that fetches the temporary file. Instead, you can use the NAME attribute of CFCHART, then use CFFILE to write that file to disk, then use CFDOCUMENT to refer to the local file.

Dave Watts, CTO, Fig Leaf Software

http://www.figleaf.com/

http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on

GSA Schedule, and provides the highest caliber vendor-authorized

instruction at our training centers, online, or onsite.

Read this before you post:

http://forums.adobe.com/thread/607238

Dave Watts, Eidolon LLC
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
New Here ,
Nov 05, 2010 Nov 05, 2010
LATEST

Looks like we have some homework to do.  Thanx again, for all your support.

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