http://fastcgi.coremail.cn/

 What is mod_fcgid? It is a binary compatibility alternative to Apache
module mod_fastcgi.

mod_fcgid has a new process management strategy, which concentrates on
reducing the number of fastcgi server, and kick out the corrupt
fastcgi server as soon as possible.



Goals For the Implementation

Binary compatibility to mod_fastcgi
You don't need to recompile your existing fastcgi programs, what you
need to do is install the module and make it work.


Strict control on process spawn
Every request handler of Apache (It may be a process, or a thread,
depending on the MPM) knows about how many existing fastcgi servers
are running (with the help of share memory) , and the request handlers
collaborate with each other to make sure over-spawning is not going to
happen.


Simple spawning-speed control strategy
It's a score-based strategy, the score increases while a process is
spawned or terminated, and decreases as time progresses;while the
score is higher than the score maximum,the spawning will be held. Thus
it can make a prompt response to the requests especially when the
system starts up: on the other hand, prevent the failure resulted from
the immediate termination of the applications.


Fastcgi server error detection
The fastcgi server does not share the same UNIX domain socket (or
named pipe, in Windows), every fastcgi
server has a unique path listening on. That makes it easy to kick out
the corrupt fastcgi server.


Portable
Use the Apache APR library as much as possible, and split the portable
and un-portable source code. All
un-portable code are organized in arch directory. Now the module is
tested on Linux, FreeBSD( included in FreeBSD port now), Windows 2000
and Solaris.


PHP supported
PHP is NOT recommended to work with multithreaded Apache2(worker MPM
and WinNT MPM, for example), because some PHP extensions( or 3rd party
library they are using)  are not guaranteed thread-safe. PHP running
with FastCGI mode is a solution to this problem.

To enable FastCGI, You can configure PHP with --enable-fastcgi and
recompile PHP . ( FastCGI is build in supported  if PHP is installed
with Win32 installer, which can be downloaded from www.php.net )

-- 
I'm Earth-Man.
我是地球人.
        --zsp(张沈鹏)

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to