Mysql Replication 1 Master 2 Slave












0















I have a mysql replication active. 1 Master and 2 slave.
The first slave works fine, but the seconds slave lags behind master.
This is the results of SHOW SLAVE STATUS G:



mysql> SHOW SLAVE STATUS G;
*************************** 1. row ***************************
Slave_IO_State: Queueing master event to the relay log
Master_Host: IP ADDRESS
Master_User: user
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.015204
Read_Master_Log_Pos: 88137432
Relay_Log_File: mysql-relay-bin.065545
Relay_Log_Pos: 150
Relay_Master_Log_File: mysql-bin.015199
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Replicate_Do_DB:
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: 16802785
Relay_Log_Space: 514144238
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: 36745
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: 1
1 row in set (0.54 sec)


This is the results of SHOW PROCESSLIST



mysql> SHOW PROCESSLIST;
+----+-------------+-----------+------+---------+-------+----------------------------------------+------------------+
| Id | User | Host | db | Command | Time | State | Info |
+----+-------------+-----------+------+---------+-------+----------------------------------------+------------------+
| 60 | root | localhost | NULL | Query | 0 | NULL | SHOW PROCESSLIST |
| 61 | system user | | NULL | Connect | 155 | Queueing master event to the relay log | NULL |
| 62 | system user | | NULL | Connect | 34378 | Reading event from the relay log | NULL |
+----+-------------+-----------+------+---------+-------+----------------------------------------+------------------+`


Some one can help to resolve it?










share|improve this question
















bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    0















    I have a mysql replication active. 1 Master and 2 slave.
    The first slave works fine, but the seconds slave lags behind master.
    This is the results of SHOW SLAVE STATUS G:



    mysql> SHOW SLAVE STATUS G;
    *************************** 1. row ***************************
    Slave_IO_State: Queueing master event to the relay log
    Master_Host: IP ADDRESS
    Master_User: user
    Master_Port: 3306
    Connect_Retry: 60
    Master_Log_File: mysql-bin.015204
    Read_Master_Log_Pos: 88137432
    Relay_Log_File: mysql-relay-bin.065545
    Relay_Log_Pos: 150
    Relay_Master_Log_File: mysql-bin.015199
    Slave_IO_Running: Yes
    Slave_SQL_Running: Yes
    Replicate_Do_DB:
    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: 16802785
    Relay_Log_Space: 514144238
    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: 36745
    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: 1
    1 row in set (0.54 sec)


    This is the results of SHOW PROCESSLIST



    mysql> SHOW PROCESSLIST;
    +----+-------------+-----------+------+---------+-------+----------------------------------------+------------------+
    | Id | User | Host | db | Command | Time | State | Info |
    +----+-------------+-----------+------+---------+-------+----------------------------------------+------------------+
    | 60 | root | localhost | NULL | Query | 0 | NULL | SHOW PROCESSLIST |
    | 61 | system user | | NULL | Connect | 155 | Queueing master event to the relay log | NULL |
    | 62 | system user | | NULL | Connect | 34378 | Reading event from the relay log | NULL |
    +----+-------------+-----------+------+---------+-------+----------------------------------------+------------------+`


    Some one can help to resolve it?










    share|improve this question
















    bumped to the homepage by Community 16 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0








      I have a mysql replication active. 1 Master and 2 slave.
      The first slave works fine, but the seconds slave lags behind master.
      This is the results of SHOW SLAVE STATUS G:



      mysql> SHOW SLAVE STATUS G;
      *************************** 1. row ***************************
      Slave_IO_State: Queueing master event to the relay log
      Master_Host: IP ADDRESS
      Master_User: user
      Master_Port: 3306
      Connect_Retry: 60
      Master_Log_File: mysql-bin.015204
      Read_Master_Log_Pos: 88137432
      Relay_Log_File: mysql-relay-bin.065545
      Relay_Log_Pos: 150
      Relay_Master_Log_File: mysql-bin.015199
      Slave_IO_Running: Yes
      Slave_SQL_Running: Yes
      Replicate_Do_DB:
      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: 16802785
      Relay_Log_Space: 514144238
      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: 36745
      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: 1
      1 row in set (0.54 sec)


      This is the results of SHOW PROCESSLIST



      mysql> SHOW PROCESSLIST;
      +----+-------------+-----------+------+---------+-------+----------------------------------------+------------------+
      | Id | User | Host | db | Command | Time | State | Info |
      +----+-------------+-----------+------+---------+-------+----------------------------------------+------------------+
      | 60 | root | localhost | NULL | Query | 0 | NULL | SHOW PROCESSLIST |
      | 61 | system user | | NULL | Connect | 155 | Queueing master event to the relay log | NULL |
      | 62 | system user | | NULL | Connect | 34378 | Reading event from the relay log | NULL |
      +----+-------------+-----------+------+---------+-------+----------------------------------------+------------------+`


      Some one can help to resolve it?










      share|improve this question
















      I have a mysql replication active. 1 Master and 2 slave.
      The first slave works fine, but the seconds slave lags behind master.
      This is the results of SHOW SLAVE STATUS G:



      mysql> SHOW SLAVE STATUS G;
      *************************** 1. row ***************************
      Slave_IO_State: Queueing master event to the relay log
      Master_Host: IP ADDRESS
      Master_User: user
      Master_Port: 3306
      Connect_Retry: 60
      Master_Log_File: mysql-bin.015204
      Read_Master_Log_Pos: 88137432
      Relay_Log_File: mysql-relay-bin.065545
      Relay_Log_Pos: 150
      Relay_Master_Log_File: mysql-bin.015199
      Slave_IO_Running: Yes
      Slave_SQL_Running: Yes
      Replicate_Do_DB:
      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: 16802785
      Relay_Log_Space: 514144238
      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: 36745
      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: 1
      1 row in set (0.54 sec)


      This is the results of SHOW PROCESSLIST



      mysql> SHOW PROCESSLIST;
      +----+-------------+-----------+------+---------+-------+----------------------------------------+------------------+
      | Id | User | Host | db | Command | Time | State | Info |
      +----+-------------+-----------+------+---------+-------+----------------------------------------+------------------+
      | 60 | root | localhost | NULL | Query | 0 | NULL | SHOW PROCESSLIST |
      | 61 | system user | | NULL | Connect | 155 | Queueing master event to the relay log | NULL |
      | 62 | system user | | NULL | Connect | 34378 | Reading event from the relay log | NULL |
      +----+-------------+-----------+------+---------+-------+----------------------------------------+------------------+`


      Some one can help to resolve it?







      mysql-5.5






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 3 '17 at 8:23









      Marco

      3,73231624




      3,73231624










      asked May 3 '17 at 8:13









      antonioantonio

      1




      1





      bumped to the homepage by Community 16 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 16 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Share below details:
          1) Both slave has the same hardware?
          2) Both slave has same configuration (my.cnf)?
          3) Network speed must be same on both the slave, please check this as well.



          Also check below
          3) If using innodb check innodb_buffer_pool_size on both slave.
          4) Check whats running on this particular event to identify of you need to optimise any query.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "182"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f172590%2fmysql-replication-1-master-2-slave%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Share below details:
            1) Both slave has the same hardware?
            2) Both slave has same configuration (my.cnf)?
            3) Network speed must be same on both the slave, please check this as well.



            Also check below
            3) If using innodb check innodb_buffer_pool_size on both slave.
            4) Check whats running on this particular event to identify of you need to optimise any query.






            share|improve this answer




























              0














              Share below details:
              1) Both slave has the same hardware?
              2) Both slave has same configuration (my.cnf)?
              3) Network speed must be same on both the slave, please check this as well.



              Also check below
              3) If using innodb check innodb_buffer_pool_size on both slave.
              4) Check whats running on this particular event to identify of you need to optimise any query.






              share|improve this answer


























                0












                0








                0







                Share below details:
                1) Both slave has the same hardware?
                2) Both slave has same configuration (my.cnf)?
                3) Network speed must be same on both the slave, please check this as well.



                Also check below
                3) If using innodb check innodb_buffer_pool_size on both slave.
                4) Check whats running on this particular event to identify of you need to optimise any query.






                share|improve this answer













                Share below details:
                1) Both slave has the same hardware?
                2) Both slave has same configuration (my.cnf)?
                3) Network speed must be same on both the slave, please check this as well.



                Also check below
                3) If using innodb check innodb_buffer_pool_size on both slave.
                4) Check whats running on this particular event to identify of you need to optimise any query.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 3 '17 at 12:38









                VaibhavVaibhav

                316




                316






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Database Administrators Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f172590%2fmysql-replication-1-master-2-slave%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Liste der Baudenkmale in Friedland (Mecklenburg)

                    Single-Malt-Whisky

                    Czorneboh