-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #536 from Boavizta/532-document-how-cloud-scanner-…
…provides-estimations-for-block-storage-ebs 535 and 532 Support AWS io1 io2 and standard EBS volumes, update doc.
- Loading branch information
Showing
8 changed files
with
81 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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,36 @@ | ||
# Estimating impacts of block storage | ||
|
||
Block storage volumes are approximated either as SSD or HDD depending on cloud provider specific storage type. | ||
|
||
This is a basic estimation. It takes into account the size of the block storage volume. | ||
|
||
⚠ Only the **manufacture** impacts of the Block storage are returned. The impacts of the **use** phase are returned as zero (mainly because we lack the related data in current version of Boavizta API). | ||
|
||
## Block storage (EBS) estimation (AWS) | ||
|
||
### What is considered in estimation: | ||
|
||
- storage type (HDD vs SSD) | ||
- storage size | ||
- duration of use | ||
|
||
| AWS EBS volume type | Boavizta storage used for estimation | comments | | ||
| :------------------ | :----------------------------------- | :------- | | ||
| st1 | HDD | | | ||
| sc1 | HDD | | | ||
| magnetic (standard) | HDD | | | ||
| gp2 | SSD | | | ||
| gp3 | SSD | | | ||
| io1 | SSD | | | ||
| io2 | SSD | | | ||
| unknown type | SSD | If it cannot identify the type of storage (like when a new type is introduced, cloud scanner uses SSD as an approximation) | | ||
|
||
### What is not considered for the estimation | ||
|
||
- If the storage offers provisioned IOPS or not. | ||
- Implicit redundancy related to storage type. | ||
- Any other infrastructure (network, backup, supervision or redundancy) that may allow the cloud provider to offer EBS service. | ||
|
||
## Block storage estimations (Azure) | ||
|
||
Not yet implemented. |
This file contains 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 |
---|---|---|
@@ -1,21 +1,35 @@ | ||
# Methodology and source of data | ||
|
||
Cloud scanner uses the Boavizta methodology to estimate the impacts of cloud resources. | ||
Cloud scanner relies on the Boavizta methodology and data to estimate the impacts of cloud resources. | ||
|
||
## Source of impact data | ||
It performs an inventory of the resources used in a cloud account. It then returns impacts of the *use* phase but also impacts related to the *manufacture* of the identified resources (*embodied* impacts). | ||
|
||
## The source of impact data | ||
|
||
Impact data is retrieved from [BOAVIZTA reference data API](https://github.com/Boavizta/boaviztapi/) v1.2.x. | ||
|
||
## General approach and limits | ||
|
||
Cloud scanner estimates impacts according to the duration of use of cloud resources. It also considers the "intensity" of use (like the type of instance and CPU load for a VM or size of a disk for storage). The region of use is also considered to take into account the electricity mix of the region (carbon intensity). | ||
|
||
The general approach is to map cloud vendor specific ressources, either to Boavizta *cloud resources* (like for VM instances) or to more generic components (Block storage volumes are approximated as Boavizta HDD or SSD). | ||
|
||
But this approach means that **a large portion** of the cloud provider infrastructure **is excluded from the estimation**. | ||
|
||
⚠ Cloud scanner **underestimates the impacts of a cloud account**. Because it only considers the _instances_ and _block storage_, many additional sources of impacts (network, potential redundancy, cloud control plan, buildings...) are not included in the estimation. | ||
|
||
![A diagram that show that only VM's and Block storage are considered](../images/cloud-scanner-perimeter-aws.excalidraw.png) | ||
|
||
See also [other limits](../reference/limits.md). | ||
|
||
## Methodology | ||
|
||
The general approach of Boavizta is described in [Digital & environment : How to evaluate server manufacturing footprint, beyond greenhouse gas emissions? | Boavizta](https://boavizta.org/en/blog/empreinte-de-la-fabrication-d-un-serveur) | ||
The Boavizta methodology is described in [Digital & environment : How to evaluate server manufacturing footprint, beyond greenhouse gas emissions? | Boavizta](https://boavizta.org/en/blog/empreinte-de-la-fabrication-d-un-serveur) | ||
|
||
The impacts (use and embedded) are attributed according to the principles described in [Cloud instances - Boavizta API documentation](https://doc.api.boavizta.org/Explanations/services/cloud/). | ||
|
||
The results are similar to what you can visualize in [Datavizta](http://datavizta.boavizta.org/cloudimpact), but with automated inventory. | ||
The results of cloud scanner are similar to what you can visualize in [Datavizta](http://datavizta.boavizta.org/cloudimpact), but with automated inventory. | ||
|
||
⚠ Cloud scanner **underestimates the impacts of the cloud resources**. Because it only considers the _instances_ and _block storage_ a several sources of impacts (network, potential redundancy, cloud control plan) are not included in the estimation. | ||
|
||
See also [other limits](../reference/limits.md). | ||
- Boavizta website: <https://www.boavizta.org/en> | ||
|
||
- https://www.boavizta.org/en |
This file contains 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 |
---|---|---|
@@ -1,12 +1,20 @@ | ||
# How we process workload | ||
# How we estimate instance workload | ||
|
||
Workload of instances are estimated using AWS cloudwatch CPU metrics summary. | ||
Workload (or intensity of use) of instances is estimated using CPU load level as a proxy. | ||
|
||
## Estimating instances workload for AWS | ||
|
||
The CPU load of AWS instances is retrieved using _AWS Cloudwatch CPU metrics summary_. | ||
|
||
Cloud scanner uses a sampling period of 15 minutes, but impacts metrics are returned as impacts equivalent to one hour of use. | ||
|
||
This means that instance impacts metrics data returned can be understood as: `impact for one hour of use (considering the CPU workload of 15 last minutes)`. | ||
|
||
Why this default sampling period of 15 minutes ? | ||
|
||
- It seems sufficient for our current monitoring needs (but maybe we can make it configurable in the future). | ||
- It seems hard to go below 10 minutes (because default period of AWS instance metrics is 5 minutes. You need to activate `detailed monitoring` (extra feature) for 1 minute granularity: [List the available CloudWatch metrics for your instances - Amazon Elastic Compute Cloud](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/viewing_metrics_with_cloudwatch.html#ec2-cloudwatch-metrics)). | ||
- It is sufficient for our current monitoring needs (but maybe we may make this setting configurable in the future). | ||
- It is hard to go below 10 minutes. Default (and free) period of AWS instance metrics is 5 minutes. You need to activate `detailed monitoring` (extra feature) for 1 minute granularity: [List the available CloudWatch metrics for your instances - Amazon Elastic Compute Cloud](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/viewing_metrics_with_cloudwatch.html#ec2-cloudwatch-metrics)). | ||
|
||
## Estimating instances workload for Azure | ||
|
||
Not implemented. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.