{"id":21186,"date":"2021-05-18T16:00:54","date_gmt":"2021-05-18T07:00:54","guid":{"rendered":"https:\/\/labs.gree.jp\/blog\/?p=21186"},"modified":"2021-05-18T15:55:52","modified_gmt":"2021-05-18T06:55:52","slug":"post21186","status":"publish","type":"post","link":"https:\/\/labs.gree.jp\/blog\/2021\/05\/21186\/","title":{"rendered":"\u30c7\u30fc\u30bf\u30bb\u30f3\u30bf\u30fc\u5358\u4f4d\u306e\u5927\u898f\u6a21\u969c\u5bb3\u306b\u898b\u821e\u308f\u308c\u305f\u3068\u304d\u3001 mysqld \u3067 error log \u3092\u898b\u308b\u524d\u306b\u78ba\u8a8d\u3057\u3066\u3044\u308b\u3053\u3068\u306a\u3069"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u308f\u3002\u305b\u3058\u307e\u3067\u3059\u3002\u4eca\u56de\u306f\u3001\u5b9f\u969b\u5f79\u306b\u7acb\u3064\u30b1\u30fc\u30b9\u306f\u9650\u3089\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u5099\u5fd8\u9332\u3068\u3057\u3066\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p>\u79c1\u306f\uff08\u305f\u3057\u304b\uff092003\u5e74\u304f\u3089\u3044\u304b\u3089\u3001\u3057\u3054\u3068\u3067MySQL\u4f7f\u3063\u3066\u3044\u305f\u306e\u3067\u3001\u3082\u3046\u304b\u308c\u3053\u308c18\u5e74\u304f\u3089\u3044\u306f\u4f7f\u3063\u3066\u308b\u3093\u3067\u3059\u304c\u3001\u305d\u308c\u3060\u3051\u9577\u3044\u3053\u3068\u4f7f\u3063\u3066\u3044\u308b\u3068\u3001\u5927\u898f\u6a21\u306a\u969c\u5bb3\u3068\u3044\u3046\u3082\u306e\u306b\u3082\u4f55\u5ea6\u304b\u51fa\u304f\u308f\u3057\u305f\u308a\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3056\u3063\u304f\u308a\u3068\u3057\u305f\u898f\u6a21\u611f\u3067\u8a00\u3044\u307e\u3059\u3068\u3001\u30c7\u30fc\u30bf\u30bb\u30f3\u30bf\u30fc\u3067\u30e9\u30c3\u30af\u4e00\u672c\u307e\u308b\u3054\u3068\u7570\u5e38\u304c\u767a\u751f\u3059\u308b\u30b1\u30fc\u30b9\u3068\u304b\u3001\u30e9\u30c3\u30af\u4e00\u672c\u306b\u3068\u3069\u307e\u3089\u305a\u3001\u30c7\u30fc\u30bf\u30bb\u30f3\u30bf\u30fc\u5185\u306e\u30b5\u30fc\u30d0\u306e\u4f55\u5272\u304b\u304c\u7570\u5e38\u306b\u898b\u821e\u308f\u308c\u308b\u3001\u3068\u3044\u3063\u305f\u898f\u6a21\u3067\u767a\u751f\u3057\u305f\u969c\u5bb3\u3067\u3059\u3002\u7269\u7406\u7684\u306a\u6545\u969c\u3067\u969c\u5bb3\u304c\u767a\u751f\u3057\u305f\u3053\u3068\u3082\u3042\u308c\u3070\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u6a5f\u5668\u306e\u4e0d\u5177\u5408\u306b\u3088\u308a\u3001\u30e9\u30c3\u30af\u4e00\u672c\u307e\u308b\u3054\u3068\u5207\u308a\u96e2\u3059\u5fc5\u8981\u6027\u304c\u767a\u751f\u3057\u305f\u3053\u3068\u3082\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u30e9\u30c3\u30af\u4e38\u3054\u3068\u4e00\u672c\u306a\u3089\u307e\u3060\u3044\u3044\u3093\u3067\u3059\u304c\u3001\u30c7\u30fc\u30bf\u30bb\u30f3\u30bf\u30fc\u5185\u306e\u30b5\u30fc\u30d0\u306e\u4f55\u5272\u304b\u304c\u307e\u3068\u3081\u3066\u843d\u3061\u308b\u3068\u3044\u3046\u898f\u6a21\u306b\u306a\u308b\u3068\u3001\u8907\u6570\u306e mysqld \u304c\u540c\u6642\u306b\u843d\u3061\u308b\u3068\u304b\u3001failover\u7e70\u308a\u8fd4\u3057\u305f\u308a\u3068\u304b\u3001\u78ba\u8a8d\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044 mysqld \u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u6570\u3084 error log \u306e\u6570\u304c\u3001\u81a8\u5927\u306a\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u300c\u7570\u5e38\u304c\u767a\u751f\u3057\u305f\u30c7\u30fc\u30bf\u30bb\u30f3\u30bf\u30fc\u3001\u307e\u308b\u3054\u3068\u5207\u308a\u96e2\u305b\u3070\u826f\u3044\u306e\u3067\u306f\u300d\u3068\u3044\u3046\u3054\u610f\u898b\u3082\u3042\u308b\u306e\u3067\u3057\u3087\u3046\u304c\u3001\u3059\u3079\u3066\u306b\u65bc\u3044\u3066\u305d\u306e\u3088\u3046\u306b\u3067\u304d\u308b\u304b\u306f\u3080\u3064\u304b\u3057\u3044\u3068\u3053\u308d\u304b\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001<\/p>\n<ul>\n<li>\u4e00\u5ea6\u306b\u8907\u6570\u306e mysqld \u304c\u843d\u3061\u308b\u3001\u3042\u308b\u7a0b\u5ea6\u5927\u304d\u306a\u898f\u6a21\u306e\u969c\u5bb3\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3001\u3069\u306e\u3088\u3046\u306b\u5207\u308a\u5206\u3051\u308b\u304b<\/li>\n<\/ul>\n<p>\u3068\u3044\u3063\u305f\u89b3\u70b9\u3067\u3001\u79c1\u304c\u3084\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u66f8\u3044\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2>\u666e\u6bb5\u4f7f\u3063\u3066\u3044\u308b\u30c4\u30fc\u30eb\u985e\u306f\u3001\u5927\u898f\u6a21\u969c\u5bb3\u6642\u306b\u306f\u6a5f\u80fd\u3057\u306a\u3044\u3053\u3068\u3092\u60f3\u5b9a\u3057\u3066\u304a\u304f<\/h2>\n<p>\u5e38\u65e5\u9803\u304b\u3089MySQL\u306e\u904b\u7528\u3092\u6700\u9069\u5316\u3059\u308b\u305f\u3081\u306b\u3001\u30c4\u30fc\u30eb\u985e\u3092\u5185\u88fd\u3057\u3066\u3044\u308b\u65b9\u3082\u5c11\u306a\u304b\u3089\u305a\u3044\u3089\u3063\u3057\u3083\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u305f\u3060\u3001\u30c7\u30fc\u30bf\u30bb\u30f3\u30bf\u30fc\u5185\u306e\u30b5\u30fc\u30d0\u306e\u4f55\u5272\u304b\u304c\u5f71\u97ff\u3092\u53d7\u3051\u308b\u898f\u6a21\u306e\u969c\u5bb3\u304c\u767a\u751f\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u6a5f\u5668\u7b49\u306e\u57fa\u5e79\u90e8\u5206\u3067\u554f\u984c\u304c\u8d77\u304d\u3066\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u3046\u3044\u3063\u305f\u72b6\u6cc1\u4e0b\u306b\u304a\u3044\u3066\u306f\u3001 mysqld \u304c\u7a3c\u50cd\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u3084\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u6b7b\u6d3b\u76e3\u8996\u3092\u3001\u6b63\u5e38\u306b\u884c\u3048\u308b\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002\u307e\u305f\u3001 replication \u306e\u69cb\u6210\u3092\u53ef\u8996\u5316\u3059\u308b\u305f\u3081\u306e\u30c4\u30fc\u30eb\u985e\u3092\u5185\u88fd\u3057\u3066\u3044\u305f\u3068\u3057\u3066\u3082\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5468\u308a\u304c\u5b89\u5b9a\u3057\u3066\u3044\u306a\u3044\u3068\u3001\u3046\u307e\u304f\u6a5f\u80fd\u3057\u306a\u3044\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30c4\u30fc\u30eb\u3092\u5185\u88fd\u3057\u3066\u3001 mysqld \u672c\u6765\u306e\u6a5f\u80fd\u3084 mysql client \u306e\u6a5f\u80fd\u7b49\u304c\u96a0\u853d\u3055\u308c\u308c\u3070\u3055\u308c\u308b\u307b\u3069\u3001\u305d\u3046\u3044\u3063\u305f\u72b6\u6cc1\u4e0b\u3067\u306f\u601d\u3046\u3088\u3046\u306b\u4f5c\u696d\u304c\u3067\u304d\u306a\u304b\u3063\u305f\u308a\u3057\u307e\u3059\u306e\u3067\u3001\u300cMySQL\u672c\u6765\u306e\u6a5f\u80fd\u3067\u6700\u5c0f\u9650\u3067\u304d\u308b\u3053\u3068\u300d\u3092\u3001\u666e\u6bb5\u304b\u3089\u6574\u7406\u3067\u304d\u3066\u308b\u3068\u826f\u3044\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2>show global status like 'uptime';<\/h2>\n<p>\u79c1\u304c\u6700\u521d\u306b\u5b9f\u65bd\u3057\u3066\u3044\u308b\u306e\u306f\u3001\u30c8\u30ea\u30a2\u30fc\u30b8\u3067\u3059\u3002\u305d\u3057\u3066\u305d\u306e\u305f\u3081\u306b\u3001\u6700\u521d\u306b\u5207\u308a\u96e2\u3059\u3079\u304d mysqld \u3001\u7d99\u7d9a\u3057\u3066\u5229\u7528\u3059\u308b mysqld \u3092\u9078\u5225\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u306a\u306b\u306f\u3068\u3082\u3042\u308c\u3001<\/p>\n<pre class=\"lang:default decode:true \" >\nmysql&gt; show global status like 'uptime'; \n<\/pre>\n<p>\u3067 <a href=\"https:\/\/dev.mysql.com\/doc\/refman\/8.0\/en\/server-status-variables.html#statvar_Uptime\">Uptime<\/a> \u3092\u78ba\u8a8d\u3057\u3001\u7d99\u7d9a\u3057\u3066\u5229\u7528\u3059\u308b mysqld \u3092\u9078\u5225\u3057\u307e\u3059\u3002<\/p>\n<p>\u5171\u6709\u30c7\u30a3\u30b9\u30af\u3068DRBD\u4f7f\u3063\u3066Active\/Standby\u69cb\u6210\u306eHA\u30af\u30e9\u30b9\u30bf\u3092\u7d44\u3093\u3067\u3044\u308b\u5834\u5408\u306f\u3068\u3082\u304b\u304f\u3001\u4e0d\u81ea\u7136\u306b Uptime \u304c\u77ed\u3044\u5834\u5408\u3001 mysqld \u304c restart \u3057\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>mysqld \u3092\u8d77\u52d5\u3059\u308b\u969b\u3001 <a href=\"https:\/\/dev.mysql.com\/doc\/refman\/8.0\/ja\/mysqld-safe.html\">mysqld_safe<\/a>\u3084 <a href=\"https:\/\/dev.mysql.com\/doc\/refman\/8.0\/ja\/using-systemd.html\">systemd\u7ba1\u7406\u4e0b<\/a>\u3067 mysqld \u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u307f\u306a\u3055\u3093\u306f\u3001\u3059\u3079\u3066\u306e mysqld \u304c\u3069\u306e\u3088\u3046\u306b\u8d77\u52d5\u3057\u3066\u3044\u3066\u3001\u81ea\u52d5\u3067\u518d\u8d77\u52d5\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3001\u3059\u3079\u3066\u628a\u63e1\u3067\u304d\u3066\u3044\u308b\u3067\u3057\u3087\u3046\u304b\u3002\u307e\u305f\u3001\u3059\u3079\u3066\u306e mysqld \u306b\u304a\u3044\u3066\u3001 crash safe \u306a\u8a2d\u5b9a\u304c\u65bd\u3055\u308c\u3066\u304a\u308a\u3001 binlog \u3082 storage engine \u3082\u3001 crash safe \u3067\u3042\u308b\u3053\u3068\u304c\u4fdd\u8a3c\u3067\u304d\u308b\u8a2d\u5b9a\u306b\u306a\u3063\u3066\u3044\u308b\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>mysqld \u306e\u6570\u304c\u5897\u3048\u305f\u308a\u3001\u4f7f\u3063\u3066\u3044\u308bMySQL\u3084OS\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u591a\u5c90\u306b\u308f\u305f\u3063\u305f\u308a\u3057\u3066\u3044\u308b\u3068\u3001\u304b\u306a\u308a\u96e3\u3057\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u5927\u898f\u6a21\u969c\u5bb3\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306f\u3001\u307e\u305a\u306f mysqld \u81ea\u8eab\u306e Uptime \u3092\u78ba\u8a8d\u3057\u3001\u4e0d\u81ea\u7136\u306b\u77ed\u3044\u3082\u306e\u306b\u3064\u3044\u3066\u306f\u300c\u3067\u304d\u308c\u3070\u30b5\u30fc\u30d3\u30b9\u304b\u3089\u5916\u305b\u306a\u3044\u304b\u300d\u3068\u8003\u3048\u3066\u3044\u304f\u306e\u304c\u7121\u96e3\u3060\u3068\u601d\u3044\u307e\u3059\u3002 mysqld \u306b\u9650\u3089\u305a\u3001\u30c7\u30fc\u30bf\u3092\u6c38\u7d9a\u5316\u3059\u308b\u305f\u3081\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e uptime \u304c\u9577\u3044\u306e\u306f\u81ea\u7136\u306a\u3053\u3068\u3067\u3042\u308a\u3001\u660e\u3089\u304b\u306b uptime \u304c\u77ed\u3044\u306e\u3067\u3042\u308c\u3070\u3001\u305d\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f7f\u3044\u7d9a\u3051\u308b\u3053\u3068\u306b\u3001\u7591\u554f\u3092\u611f\u3058\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u79c1\u306f\u3001MySQL\u306b\u95a2\u3057\u3066\u306fActive\/Standby\u69cb\u6210\u306eHA\u30af\u30e9\u30b9\u30bf\u306f\u3042\u307e\u308a\u4f7f\u3044\u305f\u304f\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u7406\u7531\u306e\u4e00\u3064\u306b\u3001\u3053\u306e\u65b9\u5f0f\u3060\u3068Active\/Standby\u5207\u308a\u66ff\u308f\u3063\u305f\u3068\u304d\u306b mysqld \u306e Uptime \u304c\u77ed\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u3001\u3068\u3044\u3046\u7406\u7531\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002<\/p>\n<h2>show process list; \u3067 Binlog Dump Thread \u306e\u6709\u7121\u3092\u78ba\u8a8d\u3059\u308b<\/h2>\n<p>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u6a5f\u5668\u306a\u3069\u3067\u5927\u898f\u6a21\u969c\u5bb3\u304c\u767a\u751f\u3057\u3066\u3044\u308b\u3068\u3001\u307e\u305a fail over \u304c\u767a\u751f\u3057\u3066\u3044\u307e\u3059\u3002\u3042\u308b\u7a0b\u5ea6\u306e\u53f0\u6570\u306eMySQL\u3092\u4f7f\u3063\u3066\u3044\u308b\u306a\u3089\u3070\u3001<a href=\"https:\/\/github.com\/openark\/orchestrator\">Orchestrator<\/a>\u306e\u3088\u3046\u306aOSS\u3001\u3042\u308b\u3044\u306f\u5185\u88fd\u306e\u30c4\u30fc\u30eb\u3067\u3001\u81ea\u52d5\u3067 fail over \u3057\u3066\u3001 replication \u306e\u69cb\u6210\u3092\u81ea\u52d5\u3067\u5909\u66f4\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u305f\u3060\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u304c\u4e0d\u5b89\u5b9a\u3067\u3001\u304b\u3064\u5927\u91cf\u306b fail over \u304c\u767a\u751f\u3057\u3066\u3044\u305f\u5834\u5408\u3001\u3059\u3079\u3066\u306e mysqld \u3067 replication \u306e\u69cb\u6210\u3092\u78ba\u8a8d\u3059\u308b\u306e\u306f\u3001\u304b\u306a\u308a\u9aa8\u304c\u6298\u308c\u308b\u5bfe\u5fdc\u306b\u306a\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u6700\u7d42\u7684\u306b\u306f <a href=\"https:\/\/dev.mysql.com\/doc\/refman\/8.0\/en\/show-replica-status.html\">SHOW {REPLICA|SLAVE} STATUS<\/a> \u304b\u3089\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001 MySQL \u3068\u5411\u304d\u5408\u3046\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u3068\u3063\u3066\u307e\u305a\u77e5\u308a\u305f\u3044\u306e\u306f<\/p>\n<ul>\n<li>\u73fe\u5728\u3001\u3069\u306e mysqld \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c master(<a href=\"https:\/\/mysqlhighavailability.com\/mysql-terminology-updates\/\">\u3055\u3044\u304d\u3093\u306eMySQL\u7528\u8a9e\u3060\u3068 source<\/a>) \u306a\u306e\u304b<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u3069\u306e mysqld \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u66f4\u65b0\u3092\u53d7\u3051\u4ed8\u3051\u3066\u3044\u3066\u3001 binlog \u3092\u5410\u3044\u3066\u3044\u308b\u306e\u304b\u3001\u307e\u305a\u306f\u305d\u308c\u304c\u77e5\u308a\u305f\u3044\u306e\u3067\u3059\u3002<\/p>\n<p>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u304c\u4e0d\u5b89\u5b9a\u306a\u72b6\u614b\u3060\u3068\u3001\u3059\u3079\u3066\u306e slave(\u3055\u3044\u304d\u3093\u306eMySQL\u7528\u8a9e\u3060\u3068 replica)\u306bCHANGE MASTER\u304c\u884c\u304d\u6e21\u3063\u3066\u306a\u3044\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002\u305d\u3046\u3067\u3042\u308b\u306a\u3089\u3070\u3001\u300c\u3076\u3089\u4e0b\u304c\u3063\u3066\u3044\u308b replica \u304c\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u300d\u3092\u78ba\u8a8d\u3059\u308b\u65b9\u304c\u78ba\u5b9f\u3068\u3044\u3048\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>SHOW {REPLICA|SLAVE} STATUS \u306e\u7d50\u679c\u3092\u8a18\u9332\u3059\u308b<\/h2>\n<p>Uptime\u306b\u554f\u984c\u304c\u306a\u3055\u305d\u3046\u3067\u3082\u3001\u6700\u65b0\u306ebinlog\u3092\u53d7\u3051\u53d6\u308b\u524d\u306b master(\u306a\u3044\u3057source)\u304c\u843d\u3061\u3066\u3057\u307e\u3063\u3066\u3001CHANGE MASTER\u3067\u304d\u306a\u304b\u3063\u305f slave \u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002replication\u306e\u72b6\u614b\u3092\u8a18\u9332\u3057\u3066\u304a\u304f\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2>error log \u3092\u78ba\u8a8d\u3059\u308b\u3001 mysqld \u304c zombie process \u306b\u306a\u3063\u3066\u3044\u306a\u3044\u304b\u78ba\u8a8d\u3059\u308b<\/h2>\n<p>\u3060\u3044\u3076\u30c8\u30ea\u30a2\u30fc\u30b8\u304c\u9032\u3093\u3067\u304d\u305f\u3089\u3001 error log \u306a\u3069\u78ba\u8a8d\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002 I\/O error \u306a\u3069\u304c\u51fa\u3066\u3044\u306a\u3044\u304b\u3068\u304b\u3001\u6025\u306b <a href=\"https:\/\/labs.gree.jp\/blog\/2015\/03\/13735\/\">InnoDB: page_cleaner: 1000ms intended loop took<\/a> \u307f\u305f\u3044\u306a\u30ed\u30b0\u304c\u5897\u3048\u3066\u3044\u306a\u3044\u304b\u78ba\u8a8d\u3059\u308b\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002\u4f8b\u3048\u3070 IaaS \u3067\u4e00\u6642\u7684\u306b\u30c7\u30a3\u30b9\u30af\u306e\u6027\u80fd\u304c\u52a3\u5316\u3057\u305f\u5834\u5408\u3001 InnoDB: page_cleaner: 1000ms intended loop took \uff5e\u306e\u30ed\u30b0\u306f\u51fa\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3042\u3068\u3001\u30c7\u30a3\u30b9\u30af\u304b\u3089\u5fdc\u7b54\u8fd4\u3063\u3066\u3053\u306a\u3044\u3088\u3046\u306a\u72b6\u6cc1\u3060\u3068\u3001 mysqld \u304c\u843d\u3061\u304d\u308c\u305a\u306b zombie process \u306b\u306a\u3063\u3066\u3057\u307e\u3044\u3001 SIGKILL \u3067\u3082\u843d\u3068\u305b\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u3046\u3044\u3046\u5834\u5408\u306f\u3001\u8ae6\u3081\u3066OS\u307e\u308b\u3054\u3068\u843d\u3068\u3059\u304b\u3001 iptables \u306a\u3044\u3057\u305d\u308c\u306b\u6e96\u305a\u308b\u624b\u6bb5\u3067\u3001tcp:3306 \u306b\u63a5\u7d9a\u3067\u304d\u306a\u304f\u3057\u3066\u3084\u308a\u307e\u3057\u3087\u3046\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u304c \u4e0d\u5b89\u5b9a\u306a mysqld \u306b\u63a5\u7d9a\u3057\u7d9a\u3051\u308b\u72b6\u6cc1\u304c\u7d99\u7d9a\u3059\u308b\u3068\u3001\u88ab\u5bb3\u304c\u62e1\u5927\u3057\u3066\u3044\u304f\u6050\u308c\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>\u30c7\u30fc\u30bf\u30bb\u30f3\u30bf\u30fc\u306a\u3069\u306e\u898f\u6a21\u3067\u5197\u9577\u5316\u3057\u3066\u3044\u305f\u308a\u3001\u305d\u3082\u305d\u3082\u30aa\u30f3\u30d7\u30ec\u3084IaaS\u3067MySQL\u3092\u81ea\u524d\u904b\u7528\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3042\u308c\u3070\u3001\u3053\u3046\u3044\u3063\u305f\u3053\u3068\u306f\u3042\u307e\u308a\u8003\u3048\u306a\u304f\u3066\u3082\u826f\u3044\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u305f\u3060\u3001MySQL\u306b\u9650\u3089\u305a\u3001\u5927\u898f\u6a21\u306a\u969c\u5bb3\u304c\u767a\u751f\u3057\u3001\u666e\u6bb5\u4f7f\u3063\u3066\u3044\u308b\u30c4\u30fc\u30eb\u7fa4\u304c\u4f7f\u3048\u306a\u304f\u306a\u308b\u3053\u3068\u306f\u3001\u7a00\u306b\u3088\u304f\u3042\u308b\u3053\u3068\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u305d\u3046\u3044\u3063\u305f\u72b6\u6cc1\u3092\u60f3\u5b9a\u3057\u3066\u5099\u3048\u3066\u304a\u304f\u3053\u3068\u306f\u3001\u60aa\u3044\u3053\u3068\u3067\u306f\u306a\u3044\u3068\u79c1\u306f\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u308f\u3002\u305b\u3058\u307e\u3067\u3059\u3002\u4eca\u56de\u306f\u3001\u5b9f\u969b\u5f79\u306b\u7acb\u3064\u30b1\u30fc\u30b9\u306f\u9650\u3089\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u5099\u5fd8\u9332\u3068\u3057\u3066\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002 \u306f\u3058\u3081\u306b \u79c1\u306f\uff08\u305f\u3057\u304b\uff092003\u5e74\u304f\u3089\u3044\u304b\u3089\u3001\u3057\u3054\u3068\u3067MySQL\u4f7f\u3063\u3066\u3044\u305f\u306e\u3067\u3001\u3082\u3046\u304b\u308c\u3053\u308c18\u5e74\u304f\u3089\u3044\u306f\u4f7f\u3063\u3066\u308b\u3093\u3067\u3059 [&hellip;]<\/p>\n","protected":false},"author":137,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9],"tags":[17],"class_list":["post-21186","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-info","tag-mysql"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/21186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/users\/137"}],"replies":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/comments?post=21186"}],"version-history":[{"count":3,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/21186\/revisions"}],"predecessor-version":[{"id":21188,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/21186\/revisions\/21188"}],"wp:attachment":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/media?parent=21186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/categories?post=21186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/tags?post=21186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}