-
Notifications
You must be signed in to change notification settings - Fork 243
feat(efc): add instances metho MTA-5653 #4971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
19d96a5
fix(efc): instances
ldecarvalho-doc c8bb646
feat(efc): instance metho
ldecarvalho-doc 7ff4bd2
fix(efp): reviews
ldecarvalho-doc 1453b84
fix(efp): add calc example
ldecarvalho-doc ee04787
fix(efc): add instances page
ldecarvalho-doc 663eee4
fix(efc): improvements
ldecarvalho-doc 2d281fd
fix(efc): new menu
ldecarvalho-doc f26b10d
fix(efc): menu name changes
ldecarvalho-doc 5d6fa98
fix(efc): review bene
ldecarvalho-doc 61595e1
fix(efc): date
ldecarvalho-doc e3f3335
fix(efc): reviews elise 3
ldecarvalho-doc c7bfc8d
fix(efc): reviews elise 4
ldecarvalho-doc c474411
fix(efc): last review
ldecarvalho-doc 778d2e9
fix(efc): add ref values MTA-6049 (#5086)
ldecarvalho-doc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+156 KB
...nvironmental-footprint/additional-content/assets/scaleway-allocation-rules-instances.webp
Binary file not shown.
54 changes: 54 additions & 0 deletions
54
pages/environmental-footprint/additional-content/bare-metal-env-footprint.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
meta: | ||
title: Bare Metal footprint calculation | ||
description: This page explains how Scaleway calculates the environmental footprint of its Bare Metal servers in detail. | ||
content: | ||
h1: Bare Metal footprint calculation | ||
paragraph: This page explains how Scaleway calculates the environmental footprint of its Bare Metal servers in detail. | ||
tags: bare-metal environmental-footprint impact datacentre | ||
dates: | ||
validation: 2025-05-27 | ||
posted: 2025-05-27 | ||
categories: | ||
- environmental-footprint | ||
- bare-metal | ||
--- | ||
|
||
At Scaleway the Bare Metal category includes different types of servers, such as: | ||
- Apple silicon servers | ||
- Elastic Metal servers, and | ||
- Dedibox servers. | ||
|
||
This page includes the specificities of the environmental footprint calculation for Apple silicon and Elastic Metal servers. | ||
|
||
<Message type="important"> | ||
The calculations also take into consideration all the elements described in the [Environmental Footprint calculation breakdown](/environmental-footprint/additional-content/environmental-footprint-calculator/) documentation page. Refer to said page for a full breakdown of the Environmental Footprint calculation performed at Scaleway. | ||
</Message> | ||
|
||
For bare metal servers, the allocation of environmental impact is straightforward due to the direct association between a user and a server. The environmental impact of a bare metal server is entirely attributed to the user who operates it. This encompasses the energy consumption during its operation, as well as a portion of the impact from the server's manufacturing process. | ||
|
||
The manufacturing impact is prorated based on the server's lifespan and the duration of its use by the customer. By dividing the total manufacturing impact by the expected lifetime of the server and then allocating it according to the specific usage period, we ensure that each user is accountable for their fair share of the server's overall environmental footprint. | ||
|
||
<Lightbox src="scaleway-allocation-rules-customer-it-equip.webp" alt="" /> | ||
|
||
<Message type="important"> | ||
Currently, our calculations for Elastic Metal GPU servers do not include the environmental impact of GPU manufacturing due to insufficient data from the manufacturer. While the impact of CPUs, RAM, disk, and energy consumption is accounted for, the absence of GPU manufacturing data means the figures provided today are underestimated. | ||
|
||
We will update our methodology as soon as more reliable data on GPU manufacturing becomes available. | ||
</Message> | ||
|
||
## Calculation example | ||
|
||
For the use of an Elastic Metal server, with a lifespan of 6 years (52 560 hours) and power of 110w, for 100 hours and considering via Boavizta estimates that the impact of the manufacturing of this server is 850 kgCo2e, we make the following calculation: | ||
|
||
```math | ||
ServerManufacturing = (100 / 52560) * 850 = 1,62 kgCO2e | ||
``` | ||
|
||
Therefore 1,62 kgCO2e is added to the total manufacturing impact of this server. | ||
|
||
To calculate the usage, we consider the French energy mix and the datacenter's PUE. In this example, they are O,056kgCo2e/kwh and 1,16, respectively. Which results in: | ||
|
||
```math | ||
UsageFootprint = 0,110 x 100 x 0,056 x 1,16 = 0,715 kgCo2e | ||
``` |
54 changes: 54 additions & 0 deletions
54
pages/environmental-footprint/additional-content/calculation-values-reference.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
meta: | ||
title: Calculation reference values | ||
description: This page provides a reference for the calculation values used to estimate the environmental impact of Scaleway's infrastructure. | ||
content: | ||
h1: Calculation values reference | ||
paragraph: This page provides a central location for accessing the key values used in calculating the environmental footprint of Scaleway's services. | ||
tags: environmental-impact calculation-values datacenter reference | ||
dates: | ||
validation: 2025-06-09 | ||
posted: 2025-06-09 | ||
categories: | ||
- environmental-footprint | ||
- reference-values | ||
--- | ||
|
||
The values referenced below are the ones used by Scaleway in the [Environmental Footprint calculation](/environmental-footprint/additional-content/environmental-footprint-calculator). | ||
|
||
## Energy mix | ||
| Country | Energy Mix (kgCO2e/kWh) | | ||
| --- | --- | | ||
| France | 0.056 | | ||
| Netherlands | 0.268 | | ||
| Poland | 0.661 | | ||
|
||
**Source**: [Ember](https://ember-climate.org/) | ||
|
||
|
||
## Datacenter PUE/WUE | ||
|
||
| Datacenter | PUE | WUE | | ||
| --- | --- | --- | | ||
| fr-par-1 | 1.46 | 0.014 | | ||
| fr-par-2 | 1.16 | 0.214 | | ||
| fr-par-3 | 1.44 | 0.004 | | ||
| nl-ams-1 | 1.38 | 0.85 | | ||
| nl-ams-2 | 1.4 | NA | | ||
| nl-ams-3 | 1.2 | NA | | ||
| pl-waw-1 | 1.51 | NA | | ||
| pl-waw-2 | 1.32 | NA | | ||
| pl-waw-3 | 1.43 | NA | | ||
|
||
**Sources**: | ||
- [FR-PAR-1](https://pue.dc2.opcore.eu/en/) | ||
- [FR-PAR-5](https://pue.dc5.opcore.eu/en/) | ||
|
||
## Lifespan | ||
| Component | Lifespan (years) | | ||
| --- | --- | | ||
| Hardware | 6 | | ||
| Data Center | 25 | | ||
| Network Hardware Equipment | 10 | | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99 changes: 99 additions & 0 deletions
99
pages/environmental-footprint/additional-content/instances-env-footprint.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
--- | ||
meta: | ||
title: Instances footprint calculation | ||
description: This page explains how Scaleway calculates the environmental footprint of its Instances in detail. | ||
content: | ||
h1: Instances footprint calculation | ||
paragraph: This page explains how Scaleway calculates the environmental footprint of its Instances in detail. | ||
tags: instances environmental-footprint impact cloud-computing | ||
dates: | ||
validation: 2025-05-27 | ||
posted: 2025-05-27 | ||
categories: | ||
- environmental-footprint | ||
- instances | ||
--- | ||
|
||
For Virtual Instances, the calculation of the environmental footprint takes into consideration all the elements described on the [Environmental Footprint calculation breakdown](/environmental-footprint/additional-content/environmental-footprint-calculator/) documentation page. | ||
|
||
## Calculation aspects | ||
|
||
The following elements are considered in the Instance footprint calculation: | ||
- **Hypervisor resources** - the resources (CPU, RAM, and disk, for example) used in the physical hypervisor servers that create and run the virtual Instances. | ||
- **Instance offer resources** - the vCPU, RAM, and disk resources used when you use an Instance. | ||
|
||
The calculation using the elements above can be broken down into: | ||
ldecarvalho-doc marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
### Manufacturing Impact | ||
- Manufacturing of the underlying physical servers (hypervisors) necessary to run the Instances. | ||
- Distribution of the manufacturing impact according to the resources consumed by the Instance (vCPU, RAM, storage). | ||
|
||
### Operational Impact | ||
- Energy consumption of the hypervisors during Instance usage. | ||
- [Power Usage Effectiveness (PUE)](/environmental-footprint/concepts#pue-power-usage-effectiveness) specific to the data center where the Instance is hosted. | ||
- Energy mix of the country that provides the electricity. | ||
|
||
### Usage Impact | ||
- Resources consumed by the Instance, calculated based on the material specifications of the hypervisors. | ||
|
||
### Indirect Emissions | ||
- Impact related to cross-functional services necessary to guarantee the operation of the Instance, such as network and shared storage. | ||
|
||
## Instance consumption ratio | ||
|
||
When calculating an Instance's footprint, we consider the resources based on their relative usage on the hypervisor to ensure an accurate distribution of their proportional consumption. | ||
|
||
- **CPU** - Consider the share of vCPUs reserved compared to the total number of physical cores available. | ||
- **RAM** - Consider the share of allocated RAM compared to the total RAM of the hypervisor. | ||
- **Storage** - Consider the use of allocated storage compared to the total capacity of the hypervisor. | ||
|
||
<Lightbox src="scaleway-allocation-rules-instances.webp" alt="" /> | ||
|
||
The value derived from this calculation will be used in every step of the calculation of the Instance's footprint. The variable is represented as `Resources_Used_VM` in the image above. | ||
|
||
Refer to the table below to understand how the `Resources_Used_VM` is integrated into the calculation of each aspect of the total footprint calculation. | ||
|
||
To obtain an accurate calculation of the Instance's footprint, we multiply the results in each step of the [basis calculation](/environmental-footprint/additional-content/environmental-footprint-calculator/), bar the Cross-IT equipment & stock calculations step, by the `Resources_Used_VM` ratio. | ||
|
||
## Cross-IT equipment calculation for Instances | ||
|
||
The only part of the calculation that will differ from the basis is the [Customer Servers](/environmental-footprint/additional-content/environmental-footprint-calculator/#customer-servers) section. | ||
|
||
To calculate the electrical consumption of Instances, instead of using an exact measure of the power consumption, we use a proxy, e.g. CPU usage. The relationship between CPU usage and the power consumption of the underlying machine is non-linear, and characterised by a consumption profile. | ||
|
||
A consumption profile is a formula that takes in a given workload (e.g. % CPU usage), and returns the estimated power consumption of the machine. | ||
|
||
We use the [consumption profiles defined by Boavizta](https://doc.api.boavizta.org/Reference/routes/#consumption-profile-routes) for the CPUs used on Scaleway Instances. | ||
|
||
For the [Environmental Footprint Estimation](/environmental-footprint/additional-content/environmental-footprint-calculator-estimation/), we base the calculation on a theoretical value of 30% CPU usage. On your [monthly report](/environmental-footprint/how-to/track-monthly-footprint/), we use your real CPU consumption to provide you with the most reliable data possible. | ||
|
||
### Calculation example | ||
|
||
In the example below we will calculate the manufacturing impact allocated to an Instance for an 100 hour usage period. | ||
|
||
Consider the following characteristics: | ||
|
||
| Resource | Instance | Hypervisor | | ||
| --- | --- | --- | | ||
| vCPU | 4 | 16 CPU cores | | ||
| RAM | 8 GB | 64 GB | | ||
| Storage | 50 GB | 1 TB (1000 GB) | | ||
| Lifespan (in years) | | 6 years = 52560h | | ||
| Manufacturing impact | | 100 kgCo2e | | ||
|
||
The allocation of the hypervisor resources for this particular Instance is calculated in the following manner: | ||
|
||
| Resource | Allocation | | ||
| --- | --- | | ||
| CPU | 4/16 = 0.25 | | ||
| RAM | 8/64 = 0.125 | | ||
| Storage | 50/1000 = 0.05 | | ||
| Total Instance Share | 0.25 + 0.125 + 0.05 = 0.425 | | ||
|
||
We multiply the resource allocation by the Instance's lifespan ratio and the hypervisor's manufacturing impact to obtain the manufacturing impact allocated to the Instance: | ||
|
||
``` | ||
(100 hours / 52,680 hours) × 100 kgCO2e × 0.425 = 0.080 kgCO2eq | ||
``` | ||
ldecarvalho-doc marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.