Skip to content

Commit 9845303

Browse files
authored
Documented configuration options for Dashboard; Made SCI clearer (#97)
1 parent e811c35 commit 9845303

File tree

3 files changed

+58
-8
lines changed

3 files changed

+58
-8
lines changed

content/en/docs/measuring/configuration.md

Lines changed: 50 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ date: 2022-06-20T08:48:45+00:00
66
weight: 825
77
---
88

9-
## Config.yml
9+
Configurations in the GMT happen at two central places.
10+
11+
The file based [config.yml](#configyml) and the Dashboard based [User Settings](#user-settings)
12+
13+
## config.yml
1014

1115
The `config.yml` configures some global measurement settings that are used when
1216
executing the `runner.py` directly or through cron / cluster-client mode.
@@ -69,8 +73,6 @@ measurement:
6973
pre-test-sleep: 5
7074
idle-duration: 5
7175
baseline-duration: 5
72-
flow-process-duration: 1800 # half hour
73-
total-duration: 3600 # one hour
7476
post-test-sleep: 5
7577
phase-transition-time: 1
7678
boot:
@@ -97,13 +99,13 @@ admin:
9799

98100
The `postgresql`, `smtp` and `cluster` key were already discussed in the [installation →]({{< relref "/docs/installation/installation-linux" >}}) part.
99101

100-
## machine
102+
### machine
101103
If you run locally nothing needs to be configured here. But if you run a *cluster* you must set the base temperature values for the accuracy control to work
102104

103105
Please see [cluster installation →]({{< relref "/docs/cluster/installation" >}}) and [accuracy control →]({{< relref "/docs/cluster/accuracy-control" >}})
104106

105107

106-
## cluster
108+
### cluster
107109

108110
Only the following three variables are important for a local installation:
109111

@@ -114,13 +116,12 @@ Only the following three variables are important for a local installation:
114116
For the rest please see [installation →]({{< relref "/docs/cluster/installation" >}})
115117

116118

117-
## measurement
119+
### measurement
118120

119121
- `system_check_threshold` **[integer]: Level at which an exception will be raised for system checks. The lower the more restrictive system checks are. We recommend *3* for development and *2* for cluster setups. *1* only for debugging.
120122
- `pre-test-sleep` **[integer]**: Seconds to idle containers after orchestrating but before start of measurement
121123
- `post-test-sleep` **[integer]**: Seconds to idle containers after measurement
122-
- `flow-process-duration` **[integer]**: Max. duration in seconds for how long one flow should take. Timeout-Exception is thrown if exceeded.
123-
- `total-duration` **[integer]**: Max. duration in seconds for how long the whole benchmark may take. Including building containers, baseline, idle, runtime and removal phases.
124+
benchmark may take. Including building containers, baseline, idle, runtime and removal phases.
124125
- `idle-duration` **[integer]**: Duration in seconds for the idle phase
125126
- `baseline-duration` **[integer]**: Duration in seconds for the baseline phase
126127
- `phase-transition-time` **[integer]**: Seconds to idle between phases
@@ -153,3 +154,44 @@ email behaviour if configured
153154
- `notification_email_bcc` **[str|bool]**: This email will always get a copy of every notification email sent, even for user-only mails like the "Your report is ready" mail.
154155
- `error_file` **[str|bool]**: Takes a file path to log all the errors to it. This is disabled if False
155156
- `error_email` **[str|bool]**: Sends an error notification also via email. This is disabled if False
157+
158+
159+
## optimization
160+
Here you can ignore certain optimizations to not run.
161+
162+
All possible optimizations are found in the `/optimization_providers` folder of the GMT.
163+
164+
To disable for instance the *container_build_time* optimization you could set:
165+
```yml
166+
optimization:
167+
ignore:
168+
- container_build_time
169+
```
170+
171+
## sci
172+
173+
Please see for details: [SCI →]({{< relref "sci" >}}).
174+
175+
## electricity_maps_token
176+
177+
If you are using [Eco CI](https://www.green-coding.io/products/eco-ci) or [Carbon DB](https://www.green-coding.io/products/eco-ci) you need to configure Electricitymaps with a valid API token to get carbon intensity data.
178+
179+
The value is a string.
180+
181+
Example:
182+
```yml
183+
electricity_maps_token: 'MY_TOKEN'
184+
```
185+
186+
## User Settings
187+
188+
Settings that are specifc to a user and apply to all machines that you are measuring on equally are to be configured via the Dashboard.
189+
For local installations these are to be found under [https://metrics.green-coding.internal:9142/settings.html](https://metrics.green-coding.internal:9142/settings.html). If you use our [Hosted Service](https://metrics.green-coding.io/) you find it at [https://metrics.green-coding.io/settings.html](https://metrics.green-coding.io/settings.html)
190+
191+
- `disabled_metric_providers` **[list]**: Providers to disable in CamelCase format.
192+
+ Example: *NetworkConnectionsProxyContainerProvider*
193+
- `flow-process-duration` **[integer]**: Max. duration in seconds for how long one flow should take. Timeout-Exception is thrown if exceeded.
194+
- `total-duration` **[integer]**: Max. duration in seconds for how long the whole run is allowed to take
195+
196+
197+
<center><img style="width: 300px;" src="/img/dashboard-settings.webp" alt="Dashboard Setings for GMT Measurements"></center>

content/en/docs/measuring/sci.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ from official databases like:
5959
- [https://tco.exploresurface.com/sustainability/calculator](https://tco.exploresurface.com/sustainability/calculator)
6060
- [https://www.delltechnologies.com/asset/en-us/products/servers/technical-support/Full_LCA_Dell_R740.pdf](https://www.delltechnologies.com/asset/en-us/products/servers/technical-support/Full_LCA_Dell_R740.pdf)
6161

62+
Example:
63+
```yml
64+
sci:
65+
EL: 4 # means 4 years of usage
66+
RS: 1 # means we use 1/1 = 100% of the machine. Bare metal. No virtualization
67+
TE: 181000 # Example value for a laptop taken from https://dataviz.boavizta.org/terminalimpact. Value is in g
68+
I: 436 # The number 436 that comes as default is for Germany from 2022. Value in gCO2e/kWh
69+
```
6270

6371
## Display
6472

static/img/dashboard-settings.webp

10.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)