{"id":396,"date":"2007-07-14T12:58:55","date_gmt":"2007-07-14T02:58:55","guid":{"rendered":"http:\/\/www.somethinkodd.com\/oddthinking\/2007\/07\/14\/recent-down-times-an-exploration\/"},"modified":"2007-10-07T19:34:21","modified_gmt":"2007-10-07T09:34:21","slug":"recent-down-times-an-exploration","status":"publish","type":"post","link":"https:\/\/www.somethinkodd.com\/oddthinking\/2007\/07\/14\/recent-down-times-an-exploration\/","title":{"rendered":"Recent Down-Times, An Exploration"},"content":{"rendered":"<p>Recently (since the move to a new server a few months ago), Somethinkodd.com has been down for a couple of minutes, many many times.<\/p>\n<p>If you visit the site during the downtime, you get a message from my web-host ISP explaining that the site has exceeded its 20% CPU quota, and hence has been taken off-line for a few minutes.<\/p>\n<p>It only seems to happen when I am working on my site (However, it occurred to me that the problem might be frequently occurring when I <em>am not <\/em> working on my site, but I hadn&#8217;t noticed, because I wasn&#8217;t working on my site at the time&#8230;) <\/p>\n<p>I originally guessed that the problem might be related to the use of <a href=\"http:\/\/somethinkodd.com\/oddthinking\/2007\/04\/10\/installing-in-unison\/\">Unison<\/a>, and I was going to get around to work out how to &#8220;<a href=\"http:\/\/en.wikipedia.org\/wiki\/Nice_(Unix)\" title=\"Wikipedia definition of Nice_(Unix)\" class=\"wikipedia\">nice<\/a>&#8221; it.<\/p>\n<p>Today, the problem occurred when I hadn&#8217;t used Unison, and I realised my original assumption was wrong. Checking the logs, I found that just prior to the downtime, the Atom feed on one of my old test blogs was being hit moderately hard &#8211; 300 times in 40 seconds.<\/p>\n<p>I looked up the IP address to find out who it was who was peeking at my (unpublished) test blog. Uh oh, I recognize that domain name. That&#8217;s my web-server.<\/p>\n<p>At this stage, it seems that there is a nasty denial-of-service bug in WordPress&#8217;s (pretend) cron jobs. I almost certainly have a misconfiguration somewhere (Let&#8217;s be clear about that; I have treated my test blogs harshly, and migrated them around several servers and URLs. That&#8217;s why I have them.) A scheduled task is trying to fetch a non-existent page, which is returning a 404 error. Either that is causing it to simply try again or (perhaps more likely) it is being added to a list of incomplete jobs that get tried again in the next cron job run.<\/p>\n<p>Hopefully, I will nail the problem soon. Let me know if you see any downtime.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently (since the move to a new server a few months ago), Somethinkodd.com has been down for a couple of minutes, many many times.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"","footnotes":""},"categories":[32,25,34],"tags":[84,85],"class_list":["post-396","post","type-post","status-publish","format-standard","hentry","category-about-oddthinking","category-insufficiently-advanced-technology","category-software-development","tag-oddthinking","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/posts\/396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/comments?post=396"}],"version-history":[{"count":0,"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/posts\/396\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/media?parent=396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/categories?post=396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/tags?post=396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}