00001 /* Licensed to the Apache Software Foundation (ASF) under one or more 00002 * contributor license agreements. See the NOTICE file distributed with 00003 * this work for additional information regarding copyright ownership. 00004 * The ASF licenses this file to You under the Apache License, Version 2.0 00005 * (the "License"); you may not use this file except in compliance with 00006 * the License. You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00025 #ifndef APACHE_MPM_DEFAULT_H 00026 #define APACHE_MPM_DEFAULT_H 00027 00028 /* Number of servers to spawn off by default --- also, if fewer than 00029 * this free when the caretaker checks, it will spawn more. 00030 */ 00031 #ifndef DEFAULT_START_DAEMON 00032 #define DEFAULT_START_DAEMON 5 00033 #endif 00034 00035 /* Maximum number of *free* server processes --- more than this, and 00036 * they will die off. 00037 */ 00038 00039 #ifndef DEFAULT_MAX_FREE_DAEMON 00040 #define DEFAULT_MAX_FREE_DAEMON 10 00041 #endif 00042 00043 /* Minimum --- fewer than this, and more will be created */ 00044 00045 #ifndef DEFAULT_MIN_FREE_DAEMON 00046 #define DEFAULT_MIN_FREE_DAEMON 5 00047 #endif 00048 00049 /* File used for accept locking, when we use a file */ 00050 #ifndef DEFAULT_LOCKFILE 00051 #define DEFAULT_LOCKFILE DEFAULT_REL_RUNTIMEDIR "/accept.lock" 00052 #endif 00053 00054 /* Where the main/parent process's pid is logged */ 00055 #ifndef DEFAULT_PIDLOG 00056 #define DEFAULT_PIDLOG DEFAULT_REL_RUNTIMEDIR "/httpd.pid" 00057 #endif 00058 00059 /* 00060 * Interval, in microseconds, between scoreboard maintenance. 00061 */ 00062 #ifndef SCOREBOARD_MAINTENANCE_INTERVAL 00063 #define SCOREBOARD_MAINTENANCE_INTERVAL 1000000 00064 #endif 00065 00066 /* Number of requests to try to handle in a single process. If <= 0, 00067 * the children don't die off. 00068 */ 00069 #ifndef DEFAULT_MAX_REQUESTS_PER_CHILD 00070 #define DEFAULT_MAX_REQUESTS_PER_CHILD 10000 00071 #endif 00072 00073 #endif /* AP_MPM_DEFAULT_H */ 00074