Ver Mensaje Individual
  #4 (permalink)  
Antiguo 10/06/2009, 11:59
Marchello
 
Fecha de Ingreso: diciembre-2006
Mensajes: 21
Antigüedad: 17 años, 11 meses
Puntos: 0
Respuesta: VPS, ¿Mal configurado?

Hablé con el proveedor y me ha sugerido esta configuración:

Cita:
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 128M
max_allowed_packet = 1M
table_cache = 128
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 32M
thread_cache_size = 8
query_cache_size= 8M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 8

# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking

# Disable Federated by default
skip-federated

# Replication Master Server (default)
# binary logging is required for replication
log-bin=mysql-bin

# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id = 1

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout

Parece que va bien, pero se sigue saturando....

Cita:
-------
-bash-3.2# cat /proc/user_beancounters
Version: 2.5
uid resource held maxheld barrier limit failcnt
8244: kmemsize 7146741 7165042 24606720 27340800 0
lockedpages 0 0 512 512 0
privvmpages 95976 95981 230400 256000 263928
shmpages 660 660 43008 43008 0
dummy 0 0 0 0 0
numproc 85 85 240 240 18869
physpages 22711 22712 0 2147483647 0
vmguarpages 0 0 128000 2147483647 0
oomguarpages 22802 22803 52224 2147483647 0
numtcpsock 48 48 720 720 0
numflock 11 11 338 376 0
numpty 1 1 32 32 0
numsiginfo 0 0 512 512 0
tcpsndbuf 263148 263148 2113536 3522560 63
tcprcvbuf 262916 262916 2113536 3522560 0
othersockbuf 30860 30860 1373184 3522560 0
dgramrcvbuf 0 0 536576 536576 0
numothersock 32 32 360 360 0
dcachesize 672231 675176 4093977 4548864 0
numfile 2671 2680 11640 11640 75600
dummy 0 0 0 0 0
dummy 0 0 0 0 0
dummy 0 0 0 0 0
numiptent 52 52 256 256 0
-bash-3.2#
--------
¿Qué pensáis? ¿Qué más puedo mirar?