You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/measuring/configuration.md
+50-8Lines changed: 50 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,11 @@ date: 2022-06-20T08:48:45+00:00
6
6
weight: 825
7
7
---
8
8
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
10
14
11
15
The `config.yml` configures some global measurement settings that are used when
12
16
executing the `runner.py` directly or through cron / cluster-client mode.
@@ -69,8 +73,6 @@ measurement:
69
73
pre-test-sleep: 5
70
74
idle-duration: 5
71
75
baseline-duration: 5
72
-
flow-process-duration: 1800# half hour
73
-
total-duration: 3600# one hour
74
76
post-test-sleep: 5
75
77
phase-transition-time: 1
76
78
boot:
@@ -97,13 +99,13 @@ admin:
97
99
98
100
The `postgresql`, `smtp` and `cluster` key were already discussed in the [installation →]({{< relref "/docs/installation/installation-linux" >}}) part.
99
101
100
-
## machine
102
+
###machine
101
103
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
102
104
103
105
Please see [cluster installation →]({{< relref "/docs/cluster/installation" >}}) and [accuracy control →]({{< relref "/docs/cluster/accuracy-control" >}})
104
106
105
107
106
-
## cluster
108
+
###cluster
107
109
108
110
Only the following three variables are important for a local installation:
109
111
@@ -114,13 +116,12 @@ Only the following three variables are important for a local installation:
114
116
For the rest please see [installation →]({{< relref "/docs/cluster/installation" >}})
115
117
116
118
117
-
## measurement
119
+
###measurement
118
120
119
121
-`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.
120
122
-`pre-test-sleep`**[integer]**: Seconds to idle containers after orchestrating but before start of measurement
121
123
-`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.
124
125
-`idle-duration`**[integer]**: Duration in seconds for the idle phase
125
126
-`baseline-duration`**[integer]**: Duration in seconds for the baseline phase
126
127
-`phase-transition-time`**[integer]**: Seconds to idle between phases
@@ -153,3 +154,44 @@ email behaviour if configured
153
154
-`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.
154
155
-`error_file`**[str|bool]**: Takes a file path to log all the errors to it. This is disabled if False
155
156
-`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.
0 commit comments