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

[SARC-328] Implémenter les alertes : Nombre de jobs CPU/GPU (actives ou inactives) sur un cluster sur une période X #128

Merged
merged 7 commits into from
Sep 18, 2024

Conversation

notoraptor
Copy link
Contributor

@nurbal !

NB basée sur la PR pour SARC-327 #127 à merger en premier !

Base automatically changed from sarc-327 to master September 10, 2024 12:55
@notoraptor notoraptor marked this pull request as ready for review September 10, 2024 13:09
@notoraptor
Copy link
Contributor Author

Prêt à reviewer !

@notoraptor
Copy link
Contributor Author

Rebased with master

- Remove `exclude` parameter and use only `cluster_names` for both adding and excluding clusters from checking.
.count()
)
# Compute cluster usage: number of jobs per cluster per timestamp
f_stats["jobs_per_cluster"] = f_stats["job_id"] / len(cluster_names)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm donc le calcul des valeurs statistiques (moyenne, écart-type) est pour l'ensemble des clusters, et pas cluster par cluster, si je comprends bien ? Je pense que ce qu'on voulait c'est des valeurs statistiques pour chaque cluster, indépendemment. (Mais je me trompe peut-être dans la lecture du code)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En effet, les statistiques sont actuellement calculées sur l'ensemble des clusters.

Je vais modifier le code pour les calculer cluster par cluster à travers les jours.

@nurbal nurbal merged commit 0e6ba5c into master Sep 18, 2024
7 checks passed
@notoraptor notoraptor deleted the sarc-328 branch September 18, 2024 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants