View master and slave library replication thread status through the show Processlist command

Source: Internet
Author: User

1. Main Library IO thread Status Description:

<1>sending Binlog event to Slave

The thread has read an event from the binary log that is being sent to the slave server.

<2>finished reading one binlog;switching to next binlog.

The thread has finished reading the binary log file and is opening the next binary log file to be sent to the slave server.

<3>has sent all binlog to slave; Waitting for Binlog to be updated

The thread has read all the major updates from the binary log and has been sent to the slave server. The thread is now idle, waiting for new events to appear in the binary log caused by new updates on the primary server .

<4>waitting to finalize termination.

The state that occurs when a thread stops.

2 . Description of the status from the library IO thread:

<1>connecting to master;

<2>checking Master Version

A status that occurs immediately after establishing a connection with master.

<3>registering slave on Master;

A status that occurs immediately after establishing a connection with master.

<4>requesting Binlog Dump

A status that occurs immediately after establishing a connection with master.

<5>waiting to reconnect after a failed Binlog dump request.

If the binary log dump request fails (because there is no connection), the thread goes to sleep and then periodically tries to reconnect. You can Specify the retry interval using--master-connect-retry.

<6>reconnecting after a failed binlog dump request.

<7>waitting for Master to send Binlog.

<8>queueing Master event to the relay log.

<9>waitting to reconnect after a failed master event read.

<10>waitting for the Salve SQL thread to free enough relay log space.

<11>waitting for slave mutexes on exit.

State when the thread is stopped.

3. Description of SQL thread status from library:

<1>reading event from the relay log.

<2>hat Read all relay logs, waitting for the slave I/O thread to update it.

<3>waitting for slave mutexes on exit.

State when the thread is stopped.


This article is from "Late Bug" blog, please make sure to keep this source http://9039370.blog.51cto.com/9029370/1685049

View master and slave library replication thread status through the show Processlist command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.