Foros del Web » Administración de Sistemas » Cloud Computing »

Duda sobrecarga de servidor virtual dedicado

Estas en el tema de Duda sobrecarga de servidor virtual dedicado en el foro de Cloud Computing en Foros del Web. Hola, Tengo un blog con las siguientes características: blog en Wordpress de 5.000 visitas día - max usuarios online día: 60 alojado en (dv) Dedicated-Virtual ...
  #1 (permalink)  
Antiguo 19/08/2010, 15:08
 
Fecha de Ingreso: junio-2010
Mensajes: 6
Antigüedad: 13 años, 10 meses
Puntos: 0
Pregunta Duda sobrecarga de servidor virtual dedicado

Hola,

Tengo un blog con las siguientes características:

blog en Wordpress de 5.000 visitas día - max usuarios online día: 60
alojado en (dv) Dedicated-Virtual - (dv) BASE (512MB Dedicated RAM) mediatemple.net

El problema es que por la mañana (desde las 7:00 hasta las 16:00 hora española) entran muy pocas visitas, el indice de carga esta genial no sobrepasa de 1, pero al llegar la tarde la cosa se complica (parece que quieran entrar todos de golpe) y sin hacer ninguna modificacion el indice de carga llega hasta los 20 llegando a tirar el servidor :(
Yo pienso que mi problema esta en el httpd.conf que es el siguiente:

Código HTML:
ServerTokens OS

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/etc/httpd"

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
#
PidFile run/httpd.pid

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 20

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive Off

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
## 

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers 5
MinSpareServers 10
MaxSpareServers 15
ServerLimit 80
MaxClients 80
MaxRequestsPerChild  4000
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers 1
MaxClients 50
MinSpareThreads     25
MaxSpareThreads     75 
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80
(esta resumido)


La pregunta es: ¿alguien ve algo mal/mejorable, en el httpd.conf?

Seguro que mi duda le sirve a más de uno!
Saludos

Última edición por aveo; 19/08/2010 a las 15:22
  #2 (permalink)  
Antiguo 20/08/2010, 12:43
Avatar de Datacenter1
Usuario no validado
 
Fecha de Ingreso: agosto-2005
Ubicación: Chicago
Mensajes: 1.982
Antigüedad: 18 años, 8 meses
Puntos: 144
Respuesta: Duda sobrecarga de servidor virtual dedicado

No creo que puedas mejorar mucho por el lado de apache, tal vez por php, mysql y wordpress

Instala un cache PHP, recomiendo eaccelerator
Instala un cache para Wordpress (vía plugins)
Intenta optimizar mysql
Dile a tus visitantes que no entren todos juntos :)
  #3 (permalink)  
Antiguo 21/08/2010, 00:37
 
Fecha de Ingreso: septiembre-2003
Mensajes: 1.200
Antigüedad: 20 años, 7 meses
Puntos: 8
Respuesta: Duda sobrecarga de servidor virtual dedicado

como comenta datacenter 1, optimiza apache, optimiza mysql, otra opcion que te ayudaria mucha al menos aumentale a 1 GB a tu servidor virtual dedicado, pero trata primero con la optimizacion de esos 2 servicios muchas veces al optimizarlos reduces de un 25 hasta 70% de consumo.
__________________
La Madriguera Hosting Mexico
Empresarialhttp://www.lamadriguera.net
Ventas de Pc http://pc.lamadriguera.net
  #4 (permalink)  
Antiguo 22/08/2010, 02:41
Avatar de mihosting  
Fecha de Ingreso: febrero-2006
Ubicación: Madrid
Mensajes: 68
Antigüedad: 18 años, 2 meses
Puntos: 1
Respuesta: Duda sobrecarga de servidor virtual dedicado

Sobre el httpd.conf

MaxRequestsPerChild 4000

Puede realizar milagros, pero es una cuestion de prueba y error. Reducelo a 100 y miras si notas mejora. 0 es ilimitado, asi que no creo que sea la mejor opcion.

Timeout 20 , 20 esta normal. si los problemas son tan importantes como dices, lo bajaria a 10 y probaria. Con esto corres algunos riesgos, pero conseguiras que tu pagina termine atendiendo a mas usuarios. que se la permites dispararse en recursos, que al final no atendera a nadie.
__________________
Saludos

Miguel Herrero
www.miHosting.net
  #5 (permalink)  
Antiguo 23/08/2010, 13:22
Avatar de hyperwin  
Fecha de Ingreso: agosto-2010
Mensajes: 1.290
Antigüedad: 13 años, 8 meses
Puntos: 68
Respuesta: Duda sobrecarga de servidor virtual dedicado

Me inclinaría a que probaras reduciendo el KeepAliveTimeout, prueba estableciéndolo en 3 o 5 e instala eaccelerator

Etiquetas: blog, httpd.conf, mediatemple, servidores, vps, wordpress
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 19:41.