{"id":5239,"date":"2017-07-06T09:59:10","date_gmt":"2017-07-06T06:59:10","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=5239"},"modified":"2017-07-06T09:59:10","modified_gmt":"2017-07-06T06:59:10","slug":"squid-high-cpu-load","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=5239","title":{"rendered":"[squid] High cpu load"},"content":{"rendered":"<p>\u0412\u044b\u0434\u0435\u0440\u0436\u043a\u0430 \u0438\u0437 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438:<\/p>\n<blockquote><p><span style=\"color: #993366;\">Kerberos can keep a replay cache to detect the reuse of Kerberos<\/span><br \/>\n<span style=\"color: #993366;\"> tickets (usually only possible in a 5 minute window) . If squid is<\/span><br \/>\n<span style=\"color: #993366;\"> under high load with Negotiate(Kerberos) proxy authentication requests<\/span><br \/>\n<span style=\"color: #993366;\"> the replay cache checks can create high CPU load. If the environment<\/span><br \/>\n<span style=\"color: #993366;\"> does not require high security the replay cache check can be disabled<\/span><br \/>\n<span style=\"color: #993366;\"> for MIT based Kerberos implementations by adding the following to the<\/span><br \/>\n<span style=\"color: #993366;\"> startup script<\/span><\/p>\n<p><span style=\"color: #993366;\">KRB5RCACHETYPE=none export KRB5RCACHETYPE<\/span><\/p><\/blockquote>\n<p>\u042f \u0432\u0441\u0451\u0441 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 <strong>rc<\/strong>-\u0441\u043a\u0440\u0438\u043f\u0442 \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b <strong>squid<\/strong>. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043b\u0441\u044f \u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0439 <strong>enviroment<\/strong>:<\/p>\n<p><!--more--><\/p>\n<p><code># procstat -e 74823<br \/>\nPID COMM             ENVIRONMENT<br \/>\n74823 ext_kerberos_ldap_g SQUID_DEBUG=ALL,1 VENDOR=intel SUDO_COMMAND=\/usr\/local\/bin\/bash LOGNAME=root PAGER=more OSTYPE=FreeBSD MACHTYPE=i386 MAIL=\/var\/mail\/root KRB5_KTNAME=\/usr\/local\/etc\/squid\/squid.keytab PATH=\/sbin:\/bin:\/usr\/sbin:\/usr\/bin:\/usr\/local\/sbin:\/usr\/local\/bin:\/root\/bin EDITOR=vi HOST=proxy.local REMOTEHOST=10.10.10.2 OLDPWD=\/usr\/home\/skeletor SUDO_GID=0 PWD=\/var\/squid _=\/usr\/local\/etc\/rc.d\/squid GROUP=squid TERM=screen USER=root HOME=\/root <span style=\"color: #ff0000;\">KRB5RCACHETYPE=none<\/span> HOSTTYPE=FreeBSD SHELL=\/usr\/local\/bin\/bash SUDO_USER=skeletor SUDO_UID=1001 USERNAME=root BLOCKSIZE=K RC_PID=74572 SHLVL=2<\/code><\/p>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e &#8211; \u0434\u0430, \u0432\u0441\u0451 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u044b\u0434\u0435\u0440\u0436\u043a\u0430 \u0438\u0437 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438: Kerberos can keep a replay cache to detect the reuse of Kerberos tickets (usually only possible in a 5 minute window) . If squid is under high load with Negotiate(Kerberos) proxy authentication requests the replay cache checks can create high CPU load. If the environment does not require high security the replay [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-5239","post","type-post","status-publish","format-standard","hentry","category-others"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5239"}],"version-history":[{"count":1,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5239\/revisions"}],"predecessor-version":[{"id":5240,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5239\/revisions\/5240"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}