{"id":329,"date":"2020-10-01T21:44:00","date_gmt":"2020-10-01T21:44:00","guid":{"rendered":"https:\/\/lab.rapternet.us\/?p=329"},"modified":"2020-08-29T22:25:56","modified_gmt":"2020-08-29T22:25:56","slug":"disabling-the-aggressive-inspircd-health-check","status":"publish","type":"post","link":"https:\/\/lab.rapternet.us\/?p=329","title":{"rendered":"Disabling the Aggressive Inspircd Health Check"},"content":{"rendered":"\n<p>One of the first application stacks I went to install and setup on my new Raspberry Pi docker cluster was Inspircd\/qwebirc\/anope. This stack was running originally on a raspberry pi 1b (256MB RAM version). I wanted to move this off the pi1 since it was out of date and would need a complete reinstall to be back to full patch status. However shortly after getting it running in my swarm, I ran into issues. <\/p>\n\n\n\n<p>The IRC server would restart every few hours, sometimes it would restart every 10 minutes or so. I deemed that as unacceptable on my basic setup even for just using it in development of IRC bots.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>The stability issues came from a over zealous health check for the server. I decided to build my own docker container for it that removed the health check. I started by grabbing the GIT repo for their docker container.<\/p>\n\n\n\n<pre id=\"block-8dbc01c2-56be-4d37-9178-bec039ccad83\" class=\"wp-block-code\"><code>git clone https:\/\/github.com\/inspircd\/inspircd-docker.git<\/code><\/pre>\n\n\n\n<p>After cloning the repo, the only change I made was to comment out the healthcheck lines which can be seen below.<\/p>\n\n\n\n<pre id=\"block-f4d2e897-f867-4b78-adf9-ec7c41f2a7f5\" class=\"wp-block-preformatted\">HEALTHCHECK \\<br>        --interval=15s \\<br>        --timeout=3s \\<br>        --start-period=60s \\<br>        --retries=3 \\<br>    CMD \\<br>        \/usr\/bin\/nc -z localhost 6667<\/pre>\n\n\n\n<p>After commenting out the healthcheck in the dockerfile, I rebuilt the container and pushed it to a local repository.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker build . -t inspircd\ndocker images # then find the latest build of the inspircd container and use the hex value from that\ndocker tag &#91;hex] 127.0.0.1:5000\/inspircd\ndocker push 127.0.0.1:5000\/inspircd<\/code><\/pre>\n\n\n\n<p>After updating my docker-compose file to reference the local repository copy of inspircd, I brought down the stack and redeployed it, this then used the newly built version of inspircd, fixing the health check problem, and providing much better uptime on the container.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the first application stacks I went to install and setup on my new Raspberry Pi docker cluster was Inspircd\/qwebirc\/anope. This stack was running originally on a raspberry pi 1b (256MB RAM version). I wanted to move this off the pi1 since it was out of date and would need a complete reinstall to &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/lab.rapternet.us\/?p=329\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Disabling the Aggressive Inspircd Health Check&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[32,13,21],"class_list":["post-329","post","type-post","status-publish","format-standard","hentry","category-how-to","tag-clusters","tag-docker","tag-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/329","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=329"}],"version-history":[{"count":6,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/329\/revisions"}],"predecessor-version":[{"id":356,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/329\/revisions\/356"}],"wp:attachment":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=329"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=329"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}