mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-27 07:39:05 +01:00
Code reduction and preparation for cgroup/v2
This commit is contained in:
parent
8450bc4342
commit
8055d1425c
File diff suppressed because it is too large
Load Diff
@ -7,6 +7,7 @@
|
|||||||
"send_job_metrics" : true,
|
"send_job_metrics" : true,
|
||||||
"send_step_events": false,
|
"send_step_events": false,
|
||||||
"send_step_metrics" : false,
|
"send_step_metrics" : false,
|
||||||
|
"cgroup_version" : "v1"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -20,9 +21,13 @@ Options:
|
|||||||
* `send_job_metrics`: Send metrics of each running job with the global collector interval
|
* `send_job_metrics`: Send metrics of each running job with the global collector interval
|
||||||
* `send_step_events`: Send events when a job step starts
|
* `send_step_events`: Send events when a job step starts
|
||||||
* `send_step_metrics`: Send metrics of each job step with the global collector interval
|
* `send_step_metrics`: Send metrics of each job step with the global collector interval
|
||||||
|
* `cgroup_version`: Which cgroup version is in use. Possible values are `v1` and `v2`. `v1` is the default
|
||||||
|
* `sysfs_base`: (Testing only) Set the base path for lookups, default `/sys/fs/cgroup`.
|
||||||
|
|
||||||
|
For `cgroup_version = v2`, the collector searches for jobs at `<sysfs_base>/system.slice/slurmstepd.scope`, by default with `<sysfs_base>=/sys/fs/cgroup`. If the cgroup folders are created below `/sys/fs/cgroup/unified`, adjust the `sysfs_base` option to `/sys/fs/cgroup/unified`.
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
For testing the collector, you can specifiy a different base directory that should be checked for new events. The default is `/sys/fs/cgroup/`. By specifying a `sysfs_base` in the configuration, this can be changed. Moreover, with the `slurmJobDetector_dummy.sh`, you can create and delete "jobs" for testing. Use the same directory with `--basedir`
|
For testing the collector, you can specifiy a different base directory that should be checked for new events. The default is `/sys/fs/cgroup/`. By specifying a `sysfs_base` in the configuration, this can be changed. Moreover, with the `slurmJobDetector_dummy.sh`, you can create and delete "jobs" for testing. Use the same directory with `--basedir`. It generates only cgroup/v1 directory structures at the moment.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ slurmJobDetector_dummy.sh -h
|
$ slurmJobDetector_dummy.sh -h
|
||||||
|
Loading…
Reference in New Issue
Block a user