{"id":227,"date":"2015-09-13T01:51:17","date_gmt":"2015-09-12T23:51:17","guid":{"rendered":"https:\/\/blog.unetresgrossebite.com\/?p=227"},"modified":"2015-09-13T01:51:59","modified_gmt":"2015-09-12T23:51:59","slug":"munin-io-latencies","status":"publish","type":"post","link":"https:\/\/blog.unetresgrossebite.com\/?p=227","title":{"rendered":"Munin I\/O latencies"},"content":{"rendered":"<p>Dealing with large amounts of hosts and probes to graph, or sometimes just disks with poor performances, you may see munin loading and your system struggling with I\/O waits.<\/p>\n<p>It&#8217;s not the first time I have to deal with such problems. I&#8217;ve used tmpfs and hourly crontabs saving rrd data, SSD, RAID 0+1, &#8230; There&#8217;s lots of ways, to mitigate with such troubles.<br \/>\nThough today, I decided to have an other look on google, and found out about <em>rrdcached<\/em>.<\/p>\n<p>Switching to\u00a0rrdcached on an existing munin setup\u00a0is pretty straight forward: install the package, feed the service the proper options to use with munin. The you&#8217;ll need to update your munin.conf, setting\u00a0<em>rrdcached_socket<\/em> to the socket created by rrdcached. That&#8217;s it.<br \/>\nFrom there, you could consider updating munin jobs, so that munin-html and munin-graph are not run every 5 minutes, which would drastically lower your I\/O. Alternatively, you may mount your munin www directory using tmpfs: your rrd data remain either cached or written on disk,\u00a0thus on the next munin-html\/munin-graph job, your munin DocumentRoot\u00a0is completely rewritten anyway.<\/p>\n<div id=\"attachment_228\" style=\"width: 310px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/vmstat-munin-rrdcache.png\"><img aria-describedby=\"caption-attachment-228\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-228\" src=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/vmstat-munin-rrdcache-300x176.png\" alt=\"Munin RRDCache\" width=\"300\" height=\"176\" srcset=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/vmstat-munin-rrdcache-300x176.png 300w, https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/vmstat-munin-rrdcache.png 497w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-228\" class=\"wp-caption-text\">Munin RRDCache &#8211; vmstat<\/p><\/div>\n<div id=\"attachment_229\" style=\"width: 310px\" class=\"wp-caption alignright\"><a href=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/cpu-munin-rrdcache.png\"><img aria-describedby=\"caption-attachment-229\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-229\" src=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/cpu-munin-rrdcache-300x227.png\" alt=\"Munin RRDCache\" width=\"300\" height=\"227\" srcset=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/cpu-munin-rrdcache-300x227.png 300w, https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/cpu-munin-rrdcache.png 497w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-229\" class=\"wp-caption-text\">Munin RRDCache &#8211; CPU usage<\/p><\/div>\n<div id=\"attachment_230\" style=\"width: 310px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/load-munin-rrdcache.png\"><img aria-describedby=\"caption-attachment-230\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-230\" src=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/load-munin-rrdcache-300x169.png\" alt=\"Munin RRDCache\" width=\"300\" height=\"169\" srcset=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/load-munin-rrdcache-300x169.png 300w, https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/load-munin-rrdcache.png 497w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-230\" class=\"wp-caption-text\">Munin RRDCache &#8211; load average<\/p><\/div>\n<div id=\"attachment_231\" style=\"width: 310px\" class=\"wp-caption alignright\"><a href=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/processes-munin-rrdcache.png\"><img aria-describedby=\"caption-attachment-231\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-231\" src=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/processes-munin-rrdcache-300x184.png\" alt=\"Munin RRDCache\" width=\"300\" height=\"184\" srcset=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/processes-munin-rrdcache-300x184.png 300w, https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/processes-munin-rrdcache.png 497w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-231\" class=\"wp-caption-text\">Munin RRDCache &#8211; processes priority<\/p><\/div>\n<div id=\"attachment_232\" style=\"width: 310px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/diskstats-munin-rrdcache.png\"><img aria-describedby=\"caption-attachment-232\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-232\" src=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/diskstats-munin-rrdcache-300x176.png\" alt=\"Munin RRDCache\" width=\"300\" height=\"176\" srcset=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/diskstats-munin-rrdcache-300x176.png 300w, https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/diskstats-munin-rrdcache.png 497w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-232\" class=\"wp-caption-text\">Munin RRDCache &#8211; diskstats<\/p><\/div>\n<div id=\"attachment_233\" style=\"width: 310px\" class=\"wp-caption alignright\"><a href=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/latency-munin-rrdcache.png\"><img aria-describedby=\"caption-attachment-233\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-233\" src=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/latency-munin-rrdcache-300x176.png\" alt=\"Munin RRDCache\" width=\"300\" height=\"176\" srcset=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/latency-munin-rrdcache-300x176.png 300w, https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/09\/latency-munin-rrdcache.png 497w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-233\" class=\"wp-caption-text\">Munin RRDCache &#8211; disk latency<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Dealing with large amounts of hosts and probes to graph, or sometimes just disks with poor performances, you may see munin loading and your system struggling with I\/O waits. It&#8217;s not the first time I have to deal with such problems. I&#8217;ve used tmpfs and hourly crontabs saving rrd data, SSD, RAID 0+1, &#8230; There&#8217;s [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8,6,2],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=\/wp\/v2\/posts\/227"}],"collection":[{"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=227"}],"version-history":[{"count":1,"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=\/wp\/v2\/posts\/227\/revisions"}],"predecessor-version":[{"id":234,"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=\/wp\/v2\/posts\/227\/revisions\/234"}],"wp:attachment":[{"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}