MySQL Forums
Forum List  »  Portuguese

Configuração do SGBD para muitos bancos.
Posted by: Allan Moraes ruivo
Date: December 09, 2015 01:48PM

Olá pessoal!
Hoje, eu tenho um servidor com as seguintes configurações:

CPU: 12 x 2.4 Ghz
Memória: 10GB
Disco: 2 discos SAS de 10K

Neste servidor, estão criados algo em torno de 2100 bancos, totalizando 30GB de dados.

O meu my.cnf está desta forma:
# The MySQL server
[mysqld]
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
max_tmp_tables = 100
join_buffer_size = 1M
max_join_size = 1M
max_join_size = 10M
long_query_time = 20
open_files_limit = 128000
myisam_sort_buffer_size = 3M
max_connections = 600
join_buffer_size = 1M
skip-name-resolve
max_allowed_packet = 512M
auto_increment_increment=1
auto_increment_offset=1
wait_timeout = 30
#--------------------------------#
###-Replicacao
binlog-format=MIXED
log-bin
log-slave-updates=false
max_binlog_size=200M
max_relay_log_size=200M
slave_parallel_workers=10
binlog_row_image=minimal
expire_logs_days=2
gtid-mode=off
enforce-gtid-consistency=false
master-info-repository=TABLE
relay-log-info-repository=TABLE
sync-master-info=1
binlog-checksum=CRC32
master-verify-checksum=1
server-id=2
rpl_semi_sync_master_enabled=1
log_bin_trust_function_creators=1
slave_skip_errors=1062
#--------------------------------#
[InnoDB]
innodb_flush_log_at_trx_commit=2
innodb_max_dirty_pages_pct=30
innodb_read_io_threads=4
innodb_write_io_threads=4
innodb_doublewrite=1
innodb_log_file_size=512M
innodb_buffer_pool_instances=4
innodb_log_files_in_group=2
innodb_thread_concurrency=0
innodb_flush_method=O_DIRECT
innodb_autoinc_lock_mode=2
innodb_stats_on_metadata=0
innodb_buffer_pool_size=4G
innodb_file_per_table
key_buffer_size=24M
tmp_table_size=64M
max_heap_table_size=64M
thread-cache-size=512
query-cache-type=0
query-cache-size=0
table_open_cache=15000

[safe_mysqld]
#err-log=/var/lib/mysql/mysqld.log

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash

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

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

[mysqlhotcopy]
interactive-timeout

O servidor também possui replicação, MASTER to MASTER, com um outro servidor idêntico.

Minha dúvida é, esta configuração é a ideal para um servidor com este número de bancos e com uma média de 600 querys por minuto?

Options: ReplyQuote


Subject
Views
Written By
Posted
Configuração do SGBD para muitos bancos.
1882
December 09, 2015 01:48PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.