this post was submitted on 13 Aug 2023
1 points (100.0% liked)

mysql reddit

1 readers
0 users here now

Discussion of MySQL and assistance for MySQL related questions.

founded 1 year ago
MODERATORS
 
This is an automated archive.

The original was posted on /r/mysql by /u/Dull-String945 on 2023-08-13 00:52:10+00:00.


mysql> show master status \G

*************************** 1. row ***************************

File: mysql-bin.003037

Position: 463484365

Binlog_Do_DB:

Binlog_Ignore_DB:

Executed_Gtid_Set: 44bb99b2-d23e-11ea-8cd3-42010a5b0009:1-5045690612,

510a4a4d-9ca6-11e9-be1a-42010a2a0002:1-431998131,

897c72f1-e976-11e9-9016-42010a800fcb:1-537,

d98cad4b-8ca6-11eb-bdc5-42010a8a0002:1-7

1 row in set (0.00 sec)

mysql> show slave status \G

*************************** 1. row ***************************

Slave_IO_State: Waiting for master to send event

Master_Host: 35.203.185.90

Master_User: replication_user

Master_Port: 3306

Connect_Retry: 60

Master_Log_File: mysql-bin.032475

Read_Master_Log_Pos: 222977268

Relay_Log_File: mao-sql-production-relay-bin.073606

Relay_Log_Pos: 222451693

Relay_Master_Log_File: mysql-bin.032475

Slave_IO_Running: Yes

Slave_SQL_Running: Yes

Replicate_Do_DB:

Replicate_Ignore_DB: mysql,performance_schema,information_schema

Replicate_Do_Table:

Replicate_Ignore_Table:

Replicate_Wild_Do_Table:

Replicate_Wild_Ignore_Table: mysql.%,performance_schema.%,information_schema.%

Last_Errno: 0

Last_Error:

Skip_Counter: 0

Exec_Master_Log_Pos: 222451520

Relay_Log_Space: 222977748

Until_Condition: None

Until_Log_File:

Until_Log_Pos: 0

Master_SSL_Allowed: Yes

Master_SSL_CA_File:

Master_SSL_CA_Path:

Master_SSL_Cert:

Master_SSL_Cipher:

Master_SSL_Key:

Seconds_Behind_Master: 1

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: 4294967295

Master_UUID: 897c72f1-e976-11e9-9016-42010a800fcb

Master_Info_File: mysql.slave_master_info

SQL_Delay: 0

SQL_Remaining_Delay: NULL

Slave_SQL_Running_State: Slave has read all relay log; waiting for more updates

Master_Retry_Count: 86400

Master_Bind:

Last_IO_Error_Timestamp:

Last_SQL_Error_Timestamp:

Master_SSL_Crl:

Master_SSL_Crlpath:

Retrieved_Gtid_Set: 44bb99b2-d23e-11ea-8cd3-42010a5b0009:5004462937-5045691789

Executed_Gtid_Set: 44bb99b2-d23e-11ea-8cd3-42010a5b0009:1-5045691789,

510a4a4d-9ca6-11e9-be1a-42010a2a0002:1-431998131,

897c72f1-e976-11e9-9016-42010a800fcb:1-537,

d98cad4b-8ca6-11eb-bdc5-42010a8a0002:1-7

Auto_Position: 1

Replicate_Rewrite_DB:

Channel_Name:

Master_TLS_Version:

1 row in set (0.00 sec)

mysql>

Could anyone help me to understand if the slave is up to date with master?

I know the running paraters are YES that means then the replication status is good. Also, the SECONDS_BEHIND_MASTER is between 0 to 1 sec. But I see there is a big difference between binlog numbers from master vs slave. How could i confirm if there is a lag or not? Please advise.

  1. Slave_IO_Running: Yes

  2. Slave_SQL_Running: Yes

  3. Seconds_Behind_Master: 1

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here