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-327] Implémenter les alertes : Proportion des jobs avec GPU-type sur un noeud donné plus bas qu'un threshold X #127

Merged
merged 3 commits into from
Sep 9, 2024

Conversation

notoraptor
Copy link
Contributor

…e sur un noeud donné plus bas qu'un threshold X
@notoraptor notoraptor marked this pull request as ready for review July 15, 2024 12:29
nb_tasks = row.task_
gpu_usage = row.gpu_usage_
if gpu_usage < threshold and (
cluster_name == "mila" or nb_tasks >= min_drac_tasks
Copy link
Collaborator

Choose a reason for hiding this comment

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

ça répond bien à la définition de la tâche, néanmoins le fait de hardcoder le nom du cluster "mila" dans le code comme ça me gène un peu.
Bien que je ne vois pas comment le faire proprement via les fichiers de config non plus... une idée ?

Copy link
Collaborator

@nurbal nurbal Sep 5, 2024

Choose a reason for hiding this comment

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

peut-être remplacer min_drac_taskspar min_tasks et un paramètre ignore_min_tasks_for_clusters : Optional(list(str)) = ['mila'] ? comme ça on ne met plus les références à Mila ou DRAC dans le code, mais on les déplace dans les paramètres par défaut... qu'en penses-tu ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Après ça ce sera bon pour moi

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nurbal Fait ! 4f4ee5d

@nurbal nurbal merged commit 471cd3b into master Sep 9, 2024
7 checks passed
@notoraptor notoraptor deleted the sarc-327 branch September 10, 2024 12:55
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