How to use 38% less energy when using Bare Metal... thanks to Hosterra!
Captured source
source ↗How to use 38% less energy when using Bare Metal... thanks to Hosterra! Deploy • James Martin • 12/03/24 • 5 min read
Pierre Lannoy is the founder of Hosterra , a Lille-based company specializing in Green IT. He offers energy-optimized Elastic Metal servers, enabling his customers - mainly web agencies - to reduce their carbon footprint, and that of their clients. This involves detailed reporting, and reliance on DC5, Europe's most sustainable datacenter. An exemplary Scaleway customer to watch! Read on to find out why…
Scaleway Blog: Is digital responsibility becoming increasingly important today?
Pierre Lannoy : Green IT is increasingly becoming a must-have. For private sector RFPs (requests for proposals), the trend is undeniable. In the last RFP I won, Hosterra's eco-responsibility and sustainability, including in the social sense, were key criteria: 25% of the score in this case. And I’m seeing this increasingly often.
I have a real advantage in these RFPs by having most of my infrastructures with Scaleway. The infrastructures I sell to my customers are Elastic Metal ; machines which really allow us to measure the power consumption of each process. And since we can measure it, we can have an impact on it (by optimizing it).
At Scaleway, it already helps me enormously to have your PUE and WUE data. But also, the fact that you make your servers last [up to ten years, versus three or four elsewhere] helps me a lot too. So I have the operational and efficiency aspect, which I share with my customers; I don’t hide from them the fact that I work with you. Finally, Scaleway doesn’t engage in greenwashing; you don’t congratulate yourself on things that aren’t true.
Why did you create Hosterra?
I used to work for a very large retail company, which switched 96% of its IT from its own data centers to Google. I was in charge of those highly valuable contracts. I saw that I could trust neither the eco-responsibility aspect, nor the privacy aspect. On this second point, they claim that by signing contracts with their Irish and therefore European entities, this resolves a number of points related to GDPR. This is completely false. An Irish subsidiary is still a subsidiary: the parent company has a say in everything, because of US legislation.
As I couldn't change things internally by myself, I decided to set up my own company to host services (web, mail... self-service PaaS). I wanted to show that it was possible to do this in France, while respecting ethical and sustainable principles, to set up a [technological] company that could be functional.
Hosterra was created in September 2022. On January 23, 2023, I had my first customer .
Today, our customers include :
85% of my sales: Web agencies like Kodama, as well as freelance web designers and the like, who choose us either because their customers have eco-responsible needs, or because our services are affordable
10%: direct public sector
5%: individuals who have a blog/need emails, families who want mailboxes with their family names...
Whatever the type of customer, they join us based on their convictions, because Hosterra's values speak to them.
How does it work, technically speaking?
I need a high level of observability, and machine measurement. This is only possible with Elastic Metal servers, to which I've added virtualization layers myself. As I'm able to measure very precisely, I've carried out a lot of tests, which have resulted in a lot of errors... but enough successes to improve the operation.
For example, I've found that for a PHP website, to get the same performance, you can either have a stack with Apache as web server and NGINX as proxy, or do everything with LiteSpeed Enterprise .
LiteSpeed Enterprise requires 46% fewer CPU cycles than Apache . And yet, the CPU cycle is the most costly in terms of energy.
IT energy costs, globally speaking, come from:
Disks (very difficult to optimize, as 500 GB = 500 GB)
CPUs
Memory
Since memory consumes much less energy than the CPU, I try to use less CPU and more memory . We use memory for caching. A very positive point for Scaleway is that the CPU/memory ratios of your Elastic Metal servers are unusually high. You don't see that anywhere else. That's how I make the services I deliver more efficient.
Wherever I can cache, I cache. Every time there's an operation required, I'll check what's in the cache, and issue what's in it, rather than relaunching the calculation with the processor . This relieves the CPU of some of its normal activity.
Furthermore, you have caching at every level: between the operating system and the service - between the OS and Apache, for example - or between the PHP and the file system... the possibilities are numerous. All you have to do is understand it; develop the tools to do it; and then measure from the outset whether what you're doing improves power consumption or not.
Very few publishers try to make their applications more energy-efficient . LiteSpeed Enterprise does this very well; its editor has already understood that certain things can be cached, rather than recalculated each time.
Shouldn't developers be incentivized on energy optimization?
Developers often think in terms of Moore's Law: they don’t care about optimization. They know that in 18 months' time, their application will perform like a Formula 1 car, because they know that there will be more computing power in the future. So why bother? The main challenge my manager gives me is to deliver in record time. The whole software industry is like that. Nobody tries to do more with less!
What are the results of the optimizations you've implemented?
In very specific cases of web servers running Apache and MariaDB, I use 38% less electricity ... thanks to a series of measures:
LiteSpeed instead of Apache
Using my virtualization system
My cache optimizations...
And a whole host of other things. I can't reveal all! But everyone knows that using more memory saves CPU... How I implement all this requires a few family secrets :)
How exactly do you measure?
I measure the server's real consumption, because with Elastic Metal, I have access to real-time data from the motherboard, memory, processors, BUS and disks . This is thanks to third-party software, such as IPMI (Intelligent Platform Management Interface), which searches the motherboard registers.
IPMI is still…
Excerpt shown — open the source for the full document.