-
Notifications
You must be signed in to change notification settings - Fork 265
feat(efc): load balancer - MTA-6653 #5783
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
Draft
ldecarvalho-doc
wants to merge
6
commits into
main
Choose a base branch
from
MTA-6653
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
1d6d536
fix(efc): lb efc
ldecarvalho-doc f5152b0
fix(efc): lb pt 2
ldecarvalho-doc 127f1dc
fix(efc): lb pt4
ldecarvalho-doc 5f7ada2
fix(efc): lb pt5
ldecarvalho-doc 1e92298
fix(efc): review elise pt1
ldecarvalho-doc 2cdb37b
fix(efc): review elise pt2
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
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
67 changes: 67 additions & 0 deletions
67
pages/environmental-footprint/additional-content/load-balancer-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,67 @@ | ||
| --- | ||
| title: Load Balancer Footprint Calculation | ||
| description: This page explains how Scaleway calculates the environmental footprint of its Load Balancer product in detail. | ||
| tags: load-balancer environmental-footprint impact networking | ||
| dates: | ||
| validation: 2025-11-10 | ||
| posted: 2025-11-10 | ||
| --- | ||
|
|
||
| Scaleway Load Balancers are built on top of the Instances infrastructure, meaning their environmental footprint is derived from the underlying virtual instances that power the service. The footprint calculation also accounts for additional control plane components specific to the Load Balancer service. | ||
|
|
||
| This page details how the environmental impact of Load Balancers is calculated. | ||
|
|
||
| <Message type="important"> | ||
| The calculations described on this page take into consideration all the elements described in the [Environmental Footprint calculation breakdown](/environmental-footprint/additional-content/environmental-footprint-calculator/) documentation page. | ||
| </Message> | ||
|
|
||
| ## Calculation Aspects | ||
|
|
||
| The total estimated environmental impact of the Load Balancer product integrates the following components: | ||
|
|
||
| - **Dedicated manufacturing impact** – Related to the physical servers hosting the virtual instances that run the Load Balancer service. | ||
| - **Related manufacturing impact** – Includes the impact of tools used to manage the service: control plane, monitoring systems, and internal networking infrastructure. | ||
| - **Energy usage impact** – The average electricity consumption during operation, including associated data center infrastructure (PUE), network, and cross-IT equipment. | ||
|
|
||
| ### Allocation Methodology | ||
|
|
||
| The Load Balancer product reuses the same environmental footprint model as [Instances](/environmental-footprint/additional-content/instances-env-footprint/), with impact allocated based on the underlying instance usage. All variables (e.g., server lifespan, energy mix, PUE) follow the definitions established in the [Environmental Footprint calculation breakdown](/environmental-footprint/additional-content/environmental-footprint-calculator/#definition-of-the-variables). | ||
|
|
||
| Specifically: | ||
| - **Datacenter and technical environment**: are calculated as defined in the global calculation methodology, and allocated according to the underlying instances. | ||
| - **Network impact**: Allocated proportionally based on the underlying instances’ network usage. | ||
| - **Customer servers**: Impact is calculated using the same method as for Bare Metal servers, but allocated according to instance usage. | ||
| - **Cross-IT equipment & stock**: The base calculation follows the global methodology, with an **additional allocation** for equipment dedicated to the Load Balancer control plane. | ||
|
|
||
| <Message type="note"> | ||
| The manufacturing and energy impacts are first computed at the Instance level, then attributed to Load Balancer usage based on resource consumption share. | ||
| </Message> | ||
|
|
||
| ### Usage Impact | ||
|
|
||
| - The energy consumption of Load Balancers is derived from the underlying instances. We use CPU usage as a proxy, applying [Boavizta’s consumption profiles](https://doc.api.boavizta.org/Reference/routes/#consumption-profile-routes) to estimate power draw. | ||
| - The operational environmental impact of a service depends on two key factors: the **energy mix** of the host country and the datacenter's **PUE**. Refer to the [Calculation reference values](/environmental-footprint/additional-content/calculation-values-reference) documentation page to find the values corresponding to your region. | ||
|
|
||
| #### Calculation Example | ||
|
|
||
| Assume a Load Balancer runs on an underlying Instance with: | ||
| - **Power consumption:** 110 W (0.110 kW) | ||
| - **Usage duration:** 100 hours | ||
| - **Allocation ratio** (based on instance share): `lb_ratio = 0.5` | ||
ldecarvalho-doc marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| **Energy Usage Impact**: | ||
| ```math | ||
| UsageFootprint = 0.110 * 100 * 0.065 * 1.16 = 0.825 kgCO2e | ||
ldecarvalho-doc marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ``` | ||
|
|
||
| **Manufacturing Impact** (6-year lifespan = 52,560 hours, manufacturing impact = 850 kgCO2e): | ||
ldecarvalho-doc marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ```math | ||
| ManufacturingImpact = (100 / 52560) * 850 * 0.5 = 0.81 kgCO2e | ||
| ``` | ||
|
|
||
| This means that the total footprint for 100 hours of Load Balancer usage, in this case, is **1.635 kgCO2e** | ||
|
|
||
| <Message type="important"> | ||
| Water consumption is derived from the same energy usage value, multiplied by the [Water Usage Effectiveness (WUE)](/environmental-footprint/concepts/#water-usage-effectiveness) of the datacenter. This applies to zones where WUE data is available (FR-PAR-1, FR-PAR-2, FR-PAR-3, NL-AMS-1). | ||
| </Message> | ||
|
|
||
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
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.