MySQL Forums
Forum List  »  German

Probleme in einer M5.1 SL5.7 Replikation
Posted by: Ingo Eisenkrämer
Date: December 11, 2018 09:47AM

Hallo, ich habe eine Frage zu einer Replikation.
Der Master ist ein 5.1 und der Slave ein 5.7.
Wir haben 2 Replikationen in der Art. Eine, die große LDIFs macht und die einwandfrei so funktioniert.
Die Andere, die laged, macht sehr viele Inserts und Updates.
Die Netzwerkgeschwindigkeit ist okay. Die Relaylogs sind alle da, werden aber sehr langsam abgearbeitet.
Der Server hat 32 Kerne und ein Raid10, was vollkommen ausreichen sollte.
Wenn ich mit htop die Auslastung überprüfe, ist sehr wenig Last drauf.
Der Speicher(64GB) mit 16GB nicht ausgelastet.
Bei top zeigen sich die WS im 0,1 Bereich.
Mit tuning_primer überprüft, sind die Werte fast alle grün. Ich habe ihm nur etwas zuviel Query-cache gegeben.
Was könnte das sein?


Show slave status\G

Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.024334
Read_Master_Log_Pos: 33169605
Relay_Log_File: rilke2-relay-bin.000006
Relay_Log_Pos: 75714564
Relay_Master_Log_File: mysql-bin.024309
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 75714375
Relay_Log_Space: 2633556696
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: 75420
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 0
Last_SQL_Error:
Replicate_Ignore_Server_Ids:
Master_Server_Id: 4
Master_UUID:
Master_Info_File: /var/lib/mysql/master.info
SQL_Delay: 0
SQL_Remaining_Delay: NULL
Slave_SQL_Running_State: query end
Master_Retry_Count: 86400
Master_Bind:
Last_IO_Error_Timestamp:
Last_SQL_Error_Timestamp:
Master_SSL_Crl:
Master_SSL_Crlpath:
Retrieved_Gtid_Set:
Executed_Gtid_Set:
Auto_Position: 0
Replicate_Rewrite_DB:
Channel_Name:
Master_TLS_Version:

Die Konfig:
[mysqld]
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /var/tmp


skip-external-locking
socket = /var/run/mysqld/mysqld.sock


key_buffer_size = 1G
max_allowed_packet = 256M
thread_stack = 512K
thread_cache_size = 64
max_connections = 1000
table_open_cache = 4096
sort_buffer_size = 256M
read_buffer_size = 8M
read_rnd_buffer_size = 32M

query_cache_limit = 1M
query_cache_size = 16M

log_error =/var/log/mysql/error.log
server-id = 45
log_bin = /var/log/mysql/mysql-bin.log

expire_logs_days = 3
max_binlog_size = 1G
binlog_format = mixed
skip-slave-start


replicate-do-db=user_archive

log_slave_updates = TRUE

binlog-ignore-db = piwik

binlog_checksum=NONE
binlog_row_image=FULL
binlog_rows_query_log_events=OFF
gtid_mode=OFF
query_cache_type = 1
slow_query_log = 1
long_query_time = 1
slow_query_log_file = /var/log/mysql/slowquery.log

Options: ReplyQuote


Subject
Views
Written By
Posted
Probleme in einer M5.1 SL5.7 Replikation
613
December 11, 2018 09:47AM


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.