<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Florian Chardin, Author at OVHcloud Blog</title>
	<atom:link href="https://blog.ovhcloud.com/author/florian-chardin/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.ovhcloud.com/author/florian-chardin/</link>
	<description>Innovation for Freedom</description>
	<lastBuildDate>Fri, 08 Jan 2021 11:14:39 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://blog.ovhcloud.com/wp-content/uploads/2019/07/cropped-cropped-nouveau-logo-ovh-rebranding-32x32.gif</url>
	<title>Florian Chardin, Author at OVHcloud Blog</title>
	<link>https://blog.ovhcloud.com/author/florian-chardin/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Selfheal at Webhosting &#8211; The external part</title>
		<link>https://blog.ovhcloud.com/selfheal-at-webhosting-the-external-part/</link>
		
		<dc:creator><![CDATA[Florian Chardin]]></dc:creator>
		<pubDate>Fri, 17 Jul 2020 12:34:38 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[DevOps]]></category>
		<category><![CDATA[Self-heal at Webhosting]]></category>
		<category><![CDATA[SRE]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<guid isPermaLink="false">https://www.ovh.com/blog/?p=18726</guid>

					<description><![CDATA[Introduction With almost 6000000 websites hosted on more than 15000 servers, the OVHcloud Webhosting SRE team manage lots of alerts during their working day. Our infrastructure is constantly growing, but to scale smoothly, the amount of time spent solving alerts should not increase proportionally. We need, therefore, some tools to help us.&#160;&#160;In our team, we [&#8230;]<img src="//blog.ovhcloud.com/wp-content/plugins/matomo/app/matomo.php?idsite=1&amp;rec=1&amp;url=https%3A%2F%2Fblog.ovhcloud.com%2Fselfheal-at-webhosting-the-external-part%2F&amp;action_name=Selfheal%20at%20Webhosting%20%26%238211%3B%20The%20external%20part&amp;urlref=https%3A%2F%2Fblog.ovhcloud.com%2Ffeed%2F" style="border:0;width:0;height:0" width="0" height="0" alt="" />]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading" id="OVHCloudblogarticleSelfhealatWebhosting(part1)-Introduction">Introduction</h3>



<p>With almost 6000000 websites hosted on more than 15000 servers, the OVHcloud Webhosting SRE team manage lots of alerts during their working day. </p>



<p>Our infrastructure is constantly growing, but to scale smoothly, the amount of time spent solving alerts should not increase proportionally.</p>



<p>We need, therefore, some tools to help us.&nbsp;&nbsp;In our team, we call it the <em>selfheal</em>.&nbsp;</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img fetchpriority="high" decoding="async" width="1024" height="537" src="https://www.ovh.com/blog/wp-content/uploads/2020/07/8C2CA3A8-F3E3-4B73-A4C5-087DACF7E88F-1024x537.jpeg" alt="Selfheal at Webhosting – The external part" class="wp-image-18848" srcset="https://blog.ovhcloud.com/wp-content/uploads/2020/07/8C2CA3A8-F3E3-4B73-A4C5-087DACF7E88F-1024x537.jpeg 1024w, https://blog.ovhcloud.com/wp-content/uploads/2020/07/8C2CA3A8-F3E3-4B73-A4C5-087DACF7E88F-300x157.jpeg 300w, https://blog.ovhcloud.com/wp-content/uploads/2020/07/8C2CA3A8-F3E3-4B73-A4C5-087DACF7E88F-768x403.jpeg 768w, https://blog.ovhcloud.com/wp-content/uploads/2020/07/8C2CA3A8-F3E3-4B73-A4C5-087DACF7E88F.jpeg 1200w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure></div>



<h3 class="wp-block-heading" id="OVHCloudblogarticleSelfhealatWebhosting(part1)-Whatistheselfheal?">What is the <em>selfheal</em>?</h3>



<p>The <em>selfheal </em>refers to the automation of alert solving in our production environments. The automated process is able to fix well-known issues, with no admin interaction.</p>



<h3 class="wp-block-heading" id="OVHCloudblogarticleSelfhealatWebhosting(part1)-Whydoweneedit?">Why do we need it?</h3>



<p>We must limit the time we spend to solve alerts as far as possible. Not only so we have the time to run and maintain the infrastructure, but also to stay up to date.</p>



<p>With the number of servers we manage, a small issue can represent dozens of alerts.</p>



<p>We need to be efficient by automating as many production chores as possible.</p>



<h4 class="wp-block-heading" id="OVHCloudblogarticleSelfhealatWebhosting(part1)-Hardware">Hardware</h4>



<p>Serving billions of HTTP requests each day requires a lot of resources, which is why we often use physical servers in our datacenters. </p>



<p>Even a single physical server requires a big follow up. It takes a lot of time to diagnose, schedule downtime, request and manage an intervention with datacenter teams, or even to reinstall the operating system when a disk is faulty.</p>



<p>We cannot afford to spend hours on repetitive tasks when they can be automated.</p>



<h4 class="wp-block-heading">Software</h4>



<p>Even if software seems predictable, it will still encounter failure. This is true even when managing the underlying infrastructure&nbsp;that hosts millions of lines of unknown code provided by our client.</p>



<p>While we try to have a stable software stack, we cannot predict all behaviour. Many of the software problems can be solved with a restart or a quick fix, and lots of these operations can also be automated.</p>



<p>We should alert the on-call admin staff as little as possible, only when it&#8217;s absolutely necessary.</p>



<p>The idea is is to log each action done by the <em>selfheal </em>to identify bug or error patterns and then work on longer term fixes.</p>



<h3 class="wp-block-heading" id="OVHCloudblogarticleSelfhealatWebhosting(part1)-Theselfhealatwebhosting">The <em>selfheal </em>at Webhosting</h3>



<p>At Webhosting we split <em>selfheal </em>in two part:</p>



<ol class="wp-block-list"><li>External <em>selfheal </em>which handles hardware problems or anything that can not be solved by the host itself.</li><li>Internal <em>selfheal </em>which is intended to solve software problems on a given system.</li></ol>



<p>In this article, we will discuss the the external part.</p>



<h3 class="wp-block-heading" id="OVHCloudblogarticleSelfhealatWebhosting(part1)-Externalselfheal">External <em>selfheal</em></h3>



<h4 class="wp-block-heading" id="OVHCloudblogarticleSelfhealatWebhosting(part1)-Context">Context:</h4>



<p>As we said earlier, the external part of our <em>selfheal </em>is mainly intended to solve hardware problems that cannot be solved by the server alone.</p>



<p>To accomplish this, we created a small micro-service application that listens &#8211; monitoring events.</p>



<p>We could have chosen an existing tool (like StackStorm), but we didn&#8217;t. Here&#8217;s why:</p>



<ul class="wp-block-list"><li>Building micro-services is really simple and fast at OVH.</li><li>Structured, detailed and simple logs with a uniq uuid to follow each selfheal task in our internal logging system (which allow us to graph them easily).&nbsp;</li><li>Simple integration with our existing tools and ecosystem&nbsp;</li><li>Fast and easy deployment in all our regions</li><li>Simple CI/CD (unit-testing, etc)</li><li>Custom notifications, like chat-bot</li><li>Intelligence and history</li></ul>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" width="1024" height="280" src="https://www.ovh.com/blog/wp-content/uploads/2020/07/4FE23E51-6835-45F4-8ACE-819668BB9F16-1024x280.png" alt="External Selfheal" class="wp-image-18826" srcset="https://blog.ovhcloud.com/wp-content/uploads/2020/07/4FE23E51-6835-45F4-8ACE-819668BB9F16-1024x280.png 1024w, https://blog.ovhcloud.com/wp-content/uploads/2020/07/4FE23E51-6835-45F4-8ACE-819668BB9F16-300x82.png 300w, https://blog.ovhcloud.com/wp-content/uploads/2020/07/4FE23E51-6835-45F4-8ACE-819668BB9F16-768x210.png 768w, https://blog.ovhcloud.com/wp-content/uploads/2020/07/4FE23E51-6835-45F4-8ACE-819668BB9F16-1536x419.png 1536w, https://blog.ovhcloud.com/wp-content/uploads/2020/07/4FE23E51-6835-45F4-8ACE-819668BB9F16.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure></div>



<h4 class="wp-block-heading" id="OVHCloudblogarticleSelfhealatWebhosting(part1)-Howitworks">How it works</h4>



<p>Everything starts with our monitoring, which scraps the servers probes and sends all alerts in a Kafka topic.</p>



<p>The application consumes Kafka events and then reacts instantly with the correct workflow, depending on the problem.</p>



<p>The app will react with the appropriate workflow depending on the alert it gets. It does this by performing the correct API call to our different services and tools.</p>



<p>All actions performed are stored. This prevents having to do the same fix several times on a given server and to identify complex problems.</p>



<h4 class="wp-block-heading" id="OVHCloudblogarticleSelfhealatWebhosting(part1)-Concreteexampleonfaultydiskreplacement">Concrete example on faulty disk replacement</h4>



<p>One of the top time-consuming alerts we&#8217;ve had to solve was the replacement of unhealthy HDD found by SMART checks.</p>



<p>Being stateless, lots of our servers use a single disk with no raid setup.&nbsp;It also means replacing a disk to reinstall the host; but hopefully, it can be done with a single API call.</p>



<p>To manage this alert, an admin had to do the following actions:</p>



<ol class="wp-block-list"><li>Put the server in maintenance to drain client requests</li><li>Create a datacenter request to replace the HDD</li><li>Reinstall the server</li></ol>



<p>This whole process can take up to 3 hours and is hard to execute manually (managing several issues at once).&nbsp;</p>



<p>The first thing we did, was to automate the check with a probe.</p>



<p>Then, we decided to automate the whole thing with a simple workflow in our self-healing application, then to orchestrate the API call.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="352" src="https://www.ovh.com/blog/wp-content/uploads/2020/07/886B192D-9DF6-4DD7-AF70-77351AA6BFF2-1024x352.png" alt="Internal Selfheal" class="wp-image-18827" srcset="https://blog.ovhcloud.com/wp-content/uploads/2020/07/886B192D-9DF6-4DD7-AF70-77351AA6BFF2-1024x352.png 1024w, https://blog.ovhcloud.com/wp-content/uploads/2020/07/886B192D-9DF6-4DD7-AF70-77351AA6BFF2-300x103.png 300w, https://blog.ovhcloud.com/wp-content/uploads/2020/07/886B192D-9DF6-4DD7-AF70-77351AA6BFF2-768x264.png 768w, https://blog.ovhcloud.com/wp-content/uploads/2020/07/886B192D-9DF6-4DD7-AF70-77351AA6BFF2-1536x528.png 1536w, https://blog.ovhcloud.com/wp-content/uploads/2020/07/886B192D-9DF6-4DD7-AF70-77351AA6BFF2.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>With this process, we are able to replace disks every day without any manual tasks performed by an admin.</p>



<h3 class="wp-block-heading" id="OVHCloudblogarticleSelfhealatWebhosting(part1)-Toconclude">To conclude</h3>



<p>Last month, our external <em>selfheal </em>tool requested more than 70 datacenter interventions to datacenter teams which represents a big time saving.</p>



<p>We won in reactivity. No more lag between the time an alert is detected and when it&#8217;s handled.</p>



<p>Alerts are handled instantly when detected by the monitoring system. It helps us to keep a clean monitoring backlog and to avoid &#8220;batches&#8221; of alert solving, which were complicated for both us and DC.</p>



<p>Now, we just handle alerts that cannot be solved through automation and focus on corner cases, where admin interactions are valuable and required.</p>
<img loading="lazy" decoding="async" src="//blog.ovhcloud.com/wp-content/plugins/matomo/app/matomo.php?idsite=1&amp;rec=1&amp;url=https%3A%2F%2Fblog.ovhcloud.com%2Fselfheal-at-webhosting-the-external-part%2F&amp;action_name=Selfheal%20at%20Webhosting%20%26%238211%3B%20The%20external%20part&amp;urlref=https%3A%2F%2Fblog.ovhcloud.com%2Ffeed%2F" style="border:0;width:0;height:0" width="0" height="0" alt="" />]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
