From ca1655478191f47630d578f426bb756ee26c2262 Mon Sep 17 00:00:00 2001 From: Olivier Tardieu Date: Fri, 20 Dec 2024 11:53:37 -0500 Subject: [PATCH] Report GPU pods using default scheduler --- tools/cluster-checker/checker.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/cluster-checker/checker.js b/tools/cluster-checker/checker.js index 9e3a219..85ac6cf 100644 --- a/tools/cluster-checker/checker.js +++ b/tools/cluster-checker/checker.js @@ -245,6 +245,14 @@ async function checkUserNamespace (client, namespace, queues) { } } } + + // report GPU pods using default scheduler + const pods = await client.pods(namespace.metadata.name) + for (const pod of pods) { + if (pod.spec.schedulerName === 'default-scheduler' && reservation(pod) > 0) { + console.log(`WARNING: pod "${namespace.metadata.name}/${pod.metadata.name}" is using default-scheduler`) + } + } } // check system namespace