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/cluster/installation.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,6 +130,33 @@ If you are using the *NOP Linux* setup with the `client.py` service you must als
130
130
131
131
Since we are using our [lm_sensors provider →]({{< relref "/docs/measuring/metric-providers/lm-sensors" >}}) to query the temperature you must also set the `base_temperature_chip` and `base_temperature_feature` to query from. Refer to the [provider documentation →]({{< relref "/docs/measuring/metric-providers/lm-sensors" >}}) for more details.
132
132
133
+
#### Auto-Updating
134
+
135
+
The cluster is capable of automatically running updates. You can trigger this behaviour by setting
136
+
the `update_os_packages` to *true* in the `config.yml`.
137
+
138
+
The permissions to run the OS package manager updates are automatically given by giving sudo permissions to the
139
+
`maintenance.sh`file during installation.
140
+
141
+
#### Regular Reboots
142
+
143
+
We recommend having your machines to undergo regular reboots especially when you have auto-updating enabled
144
+
via `update_os_packages`.
145
+
146
+
This ensures that in case for instance a new kernel is installed the machine will load it at some point.
147
+
148
+
To enable this behaviour you need to set the `reboot_after_seconds` flag in the `config.yml` to a time in seconds.
149
+
Setting it to `0`, `False`, `None` or `null` will disable it.
150
+
A typical setting is `86400` to reboot every 24 hours.
151
+
152
+
Furthermore you must allow the parameter to be run without sudo password entry:
153
+
154
+
```bash
155
+
echo "${USER} ALL=(ALL) NOPASSWD:/usr/bin/systemctl reboot" | sudo tee /etc/sudoers.d/green-coding-reboot
156
+
sudo chmod 500 /etc/sudoers.d/green-coding-reboot
157
+
```
158
+
159
+
133
160
#### Profiling Machines
134
161
135
162
Machines that are intended to create a carbon profile *as it would be seen in a user machine* should have:
Copy file name to clipboardExpand all lines: content/en/docs/measuring/configuration.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,8 @@ cluster:
44
44
sleep_time_no_job: 300
45
45
jobs_processing: "random"
46
46
shutdown_on_job_no: False
47
+
update_os_packages: True
48
+
reboot_after_seconds: False
47
49
# These two parameters have only effect in cluster mode. When using CLI they will be set via flags --docker-prune and --full-docker-prune only
48
50
docker_prune: True
49
51
full_docker_prune: False
@@ -121,14 +123,14 @@ Also see [Resource Limits]({{< relref "/docs/measuring/resource-limits" >}}) to
121
123
122
124
-`full_docker_prune_whitelist`**[list]**: A list of image names (without tag) or image IDs (short form) that will be whitelisted when `--full-docker-prune` is active. Images listed here will not be pruned. Useful for cluster installations where non security critical images shall be kept that take long to download.
123
125
-`metric-providers`:
124
-
+`linux`/`macos`/`common`**[string]**: Specifies under what system the metric provider can run. Common implies it could run on either.
* `METRIC_PROVIDER_NAME.sampling_rate`**[integer]**: sampling rate in ms
127
129
128
130
Some metric providers have unique configuration params:
129
131
130
132
- PsuEnergyAcXgboostSystemProvider
131
-
+ Please look at the always current documentation to understand what values to plug in here: [XGBoost SPECPower Model documentation](https://github.com/green-coding-solutions/spec-power-model)
133
+
+ Please look at the always current documentation to understand what values to plug in here: [XGBoost SPECPower Model documentation](https://github.com/green-coding-solutions/spec-power-model)
132
134
133
135
Also note that some providers are deactivated by default, because they either need
134
136
additional configuration parameters, extra hardware or a specially configured system.
@@ -183,7 +185,7 @@ Settings that are specifc to a user and apply to all machines that you are measu
183
185
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)
184
186
185
187
- `disabled_metric_providers` **[list]**: Providers to disable in CamelCase format.
- `flow-process-duration` **[integer]**: Max. duration in seconds for how long one flow should take. Timeout-Exception is thrown if exceeded.
188
190
- `total-duration` **[integer]**: Max. duration in seconds for how long the whole run may take. Including building containers, baseline, idle, runtime and removal phases.
189
191
- `phase-padding` **[integer]**: Phase padding is by default applied to the end of the phase to capture the last sampling tick, which might be cut-off. GMT applies one extra tick to the end of the phase. If your phase cut-offs must me microsecond exact you can turn this off. Typically not recommended and should be left on. See [https://github.com/green-coding-solutions/green-metrics-tool/issues/1129](https://github.com/green-coding-solutions/green-metrics-tool/issues/1129) for details.
0 commit comments