[MASOCH-L] Mysql

Marcos Dutra macdutra at gmail.com
Thu Oct 25 20:00:40 BRST 2007


Pessoal,

Eu tenho uma máquina Dell 2950 dual XEON com discos SAS 15k rpm e 4GB de
memória, e nele rodo o Mysql5 e o meu problema é que alguns selects pesados
faz o banco paralisar assim se outras pessoas acessarem o banco nesse select
pesado demora p/ retornar.
O banco usa o tipo MyISAM, e eu já fiz de tudo p/ melhorar como índices e
configurações no mysql.
Até em colocar um mysql em outra porta no servidor eu fiz mas não rolou
legal, o servidor continua a dar lock.
Só não queria usar o esquema de replicação para outro.
Abaixo uma configuração que eu fiz:

Abraços
Marcos


# The following options will be passed to all MySQL clients
[client]
#password       = your_password
port            = 3306
socket          = /var/run/mysqld/mysqld.sock

# Here follows entries for some specific programs

# The MySQL server
[mysqld]
port            = 3306
socket          = /var/run/mysqld/mysqld.sock
skip-locking
key_buffer = 512M
max_allowed_packet = 1M
table_cache = 5120
sort_buffer_size = 16M
read_buffer_size = 16M
read_rnd_buffer_size = 16M
myisam_sort_buffer_size = 128M
thread_cache_size = 8
query_cache_size = 64M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 8
[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 = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M

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

[mysqlhotcopy]
interactive-timeout


More information about the masoch-l mailing list