Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge job stats DB and server commands #12

Merged
merged 8 commits into from
Dec 16, 2023
Merged

Conversation

mahendrapaipuri
Copy link
Owner

  • Logical for batchjob_stats_server to do DB updates in a separate go routine
  • Improve support for privilege esclations for sacct and ipmi commands
  • General maintenance

* Logical to have both of them in one binary. It reduces maintainence and operation costs

* Spawn db update and server in separate go routines

Signed-off-by: Mahendra Paipuri <[email protected]>
* Either use sudo or set cap_setuid to make os.setuid() call in subprocess

* Do sanity checks before new struct. Exit if sanity checks fail

* Mark done after server shutdown

Signed-off-by: Mahendra Paipuri <[email protected]>
Signed-off-by: Mahendra Paipuri <[email protected]>
* We refuse to start exporter if slurm collector cannot start

* This is the main collector of package and thus we need to fail fast

Signed-off-by: Mahendra Paipuri <[email protected]>
* Support using sudo or setuid to execute ipmi-dcmi command

* Allow to set full ipmi cmd in cli to support different ipmi utils

Signed-off-by: Mahendra Paipuri <[email protected]>
Signed-off-by: Mahendra Paipuri <[email protected]>
@mahendrapaipuri mahendrapaipuri added enhancement New feature or request maintenance General maintenance labels Dec 16, 2023
@mahendrapaipuri mahendrapaipuri merged commit 50a5db3 into main Dec 16, 2023
5 checks passed
@mahendrapaipuri mahendrapaipuri deleted the merge_job_stats_cmds branch December 16, 2023 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request maintenance General maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant