Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Server Administration / July 2008



Tip: Looking for answers? Try searching our database.

CF8 with remote IIS - 2 Quick Questions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ddks2 - 02 Jul 2008 14:44 GMT
All,

For the past couple of days we have been re-designing a clients systems
architecture. I come from a J2EE background and would like to understand a few
things in CF8 / Jrun4

The systems model we are looking at is HLB IIS Web Servers and JRUN multiple
instances likely clustered (and database mirroring on the back-end as well).

The one piece that has got us a little puzzled is the where do the source CFM
files need to exist. We played around a little on a single server deployment
and are now moving to playing in a multi-server (so separate IIS Web server and
JRun/CF server) to better understand the CF - Jrun - IIS relationship.

The two quick questions I have are:
a) Is there a simple install I can run on the IIS web server so that I can get
the JRun connectors installed easily? some people say just run the complete CF8
install and disable the services but I would prefer to simply install the
connector software (I believe this would be the configuration tool & IIS Dll's)?

b) Where do we need to put the source code (CFM,CFC etc)? If the answer is IIS
Web Server is there anyway to keep them only on the JRun server (i would expand
the ISAPI filtering to have ALL content delivered by JRun --> os include htm,
gif etc). Also from a processing perspective is the source CFM file passed to
JRun everytime or only once (and compiled to javabyte code) and the next time
nothing is passed except variables?! Is there any point in deploying a CAR file
into the instance?! On our single server setup it seemed like the CF instance
was still looking at the IIS www-root.....

Also anyone who can share their experience in such a configuration would be
greatly appreciated,

Thanks,
Daniel
Jochem van Dieten **AdobeCommunityExpert** - 02 Jul 2008 15:33 GMT
>  a) Is there a simple install I can run on the IIS web server so that I can get
> the JRun connectors installed easily?

http://www.adobe.com/support/coldfusion/administration/cfmx_in_distributed_mode/
cfmx_in_distributed_mode02.html


>  b) Where do we need to put the source code (CFM,CFC etc)?

On both the IIS and JRun servers in the same path is the only way that
is supported by Adobe.
If you disable the 'check that file exists' option in IIS and tweak the
web.xml file you don't need to have the code on the IIS server though.

Jochem

Signature

Jochem van Dieten
Adobe Community Expert for ColdFusion

ddks2 - 02 Jul 2008 16:24 GMT
Hi Jochem,

Thanks for the quick reply.

I looked at the link you provided. I see now why simply installing all of CF8
might be easier (and then disable JRUN services and CF ODBC stuff). Which would
you recommend? Would all these steps defined in the link be automated and
working correctly or would I still making these manual mods? Also would the
wsconfig.exe work (for future administration by client)?!

Could elaborate a bit more on tweaking the web.xml file to allow for single
directories?  I guess if we do need to keep them on both boxes we at least
automatically get all static content served by the web server.

Thanks again,
Daniel
Jochem van Dieten **AdobeCommunityExpert** - 02 Jul 2008 16:44 GMT
>  I looked at the link you provided. I see now why simply installing all of CF8
> might be easier (and then disable JRUN services and CF ODBC stuff). Which would
> you recommend?

I would install by hand without the full CF.

>  Could elaborate a bit more on tweaking the web.xml file to allow for single
> directories?

What do you need to know? What is the deployment scenario, which content
goes where, etc.?

Jochem

Signature

Jochem van Dieten
Adobe Community Expert for ColdFusion

ddks2 - 02 Jul 2008 22:07 GMT
Thanks again,

We basically want all content to be served by CF8/JRun. So we want the IIS to be basically emtpty and source code cfm , cfc, htm etc on the CF App server(s).

Daniel
Jochem van Dieten **AdobeCommunityExpert** - 03 Jul 2008 07:41 GMT
> We basically want all content to be served by CF8/JRun. So we want the IIS to be basically emtpty and source code cfm , cfc, htm etc on the CF App server(s).

That is not very efficient. But it is possible by adding a mapping in
web.xml for * to the FileServlet.

Jochem

Signature

Jochem van Dieten
Adobe Community Expert for ColdFusion

ddks2 - 04 Jul 2008 05:13 GMT
When you say 'that is not very efficient' what do you base this on? 99.5% of
the content is CF related pages. Each client/subscriber is running approx 8,000
CF pages and only few images exist. Am I missing something here with regards to
what you mean by efficiency? Is your  efficiency comment only related to the
static content piece or is there more to it?

Thanks again for your replies,

daniel
Jochem van Dieten **AdobeCommunityExpert** - 04 Jul 2008 11:52 GMT
> When you say 'that is not very efficient' what do you base this on? 99.5% of
> the content is CF related pages. Each client/subscriber is running approx 8,000
> CF pages and only few images exist. Am I missing something here with regards to
> what you mean by efficiency? Is your  efficiency comment only related to the
> static content piece or is there more to it?

Running static content through IIS/JRun instead of only through IIS is
very inefficient. Not only does it add extra layers (JRun, extra TCP
connection), but it also affects caching. IIS automatically adds some
HTTP headers to improve caching to static content. But from the
perspective of IIS the content it gets from JRun is dynamic so it does
not add those headers. JRun itself doesn't add them either, so you will
end without any cache hints whatsoever for your static content.

Most likely the net effect is that each image will get downloaded once
for every page that uses it, versus once per session + some cache
validation.

Jochem

Signature

Jochem van Dieten
Adobe Community Expert for ColdFusion

ddks2 - 05 Jul 2008 02:07 GMT
Hi Jochen,

Just a quick note to see if there is something funny with these before diving
into these:

Are there any 'issues' with CF data_sources and CF Templates in a distributed
environment? We are getting messages data-source xx not found while data-source
xx is created in cf administrator and also validates.

Also error messages around CSS template not found.

Did you come across these?!

Thanks,
Daniel
ddks2 - 06 Jul 2008 16:49 GMT
Already found the solution to this. Had to do with the instance specific CFAdmin's.
Thanks,

Daniel
Sionathan - 10 Jul 2008 20:35 GMT
Can you please post the link or the steps you took to explore or resolve this?  I'm getting the same results, and it's pretty frustrating.
ddks2 - 10 Jul 2008 23:13 GMT
To resolve it we had to define template paths, mappings and data sources for
each of the instances we created. Essentially in our configuration we have 3
instances running with their own JVM config but also their own CF Admin piece
(so their own data sources, mappings etc). Hope this helps or let me know if
you need more info around the IIS configuration of JRun connectors.

daniel
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.