{"id":3824,"date":"2020-09-16T22:22:25","date_gmt":"2020-09-16T13:22:25","guid":{"rendered":"https:\/\/tech.akat.info\/?p=3824"},"modified":"2020-09-16T22:22:25","modified_gmt":"2020-09-16T13:22:25","slug":"isucon10-%e3%81%ab%e5%8f%82%e5%8a%a0%e3%81%97%e3%81%a6%e6%83%a8%e6%95%97%e3%81%97%e3%81%9f%e3%80%82%e3%81%9d%e3%81%97%e3%81%a6%e7%9f%a5%e3%82%89%e3%81%aa%e3%81%8b%e3%81%a3%e3%81%9f%e3%81%93%e3%81%a8-2","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=3824","title":{"rendered":"ISUCON10 \u306b\u53c2\u52a0\u3057\u3066\u60e8\u6557\u3057\u305f\u3002\u305d\u3057\u3066\u77e5\u3089\u306a\u304b\u3063\u305f\u3053\u3068\u306e\u307e\u3068\u3081 &#8211; OS\u7de8 &#8211;"},"content":{"rendered":"<p>ISUCON10\u306b\u53c2\u52a0\u3057\u3066\u60e8\u6557\u3057\u305f\u3002\u305d\u306e\u5f8c\u306eDiscord\u3084\u53c2\u52a0\u8005\u8a18\u4e8b\u3067\u77e5\u3089\u306a\u304b\u3063\u305f\u3053\u3068\u306a\u3069\u3092\u8abf\u3079\u305f\u308a\u8a66\u3057\u3066\u307f\u305f\u3002<\/p>\n<h2>AppArmor<\/h2>\n<p>\u30fb\u5f37\u5236\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u3092\u5b9f\u73fe\u3059\u308b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3002<br \/>\n\u30fb\u5f53\u65e5\u306f16\u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u304a\u308a\u3001\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u304c\u8a31\u53ef\u3057\u306a\u3044\u6319\u52d5\u306f\u30d6\u30ed\u30c3\u30af\u3059\u308b(Enforce\u30e2\u30fc\u30c9)\u3068\u306a\u3063\u3066\u3044\u305f\u6a21\u69d8\u3002<br \/>\n\u30fb\u6319\u52d5\u76e3\u8996\u3059\u308b\u305f\u3081\u30bc\u30ed\u30c7\u30a4\u653b\u6483\u306a\u3069\u306b\u6709\u52b9\u3067\u3042\u308b\u304c\u3001ISUCON\u3067\u306f\u7121\u52b9\u306b\u3057\u305f\u307b\u3046\u304c\u3088\u3055\u305d\u3046\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# aa-status\r\napparmor module is loaded.\r\n16 profiles are loaded.\r\n16 profiles are in enforce mode.\r\n   \/sbin\/dhclient\r\n   \/usr\/bin\/lxc-start\r\n   \/usr\/bin\/man\r\n   \/usr\/lib\/NetworkManager\/nm-dhcp-client.action\r\n   \/usr\/lib\/NetworkManager\/nm-dhcp-helper\r\n   \/usr\/lib\/connman\/scripts\/dhclient-script\r\n   \/usr\/lib\/snapd\/snap-confine\r\n   \/usr\/lib\/snapd\/snap-confine\/\/mount-namespace-capture-helper\r\n   \/usr\/sbin\/mysqld\r\n   \/usr\/sbin\/tcpdump\r\n   lxc-container-default\r\n   lxc-container-default-cgns\r\n   lxc-container-default-with-mounting\r\n   lxc-container-default-with-nesting\r\n   man_filter\r\n   man_groff\r\n0 profiles are in complain mode.\r\n0 processes have profiles defined.\r\n0 processes are in enforce mode.\r\n0 processes are in complain mode.\r\n0 processes are unconfined but have a profile defined.\r\n\r\n# systemctl stop apparmor.service\r\n# systemctl disable apparmor.service\r\nSynchronizing state of apparmor.service with SysV service script with \/lib\/systemd\/systemd-sysv-install.\r\nExecuting: \/lib\/systemd\/systemd-sysv-install disable apparmor\r\n<\/pre>\n<h2>netdata<\/h2>\n<p>\u30fb\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u304c\u3067\u304d\u308b\u30c4\u30fc\u30eb\u3002\u76e3\u8996\u30c7\u30fc\u30bf\u306e\u9577\u671f\u4fdd\u5b58\u306f\u3067\u304d\u306a\u3044\u3002<br \/>\n  \u5177\u4f53\u7684\u306b\u306f1\u79d2\u3054\u3068\u306e\u30c7\u30fc\u30bf\u3092\u53ce\u96c6\u3057\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u4fdd\u5b58\u671f\u9593\u306f1\u6642\u9593\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# apt install netdata\r\n# sed -i -e &quot;s\/bind socket to IP = 127.0.0.1\/bind socket to IP = 0.0.0.0\/&quot; \/etc\/netdata\/netdata.conf\r\n# systemctl restart netdata\r\n<\/pre>\n<p><a href=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2020\/09\/2020-09-16_013224-2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2020\/09\/2020-09-16_013224-2-300x182.png\" alt=\"\" width=\"300\" height=\"182\" class=\"alignnone size-medium wp-image-3823\" srcset=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2020\/09\/2020-09-16_013224-2-300x182.png 300w, https:\/\/tech.akat.info\/wp-content\/uploads\/2020\/09\/2020-09-16_013224-2-1024x622.png 1024w, https:\/\/tech.akat.info\/wp-content\/uploads\/2020\/09\/2020-09-16_013224-2-768x467.png 768w, https:\/\/tech.akat.info\/wp-content\/uploads\/2020\/09\/2020-09-16_013224-2-1536x934.png 1536w, https:\/\/tech.akat.info\/wp-content\/uploads\/2020\/09\/2020-09-16_013224-2-2048x1245.png 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h2>\u53c2\u8003<\/h2>\n<p>\u30fb<a href=\"https:\/\/www.hiroom2.com\/2018\/05\/06\/ubuntu-1804-apparmor-ja\/\">Ubuntu 18.04: AppArmor\u3067\u5f37\u5236\u30a2\u30af\u30bb\u30b9\u5236\u5fa1<\/a><br \/>\n\u30fb<a href=\"https:\/\/dev.classmethod.jp\/articles\/netdata\/\">\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306a\u30ea\u30bd\u30fc\u30b9\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u30c4\u30fc\u30eb\u306enetdata\u3092\u8a66\u3057\u3066\u307f\u305f<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ISUCON10\u306b\u53c2\u52a0\u3057\u3066\u60e8\u6557\u3057\u305f\u3002\u305d\u306e\u5f8c\u306eDiscord\u3084\u53c2\u52a0\u8005\u8a18\u4e8b\u3067\u77e5\u3089\u306a\u304b\u3063\u305f\u3053\u3068\u306a\u3069\u3092\u8abf\u3079\u305f\u308a\u8a66\u3057\u3066\u307f\u305f\u3002 AppArmor \u30fb\u5f37\u5236\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u3092\u5b9f\u73fe\u3059\u308b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3002 \u30fb\u5f53\u65e5\u306f16\u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u304a\u308a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/3824"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3824"}],"version-history":[{"count":1,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/3824\/revisions"}],"predecessor-version":[{"id":3826,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/3824\/revisions\/3826"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}