My understanding was that Apache for NT used the POSIX subsystem, and took somewhat of 
a performance hit because of it.  Is this not the case?

Kevin

>>> [EMAIL PROTECTED] 06/01/01 01:52PM >>>
> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, June 01, 2001 13:37
> To: CF-Talk
> Subject: RE: IIS or Apache? (WAS RE: can anyone help?)
>
>
> We have been running Apache with CF 4.5 on NT 4 for the last 2 year under
> very heavy load and have found no stability problems that were related to
> Apache.  Additionally, because of the open API of apache we have been able
> to do some very interesting things for scale and reliability:

I was running Apache on my development machine for local testing.  It was
rather under-horsepowered for running as a CF server.  But it ran better
than PWS on NT 4.0 Workstation.

>
> 1. Run 2 instances of apache on each web server.  One handles all CF
> requests and one handles all static requests (images mostly).  We
> have found
> that apache can serve over 500 14K files per second on a dual PIII 600 (we
> were actually bottlenecked by the 100mb network.  With 1K files
> we hit about
> 750/sec).  Running 2 instances of apache allows us to have cold
> fusion under
> load and not slow down the delivery of all the images required to complete
> the page.

How did you configure this?  Did the different instances have different
ports?

>
> 2. Create modules to handle high load.  We build pages in CF, then if the
> page is seeing more load than CF can handle, we write an apache module in
> C++ to handle that one function and use the Apache handler to
> intercept the
> ..cfm request, check if we have a custom handler for the page,
> handle it if
> we do, and pass it on to CF if we do not.  This is, BTW how we are able to
> set cookies during a server side redirect.

Nice idea.  I'm hoping the CFFLUSH tag will allow this to happen under IIS.
If not, I am going to suggest that we switch to Apache and try something
similar.  I guess the module set the cookie and then let the CF server
process the cfm page.

>
> 3. Bind different virtual hosts to different ports (I do not use
> IIS so I do
> not know if yuo can do this or not).  Our webserver has a single
> IP and each
> host is a different high port (8080, 8081,8082, etc).  We handle the
> redirection from different external IP's to a single Internal IP,
> different
> port either in the firewall or the load balancer.  This allows the
> adding/removing of hosts without re-ip'ing the web server and limits the
> number of IP addresses which is important for some firewall licensing
> schemes.

IIS has a variety of tools.  You can set it either to answer on a specific
IP address on multi-homed systems.  When you set the IP address, you also
can set the port that the web site (Virtual Server) answers.  Though I have
never tried it, I am told that you can even have IIS differentiate to
different Virtual Servers answering on the same IP address and port based
upon the domain name in the header.  I don't think that is particularly
efficient when it is pretty easy to either multi-home a NIC or have multiple
NICs depending on bandwidth requirements.

>
> We are firm believers in the KISS principle (keep it simple
> stupid).  Apache
> is pretty simple, we upgrade when we want to, and it does not try to hook
> into too many OS functions that may cause issues.

True, but we chose to use IIS since we all (the CF developers) knew how to
administer it.  Only I knew how to administer Apache.

>
> The down side is that it requires a programmer to make the most of it and
> the interface is config file based, which not everyone is
> comfortable with.

Being on old SunOS (NOT Solaris) gearhead I can appreciate it.  I still
prefer to tweak my Win 2K box by editing the Win.ini file.

>
> My $.02

Thanks for sharing it.  It gave me a few ideas to file away and suprise the
CTO with. ;)

>
> Justin
>
> Justin Greene
> Co-CEO
> ClicVU, Inc.
> 216 West 18th St., Floor 12 - NYC 10011
> P: 212-629-8900 - F: 212-629-9860
> http://www.clicvu.com 
> [snip]
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to