{"id":292,"date":"2020-04-24T23:06:27","date_gmt":"2020-04-25T03:06:27","guid":{"rendered":"https:\/\/chasberndt.com\/?p=292"},"modified":"2020-04-26T19:13:05","modified_gmt":"2020-04-26T23:13:05","slug":"re-architecting-this-website-ii","status":"publish","type":"post","link":"https:\/\/chasberndt.com\/?p=292","title":{"rendered":"Re-Architecting This Website II"},"content":{"rendered":"\n<p>We&#8217;re onto part two! Luckily, this is a simple change.<\/p>\n\n\n\n<p>The VM that runs this website is on DigitalOcean. It&#8217;s so old (3 years) that it was only provisioned with 1CPU\/512MB of memory. This has been sufficient but it&#8217;s a tight squeeze with the reverse proxy and MySQL shoehorned onto the same VM. Tonight when I ran OS updates, I noticed this website went down. After looking further, the Linux OOM killer had stepped in and killed MySQL to keep the machine up and running. After starting MySQL, I scaled the droplet to a larger size.<\/p>\n\n\n\n<p>DigitalOcean allows you to scale your droplet but they cannot perform hot add, so the droplet needed to be powered off. Luckily, the $5\/mo droplet size has increased to 1CPU\/1GB so I was able to double this VMs memory at no cost. <\/p>\n\n\n\n<p>Let&#8217;s call this our &#8220;get well plan&#8221; so the next time updates are run, this site doesn&#8217;t go down.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;re onto part two! Luckily, this is a simple change. The VM that runs this website is on DigitalOcean. It&#8217;s so old (3 years) that it was only provisioned with 1CPU\/512MB of memory. This has been sufficient but it&#8217;s a tight squeeze with the reverse proxy and MySQL shoehorned onto the same VM. Tonight when <a class=\"read-more\" href=\"https:\/\/chasberndt.com\/?p=292\">&hellip;&nbsp;<span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[19],"tags":[],"class_list":["post-292","post","type-post","status-publish","format-standard","hentry","category-cloud"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/chasberndt.com\/index.php?rest_route=\/wp\/v2\/posts\/292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chasberndt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chasberndt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chasberndt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chasberndt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=292"}],"version-history":[{"count":2,"href":"https:\/\/chasberndt.com\/index.php?rest_route=\/wp\/v2\/posts\/292\/revisions"}],"predecessor-version":[{"id":295,"href":"https:\/\/chasberndt.com\/index.php?rest_route=\/wp\/v2\/posts\/292\/revisions\/295"}],"wp:attachment":[{"href":"https:\/\/chasberndt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chasberndt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chasberndt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}