TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How can I calculate CO2 emission of servers/VPS?

51 pointsby lukasfischerover 2 years ago
I’m trying to make a co2 balance sheet of our organisation. I can’t find good information on how to calculate server emissions in cloud providers (we are using mostly hetzner vps). I’m curious if somebody has some findings/benchmarks or some kind of formula to have an approximation.

24 comments

mtmailover 2 years ago
Have you contacted Hetzner? They claim 0% emission impact <a href="https:&#x2F;&#x2F;www.hetzner.com&#x2F;unternehmen&#x2F;umweltschutz&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.hetzner.com&#x2F;unternehmen&#x2F;umweltschutz&#x2F;</a>
评论 #32750988 未加载
评论 #32751247 未加载
brudgersover 2 years ago
Because your server is not emitting CO2, whatever you make up, is just something you made up (best industry practices, conversely, are fictions you choose to believe).<p>If you really care, put a watt meter on it and try to reduce its power consumption.<p>Because you don&#x27;t have control of the data center&#x27;s grid connections.<p>Good luck.
评论 #32751555 未加载
gchamonliveover 2 years ago
With AWS last I checked (which might have been 2 years ago) they advertised regions powered by renewable energy sources. You can see it better here: <a href="https:&#x2F;&#x2F;sustainability.aboutamazon.com&#x2F;around-the-globe?energyType=true" rel="nofollow">https:&#x2F;&#x2F;sustainability.aboutamazon.com&#x2F;around-the-globe?ener...</a><p>But as to calculate exactly the amount of carbon footprint for your VPS, I think you are out of luck, because exact numbers are either opaque or required you take AWS at their word.
评论 #32750147 未加载
评论 #32751428 未加载
bombcarover 2 years ago
Are you looking for total carbon on carbon per hour?<p>Because the second can be estimated via electrical use. But the first involves the building of the machines etc.<p><a href="https:&#x2F;&#x2F;engineering.teads.com&#x2F;sustainability&#x2F;carbon-footprint-estimator-for-aws-instances&#x2F;" rel="nofollow">https:&#x2F;&#x2F;engineering.teads.com&#x2F;sustainability&#x2F;carbon-footprin...</a><p><a href="https:&#x2F;&#x2F;docs.aws.amazon.com&#x2F;awsaccountbilling&#x2F;latest&#x2F;aboutv2&#x2F;ccft-overview.html" rel="nofollow">https:&#x2F;&#x2F;docs.aws.amazon.com&#x2F;awsaccountbilling&#x2F;latest&#x2F;aboutv2...</a><p>My guess is these will get within an order of magnitude.
saeranvover 2 years ago
I used to work at an research&#x2F;architecture (buildings, not software) firm that was a leader in carbon emission estimation. To estimate the carbon emissions from building operational energy, what we did was find the rate of carbon emission at the local grid[1] and then multiply it by the predicted operational energy from an energy model. For example, for a single family home drawing from a blended grid mix of coal, gas, and nuclear, you might have a carbon emission rate of 150 kgC02&#x2F;MBtu for 0.04 kBtu&#x2F;ft2 of operational energy, over the course of an hour. This works out to:<p><pre><code> 150 kgC02&#x2F;MBtu * 4E-5 MBtu&#x2F;ft2 = 0.006 kgC02&#x2F;ft2 </code></pre> You then integrate this over the course of the year. This gets complicated as there are variations in the resolution of carbon emissions from different grids, the grid emission rates, and which grid the building uses.<p>To estimate server carbon emission rate, you just have to swap the building energy use intensity for server energy use, and everything else should be the same.<p>[1] Grid Emission Rate Sources EPA: <a href="https:&#x2F;&#x2F;www.epa.gov&#x2F;egrid&#x2F;data-explorer" rel="nofollow">https:&#x2F;&#x2F;www.epa.gov&#x2F;egrid&#x2F;data-explorer</a> WattTime: <a href="https:&#x2F;&#x2F;www.watttime.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.watttime.org&#x2F;</a>
photochemsynover 2 years ago
It all depends on what the energy mix of the grid supplying the data center looks like. This outfit seems to have a tool that keeps up to date on that:<p><a href="https:&#x2F;&#x2F;www.datacenterdynamics.com&#x2F;en&#x2F;news&#x2F;cirrus-nexus-launches-ai-based-cloud-carbon-reduction-tool&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.datacenterdynamics.com&#x2F;en&#x2F;news&#x2F;cirrus-nexus-laun...</a><p>&gt; &quot;The tool takes in data on carbon intensity from local utility grids, and relates that with the reported strategies of cloud providers. It also calculates energy usage based on the manufacturers&#x27; data for the servers involved and PUE from the data center operators.&quot;<p>See also:<p><a href="https:&#x2F;&#x2F;techxplore.com&#x2F;news&#x2F;2022-08-centers-fueling-climate-worst-regions.html" rel="nofollow">https:&#x2F;&#x2F;techxplore.com&#x2F;news&#x2F;2022-08-centers-fueling-climate-...</a><p>Getting accurate measurements (i.e. say +&#x2F;- 10%) looks rather difficult, as regional grids vary their energy sources seasonally and even daily, due to things like wind&#x2F;solar variability, hydropower output, coal vs. gas input, etc.
RandomWorkerover 2 years ago
There are various scopes to consider.<p>Scope 1: the fuels you burn on site to generate heat&#x2F;cooling or electricity.<p>Scope 2: the electricity you import on site probably burns carbon so it has a carbon factor you can find that on your utilities website (most likely). Imported electricity in kWh x carbon factor tCO2e&#x2F;(delivered)kWh = emissions in tCO2e - you may want to start here with the location, grid electricity and expected electricity use.<p>Scope 3: are the emissions made off site to make materials that are imported on site to make the business run.<p>There are no hard rules to do this analysis. Most of it is a linear approximation. Most people don’t publish analysis beyond scope 1&#x2F;2.<p>It’s really important to list assumptions and sources. Good luck.
jtmiclatover 2 years ago
ThoughtWorks made an app that does this: <a href="https:&#x2F;&#x2F;github.com&#x2F;cloud-carbon-footprint&#x2F;cloud-carbon-footprint" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cloud-carbon-footprint&#x2F;cloud-carbon-footp...</a> but mainly works with aws, azure, and gcp<p>You might be interested in their methodology page <a href="https:&#x2F;&#x2F;cloudcarbonfootprint.org&#x2F;docs&#x2F;methodology&#x2F;" rel="nofollow">https:&#x2F;&#x2F;cloudcarbonfootprint.org&#x2F;docs&#x2F;methodology&#x2F;</a><p>Full disclosure: My company was one of the early testers of the app
评论 #32752435 未加载
betteraiover 2 years ago
Autumn8.ai (www.autumn8.ai) provides accurate benchmarks of AI models for energy consumption and carbon emissions, both in the cloud and for on-premise servers, prior to deployment. Further, they also offer performance metrics (latency, throughput and costs) with no server spin-ups. This helps customers choose the optimal server to reduce CO2 emissions while meeting other SLA requirements. Please contact Vanya Amla (vanya@autumn8.ai) for more details.
schmichaelover 2 years ago
We had a hard time finding this data when experimenting with carbon aware scheduling in Nomad. There seem to be a lot of orgs working on this, but it’s all third party as far as I know. I couldn’t find a first party (eg Amazon, Microsoft, Google, etc) that provided this data via an API. Very frustrating.<p>There are a couple resources linked here: <a href="https:&#x2F;&#x2F;github.com&#x2F;hashicorp&#x2F;nomad&#x2F;blob&#x2F;h-carbon-meta&#x2F;CARBON.md#resources" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hashicorp&#x2F;nomad&#x2F;blob&#x2F;h-carbon-meta&#x2F;CARBON...</a><p>The silver lining is that the folks who are working in this space are extremely friendly and passionate in my experience. Don’t be scared to “contact sales for an API key.” The few folks I talked to were extremely helpful.
评论 #32751327 未加载
svackoover 2 years ago
In the most recent episode of the Last Week in AWS podcast Corey Quinn just talked about this topic <a href="https:&#x2F;&#x2F;www.lastweekinaws.com&#x2F;blog&#x2F;how-google-cloud-and-aws-approach-customer-carbon-emissions&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.lastweekinaws.com&#x2F;blog&#x2F;how-google-cloud-and-aws-...</a><p>For AWS, there is also Customer Carbon Footprint tool available <a href="https:&#x2F;&#x2F;aws.amazon.com&#x2F;about-aws&#x2F;whats-new&#x2F;2022&#x2F;03&#x2F;aws-launches-customer-carbon-footprint-tool" rel="nofollow">https:&#x2F;&#x2F;aws.amazon.com&#x2F;about-aws&#x2F;whats-new&#x2F;2022&#x2F;03&#x2F;aws-launc...</a>
arccyover 2 years ago
Google provides first party data for GCP <a href="https:&#x2F;&#x2F;cloud.google.com&#x2F;carbon-footprint" rel="nofollow">https:&#x2F;&#x2F;cloud.google.com&#x2F;carbon-footprint</a><p>as well as icons that nudge you if you work through the console
bugmen0tover 2 years ago
I recommend you take a look at co2.js. This was just mentioned in the latest issue of branch magazine (<a href="https:&#x2F;&#x2F;branch.climateaction.tech&#x2F;issues&#x2F;issue-4&#x2F;co2js&#x2F;" rel="nofollow">https:&#x2F;&#x2F;branch.climateaction.tech&#x2F;issues&#x2F;issue-4&#x2F;co2js&#x2F;</a>) and I haven&#x27;t played with it myself yet. Code is linked from the article but also <a href="https:&#x2F;&#x2F;github.com&#x2F;thegreenwebfoundation&#x2F;co2.js&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;thegreenwebfoundation&#x2F;co2.js&#x2F;</a>
jveover 2 years ago
Does running Data Center workloads on renewable energy is any selling point to some corporations? Or it is a too minor feature? I happen to work at one of those places, but I am thinking it is just a marketing&#x2F;PR value add-on: <a href="https:&#x2F;&#x2F;www.deac.eu&#x2F;news&#x2F;information-for-the-media&#x2F;data-center-operator-deac-is-implementing-green-business-concept-and-switched-to-100-renewable-energy-sources&#x2F;en&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.deac.eu&#x2F;news&#x2F;information-for-the-media&#x2F;data-cent...</a>
评论 #32750970 未加载
nmasse-itixover 2 years ago
Have a look at the Boavizta API. It features an automated evaluation of environmental impacts of ICT services and equipments.<p>That seems to cover on-prem servers and AWS.<p><a href="https:&#x2F;&#x2F;boavizta.org&#x2F;en&#x2F;blog&#x2F;boavizta-api-automated-evaluation-of-ict-impacts-on-the-environment" rel="nofollow">https:&#x2F;&#x2F;boavizta.org&#x2F;en&#x2F;blog&#x2F;boavizta-api-automated-evaluati...</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;boavizta&#x2F;boaviztapi" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;boavizta&#x2F;boaviztapi</a>
oneplaneover 2 years ago
You cannot since you will never get access to the required data to make such a calculation. All you can do is take the company that provides the services for you at their word.
qbasic_foreverover 2 years ago
I doubt you&#x27;ll ever get an exact measurement from big companies like Amazon. If you can know your exact CO2 emissions for a workload you can pretty accurately model the power consumption of the processor. If you&#x27;re Amazon and running entirely custom silicon like their Graviton processors then that power consumption info is likely a closely guarded trade secret for now.
pjc50over 2 years ago
Very tricky. You need at least:<p>- the electricity consumption of the system, which varies depending on use<p>- the electricity consumption of the air conditioning, which is to a first approximation about the same as the fist number (you&#x27;ve got to remove all that energy again, at some efficiency coefficient). Varies by ambient temperature.<p>- the CO2 mix of the grid at that time, which varies from minute to minute.
scandoxover 2 years ago
Maybe helpful:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;mlco2&#x2F;codecarbon" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mlco2&#x2F;codecarbon</a><p>Also:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;hubblo-org&#x2F;scaphandre" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hubblo-org&#x2F;scaphandre</a>
zeglover 2 years ago
I built a tool for benchmarking CO2 emissions for Go programs once. It was done as a joke for a meetup once, but is now more relevant than ever.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;zegl&#x2F;co2go" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zegl&#x2F;co2go</a>
FerretFredover 2 years ago
Try <a href="https:&#x2F;&#x2F;www.websitecarbon.com&#x2F;website&#x2F;news.ycombinator.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.websitecarbon.com&#x2F;website&#x2F;news.ycombinator.com&#x2F;</a> and just substitute the desired domain name
daanloover 2 years ago
Check these peeps: <a href="https:&#x2F;&#x2F;www.climatiq.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.climatiq.io&#x2F;</a> They also have a case study specifically about servers.
zekriocaover 2 years ago
<a href="http:&#x2F;&#x2F;powerapi.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;powerapi.org&#x2F;</a>
zhalaover 2 years ago
In AWS you can view your specific emissions under billing &gt; cost &amp; usage reports.