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