亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
12
最近訪問板塊 發(fā)新帖
樓主: weichongli
打印 上一主題 下一主題

關(guān)于Raplication之大惑 [復(fù)制鏈接]

論壇徽章:
0
11 [報告]
發(fā)表于 2007-05-11 17:50 |只看該作者
We say in Seconds_Behind_Master that we have "caught up". Note that
          for example if network link is broken but I/O slave thread hasn't
          noticed it (slave_net_timeout not elapsed), then we'll say "caught
          up" whereas we're not really caught up. Fixing that would require
          internally cutting timeout in smaller pieces in network read, no
          thanks. Another example: SQL has caught up on I/O, now I/O has read
          a new event and is queuing it; the false "0" will exist until SQL
          finishes executing the new event; it will be look abnormal only if
          the events have old timestamps (then you get "many", 0, "many").
          Transient phases like this can't really be fixed.

論壇徽章:
0
12 [報告]
發(fā)表于 2007-05-11 17:54 |只看該作者
問題應(yīng)該就是網(wǎng)絡(luò)包的延遲,你們測測網(wǎng)速是否穩(wěn)定。

論壇徽章:
0
13 [報告]
發(fā)表于 2007-05-11 18:04 |只看該作者
原帖由 helbreathszw 于 2007-5-11 17:35 發(fā)表
Apparently on some systems tmp can be <0. Here are possible reasons
        related to MySQL:
        - the master is itself a slave of another master whose time is ahead.
        - somebody  ...


master本身不是其它master的slave;
應(yīng)用程序一個多月一直沒有變化,而這個現(xiàn)象是這一周突然出現(xiàn)的。
看起來這并不能解釋為什么SecondsBehindMaster會突然從0變成167……
不過還是謝謝,還有其它的原因沒?

論壇徽章:
0
14 [報告]
發(fā)表于 2007-05-11 18:20 |只看該作者
Seconds_Behind_Master

This field is an indication of how “l(fā)ate” the slave is:

    *

      When the slave SQL thread is actively running (processing updates), this field is the number of seconds that have elapsed since the timestamp of the most recent event on the master executed by that thread.
    *

      When the SQL thread has caught up to the slave I/O thread and goes idle waiting for more events from the I/O thread, this field is zero.

In essence, this field measures the time difference in seconds between the slave SQL thread and the slave I/O thread.

If the network connection between master and slave is fast, the slave I/O thread is very close to the master, so this field is a good approximation of how late the slave SQL thread is compared to the master. If the network is slow, this is not a good approximation; the slave SQL thread may quite often be caught up with the slow-reading slave I/O thread, so Seconds_Behind_Master often shows a value of 0, even if the I/O thread is late compared to the master. In other words, this column is useful only for fast networks.

論壇徽章:
0
15 [報告]
發(fā)表于 2007-05-11 18:28 |只看該作者
原帖由 helbreathszw 于 2007-5-11 17:54 發(fā)表
問題應(yīng)該就是網(wǎng)絡(luò)包的延遲,你們測測網(wǎng)速是否穩(wěn)定。


如何檢查?

我用ping命令的結(jié)果:

685 packets transmitted, 685 received, 0% packet loss, time 688471ms
rtt min/avg/max/mdev = 0.063/0.187/0.494/0.053 ms

這個工具結(jié)果準(zhǔn)確不?

論壇徽章:
0
16 [報告]
發(fā)表于 2007-05-11 18:37 |只看該作者
原帖由 showsa 于 2007-5-11 18:20 發(fā)表
In essence, this field measures the time difference in seconds between the slave SQL thread and the slave I/O thread.


這句話好正點,又多了解一點點~呵呵。

論壇徽章:
0
17 [報告]
發(fā)表于 2007-05-11 18:54 |只看該作者
基于以上幾位達人提供的信息:

得出結(jié)論:某種原因?qū)е耂LAVE I/O線程抽風(fēng)兒,于是乎Seconds_Behind_Master值就在0和167之間閃來閃去的。

不知道是否正確?

現(xiàn)在網(wǎng)絡(luò)看起來是正常的,那么,可能導(dǎo)致SLAVE I/O線程抽風(fēng)兒的因素是哪些?MASTER& SLAVE的負(fù)載?還是MASTER的I/O線程抽風(fēng)兒?

歡迎繼續(xù)指教

論壇徽章:
0
18 [報告]
發(fā)表于 2007-05-11 20:55 |只看該作者
lz還沒理解replication的真正工作原理啊
那個behind的時間只是計算sql線程的執(zhí)行點和sql線程復(fù)制點的差距,實際情況中slave比master應(yīng)該延遲更大才對

論壇徽章:
0
19 [報告]
發(fā)表于 2007-05-14 11:17 |只看該作者
確實,我對這個東西確實不了解:)
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP