Ir para conteúdo
Fórum Script Brasil

paradex_br

Membros
  • Total de itens

    1
  • Registro em

  • Última visita

Sobre paradex_br

paradex_br's Achievements

0

Reputação

  1. Configurei a replicação do meu banco de dados Mysql 5.6.32. Tudo estava funcionando e do nada a replicação parou. Investigando o log no slave encontro este erro: [ERROR] Error reading packet from server: Lost connection to MySQL server during query (server_errno=2013) Verifiquei muitos posts que falam em aumentar o "max_allowed_packet" porem já setei ele para 70G e mesmo assim não funcionou. Já setei também o "relay_log_space_limit = 0" para o espaço do log ser ilimitado. Enfim, nada funcionou. Ao efetuar um "show processlist;" no master vejo varias sessões com o meu IP "Bilog DUMP" e "write net" | 96323 | replica | <IP_Externo>:18878 | NULL | Binlog Dump | 7292 | Writing to net | NULL | | 96324 | replica | <IP_Externo>:18921 | NULL | Binlog Dump | 7230 | Writing to net | NULL | | 96325 | replica | <IP_Externo>:18955 | NULL | Binlog Dump | 7168 | Writing to net | NULL | | 96326 | replica | <IP_Externo>:19119 | NULL | Binlog Dump | 7074 | Writing to net | NULL | | 96327 | replica | <IP_Externo>:19199 | NULL | Binlog Dump | 7012 | Writing to net | NULL | | 96333 | replica | <IP_Externo>:20779 | NULL | Binlog Dump | 6630 | Writing to net | NULL | | 96334 | replica | <IP_Externo>:20894 | NULL | Binlog Dump | 6568 | Writing to net | NULL | | 96335 | replica | <IP_Externo>:20934 | NULL | Binlog Dump | 6505 | Writing to net | NULL | Mesmo efetuando kill nessas sessões elas não morrem. Configurações do my.cnf do slave: [mysqld] # set basedir to your installation path basedir=C:\\mysql # set datadir to the location of your data directory datadir=G:\\Mysql server-id=30 gtid_mode=ON enforce_gtid_consistency=true log_bin=C:\\mysql\\data log_slave_updates=true max_connections=1500 query_cache_size=5000 table_open_cache=2000 tmp_table_size=512M thread_cache_size=100 myisam_max_sort_file_size=10G myisam_sort_buffer_size=630M key_buffer_size=8M read_buffer_size=64K read_rnd_buffer_size=512K innodb_flush_log_at_trx_commit=4 innodb_log_buffer_size=1M innodb_buffer_pool_size=8M innodb_log_file_size=15G innodb_thread_concurrency=9 innodb_autoextend_increment=64 innodb_buffer_pool_instances=8 innodb_concurrency_tickets=5000 innodb_old_blocks_time=1000 innodb_open_files=300 innodb_stats_on_metadata=0 innodb_file_per_table=1 innodb_checksum_algorithm=0 flush_time=0 join_buffer_size=10M max_connect_errors=1000 open_files_limit=4161 query_cache_type=0 sort_buffer_size=512K table_definition_cache=1400 binlog_row_event_max_size=8K #Opções ajustadas hoje slave_transaction_retries=100 slave_max_allowed_packet = 70G max_allowed_packet=70G net_read_timeout=120 net_write_timeout=60 slave_net_timeout=3600 relay_log_space_limit = 0 PS: Eu consigo conectar no mysql com este usuário e senha do servidor slave: C:\Mysql\bin>mysql -u replica -p<senha>-h <IP_do_Master> Warning: Using a password on the command line interface can be insecure. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 96339 Server version: 5.6.14-log MySQL Community Server (GPL) Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> Agradeço qualquer ajuda.
×
×
  • Criar Novo...