91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

【Mysql】Mysql 從庫每隔一段時間就重啟

發布時間:2020-08-11 13:59:01 來源:ITPUB博客 閱讀:265 作者:小亮520cl 欄目:MySQL數據庫
背景:HuaYun_Interface-SLAVE從庫每隔一段時間slave復制進程便停掉,zabbix發送告警短信
  1. mysql> show slave status\G;
  2. *************************** 1. row ***************************
  3.                Slave_IO_State:
  4.                   Master_Host: *****
  5.                   Master_User: repl
  6.                   Master_Port: 3307
  7.                 Connect_Retry: 60
  8.               Master_Log_File: mysql-bin.000195
  9.           Read_Master_Log_Pos: 629275501
  10.                Relay_Log_File: mysql-relay-bin.000521
  11.                 Relay_Log_Pos: 625430128
  12.         Relay_Master_Log_File: mysql-bin.000195
  13.              Slave_IO_Running: No
  14.             Slave_SQL_Running: No


停掉時查看mysql錯誤日志我們發現端倪
  1. 2016-06-23 14:06:56 32289 [Warning] 'proxies_priv' entry '@ root@sh275' ignored in --skip-name-resolve mode.
    160623 15:03:49 mysqld_safe Number of processes running now: 0
    160623 15:03:49 mysqld_safe mysqld restarted                 -----發現是mysql服務重啟了,而我們配置了skip_slave_start(禁止repl進程自動重啟),所以復制進程處于down狀態
    2016-06-23 15:03:50 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
    2016-06-23 15:03:50 0 [Note] /home/data/mysql/bin/mysqld (mysqld 5.6.24-log) starting as process 22569 ...
    2016-06-23 15:03:50 22569 [Note] Plugin 'FEDERATED' is disabled.
    2016-06-23 15:03:50 22569 [Note] InnoDB: Using atomics to ref count buffer pool pages
    2016-06-23 15:03:50 22569 [Note] InnoDB: The InnoDB memory heap is disabled
    2016-06-23 15:03:50 22569 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
    2016-06-23 15:03:50 22569 [Note] InnoDB: Memory barrier is not used
    2016-06-23 15:03:50 22569 [Note] InnoDB: Compressed tables use zlib 1.2.3
    2016-06-23 15:03:50 22569 [Note] InnoDB: Using Linux native AIO
    2016-06-23 15:03:50 22569 [Note] InnoDB: Not using CPU crc32 instructions
    2016-06-23 15:03:50 22569 [Note] InnoDB: Initializing buffer pool, size = 10.0G
    2016-06-23 15:03:51 22569 [Note] InnoDB: Completed initialization of buffer pool


同時我們查看zabbix發送的郵件,有linux主機內存報警通知
  1. 告警主機:_HuaYun_Interface-SLAVE
  2. 主機IP: ******
  3. 告警時間:2016.06.23 15:08:06
  4. 告警等級:Average
  5. 告警信息:Lack of available memory on server HuaYun_Interface-SLAVE
  6. 問題詳情:Available memory:163.15 MB
  7. 事件ID: 42590

登上主機檢查
  1. [root@NEW-APP-MYSQL-SLAVE ~]# dmesg 
  2. Out of memory: Kill process 32289 (mysqld) score 966 or sacrifice child
  3. Killed process 32289, UID 498, (mysqld) total-vm:14630648kB, anon-rss:7711284kB, file-rss:360kB
[root@NEW-APP-MYSQL-SLAVE ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          7872       7747        124          0        124       1331
-/+ buffers/cache:       6292       1580
Swap:         2047         56       1991




很明顯是linux內存不足而發生了OOM killer現象,沒辦法,加大主機內存吧



向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

江源县| 榆林市| 永嘉县| 潼关县| 额敏县| 阿荣旗| 疏勒县| 凤凰县| 镶黄旗| 桂东县| 克什克腾旗| 九江市| 五指山市| 海宁市| 叙永县| 房山区| 梨树县| 新津县| 岑溪市| 张家界市| 康定县| 焦作市| 怀远县| 浠水县| 绍兴市| 榆社县| 仁布县| 乐安县| 肇州县| 新竹县| 钦州市| 准格尔旗| 民乐县| 屯昌县| 原平市| 凯里市| 佳木斯市| 盐源县| 天津市| 本溪市| 东至县|