You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rs...@hyperreal.org on 1999/08/12 10:59:12 UTC

cvs commit: apache-2.0/mpm/conf httpd.conf-dist

rse         99/08/12 01:59:11

  Modified:    mpm/conf httpd.conf-dist
  Log:
  Allow is to fire up both prefork and dexter MPM based Apache/mpm's with one
  config file. Feel free to adjust the numbers, please. I've still not looked at
  them carefully - only tested that the beast runs and serves this way.
  
  Revision  Changes    Path
  1.3       +25 -50    apache-2.0/mpm/conf/httpd.conf-dist
  
  Index: httpd.conf-dist
  ===================================================================
  RCS file: /home/cvs/apache-2.0/mpm/conf/httpd.conf-dist,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- httpd.conf-dist	1999/07/04 09:38:02	1.2
  +++ httpd.conf-dist	1999/08/12 08:59:11	1.3
  @@ -83,7 +83,9 @@
   # this file will be  created when you run Apache) then you *must* ensure that
   # no two invocations of Apache share the same scoreboard file.
   #
  +<IfModule !dexter.c>
   ScoreBoardFile logs/apache_runtime_status
  +</IfModule>
   
   #
   # In the standard configuration, the server will process this file,
  @@ -121,59 +123,32 @@
   #
   KeepAliveTimeout 15
   
  -#
  -# Server-pool size regulation.  Rather than making you guess how many
  -# server processes you need, Apache dynamically adapts to the load it
  -# sees --- that is, it tries to maintain enough server processes to
  -# handle the current load, plus a few spare servers to handle transient
  -# load spikes (e.g., multiple simultaneous requests from a single
  -# Netscape browser).
  -#
  -# It does this by periodically checking how many servers are waiting
  -# for a request.  If there are fewer than MinSpareServers, it creates
  -# a new spare.  If there are more than MaxSpareServers, some of the
  -# spares die off.  The default values are probably OK for most sites.
  -#
  -MinSpareServers 5
  -MaxSpareServers 10
  -
  -#
  -# Number of servers to start initially --- should be a reasonable ballpark
  -# figure.
  -#
  -StartServers 5
  -
  -#
  -# Limit on the number of threads per child process.  The number of clients
  -# who can simultaneously connect is this number times the number of MaxClients.
  -# If this limit is ever reached, clients will be LOCKED out, so it should
  -# not be set too low. 
  -#
  -ThreadsPerChild 8 
  +<IfModule !dexter.c>
  +ScoreBoardFile logs/apache_runtime_status
  +</IfModule>
   
  -#
  -# Limit on total number of servers running, i.e., limit on the number
  -# who can simultaneously connect is this number times the number of MaxClients.
  -# If this limit is ever reached, clients will be LOCKED out, so it should
  -# not be set too low. 
   #
  -MaxClients 8 
  +# Server-pool size regulation
  +# 
   
  -#
  -# MaxRequestsPerChild: the number of requests each child process is
  -# allowed to process before the child dies.  The child will exit so
  -# as to avoid problems after prolonged use when Apache (and maybe the
  -# libraries it uses) leak memory or other resources.  On most systems, this
  -# isn't really needed, but a few (such as Solaris) do have notable leaks
  -# in the libraries. For these platforms, set to something like 10000
  -# or so; a setting of 0 means unlimited.
  -#
  -# NOTE: This value does not include keepalive requests after the initial
  -#       request per connection. For example, if a child process handles
  -#       an initial request and 10 subsequent "keptalive" requests, it
  -#       would only count as 1 request towards this limit.
  -#
  -MaxRequestsPerChild 0
  +# prefork MPM
  +<IfModule prefork.c>
  +StartServers         5
  +MinSpareServers      5
  +MaxSpareServers     10
  +MaxClients           8 
  +MaxRequestsPerChild  0
  +</IfModule>
  +
  +# dexter MPM
  +<IfModule dexter.c>
  +NumServers           5
  +StartThreads         5
  +MinSpareThreads      5
  +MaxSpareThreads     10
  +MaxThreadsPerChild   8
  +MaxRequestsPerChild  0
  +</IfModule>
   
   #
   # Listen: Allows you to bind Apache to specific IP addresses and/or