Ver Mensaje Individual
  #3 (permalink)  
Antiguo 24/08/2012, 02:27
arrasia
 
Fecha de Ingreso: octubre-2007
Mensajes: 68
Antigüedad: 16 años, 7 meses
Puntos: 6
Respuesta: Keepalive para web con mucho trafico

Cita:
Iniciado por Datacenter1 Ver Mensaje
Para alto tráfico es preferible dejarlo en off o colocarle un timeout muy bajo (3 a 5 segundos)

Sin embargo sin conocer más detalles del servidor carga y otros ajustes del httpd.conf es dificil hacer más recomendaciones
Código:
LockFile ${APACHE_LOCK_DIR}/accept.lock
PidFile ${APACHE_PID_FILE}
Timeout 120

KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 5

<IfModule mpm_prefork_module>
    StartServers         8
    MinSpareServers      5
    MaxSpareServers     20
    MaxClients         256
    MaxRequestsPerChild 4000
</IfModule>

<IfModule mpm_worker_module>
    StartServers         2
    MinSpareThreads     25
    MaxSpareThreads     75 
    ThreadLimit          50
    ThreadsPerChild      25
    MaxClients          150
    MaxRequestsPerChild   0
</IfModule>

<IfModule mpm_event_module>
    StartServers          2
    MaxClients          256
    MinSpareThreads      25
    MaxSpareThreads      75 
    ThreadLimit          64
    ThreadsPerChild      25
    MaxRequestsPerChild   0
</IfModule>

User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}

AccessFileName .htaccess

<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy all
</Files>

DefaultType text/plain
HostnameLookups Off
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn

Include mods-enabled/*.load
Include mods-enabled/*.conf

Include httpd.conf

Include ports.conf

LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

Include conf.d/

Include sites-enabled/
Esta es la configuración que tiene, básicamente está por defecto salvo algunas combinaciones de mpm_event_module.

¿como lo ves?