mpm_default.h revision ca47a2b6bcea23e8af185c68f256dcbbfd2a0f9d
2N/A/* ====================================================================
2N/A * The Apache Software License, Version 1.1
2N/A *
2N/A * Copyright (c) 2000-2001 The Apache Software Foundation. All rights
2N/A * reserved.
2N/A *
2N/A * Redistribution and use in source and binary forms, with or without
2N/A * modification, are permitted provided that the following conditions
2N/A * are met:
2N/A *
2N/A * 1. Redistributions of source code must retain the above copyright
2N/A * notice, this list of conditions and the following disclaimer.
2N/A *
2N/A * 2. Redistributions in binary form must reproduce the above copyright
2N/A * notice, this list of conditions and the following disclaimer in
2N/A * the documentation and/or other materials provided with the
2N/A * distribution.
2N/A *
2N/A * 3. The end-user documentation included with the redistribution,
2N/A * if any, must include the following acknowledgment:
2790N/A * "This product includes software developed by the
2790N/A * Apache Software Foundation (http://www.apache.org/)."
5337N/A * Alternately, this acknowledgment may appear in the software itself,
2N/A * if and wherever such third-party acknowledgments normally appear.
2N/A *
2N/A * 4. The names "Apache" and "Apache Software Foundation" must
2N/A * not be used to endorse or promote products derived from this
2N/A * software without prior written permission. For written
2N/A * permission, please contact apache@apache.org.
3817N/A *
2N/A * 5. Products derived from this software may not be called "Apache",
2N/A * nor may "Apache" appear in their name, without prior written
2N/A * permission of the Apache Software Foundation.
59N/A *
59N/A * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
2N/A * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2N/A * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
2N/A * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
2N/A * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26N/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26N/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
2N/A * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
26N/A * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
1470N/A * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
38N/A * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1470N/A * SUCH DAMAGE.
1470N/A * ====================================================================
1470N/A *
181N/A * This software consists of voluntary contributions made by many
26N/A * individuals on behalf of the Apache Software Foundation. For more
4811N/A * information on the Apache Software Foundation, please see
4811N/A * <http://www.apache.org/>.
4811N/A *
3739N/A * Portions of this software are based upon public domain software
3739N/A * originally written at the National Center for Supercomputing Applications,
3739N/A * University of Illinois, Urbana-Champaign.
3739N/A */
3739N/A
3739N/A#ifndef APACHE_MPM_DEFAULT_H
3739N/A#define APACHE_MPM_DEFAULT_H
3739N/A
3817N/A/* Number of servers to spawn off by default --- also, if fewer than
3817N/A * this free when the caretaker checks, it will spawn more.
26N/A */
26N/A#ifndef DEFAULT_START_DAEMON
26N/A#define DEFAULT_START_DAEMON 1
26N/A#endif
26N/A
26N/A/* Maximum number of *free* server processes --- more than this, and
26N/A * they will die off.
700N/A */
700N/A
26N/A#ifndef DEFAULT_MAX_FREE_DAEMON
26N/A#define DEFAULT_MAX_FREE_DAEMON 1
26N/A#endif
1498N/A
1498N/A/* Minimum --- fewer than this, and more will be created */
26N/A
1498N/A#ifndef DEFAULT_MIN_FREE_DAEMON
151N/A#define DEFAULT_MIN_FREE_DAEMON 1
206N/A#endif
26N/A
26N/A#ifndef DEFAULT_THREADS_PER_CHILD
26N/A#define DEFAULT_THREADS_PER_CHILD 50
26N/A#endif
26N/A
3998N/A/* Number of threads to spawn off by default --- also, if fewer than
2818N/A * this free when the caretaker checks, it will spawn more.
2830N/A */
3127N/A#ifndef DEFAULT_START_THREADS
3998N/A#define DEFAULT_START_THREADS DEFAULT_THREADS_PER_CHILD
26N/A#endif
3294N/A
26N/A/* Maximum number of *free* threads --- more than this, and
2N/A * they will die off.
4747N/A */
4437N/A
4437N/A#ifndef DEFAULT_MAX_FREE_THREADS
4488N/A#define DEFAULT_MAX_FREE_THREADS 100
4488N/A#endif
4437N/A
4437N/A/* Minimum --- fewer than this, and more will be created */
26N/A
26N/A#ifndef DEFAULT_MIN_FREE_THREADS
26N/A#define DEFAULT_MIN_FREE_THREADS 10
26N/A#endif
883N/A
26N/A/* File used for accept locking, when we use a file */
26N/A/*#ifndef DEFAULT_LOCKFILE
26N/A #define DEFAULT_LOCKFILE "logs/accept.lock"
26N/A #endif
1043N/A*/
4953N/A
4953N/A/* Scoreboard file, if there is one */
586N/A#ifndef DEFAULT_SCOREBOARD
26N/A#define DEFAULT_SCOREBOARD "logs/apache_runtime_status"
5329N/A#endif
5329N/A
93N/A/* Where the main/parent process's pid is logged */
5329N/A/*#ifndef DEFAULT_PIDLOG
5329N/A #define DEFAULT_PIDLOG "logs/httpd.pid"
166N/A #endif
26N/A*/
379N/A
379N/A/*
1498N/A * Interval, in microseconds, between scoreboard maintenance.
5123N/A */
1498N/A#ifndef SCOREBOARD_MAINTENANCE_INTERVAL
4518N/A#define SCOREBOARD_MAINTENANCE_INTERVAL 1000000
4518N/A#endif
2899N/A
2236N/A/* Number of requests to try to handle in a single process. If <= 0,
2818N/A * the children don't die off.
4910N/A */
2N/A#ifndef DEFAULT_MAX_REQUESTS_PER_CHILD
26N/A#define DEFAULT_MAX_REQUESTS_PER_CHILD 0
26N/A#endif
181N/A
181N/A#endif /* AP_MPM_DEFAULT_H */
4353N/A