perf(redfish): bound Giga B300 inventory crawl
This commit is contained in:
1 parent
3ac19f37b8
commit
29371f69ee
9 files changed
+432
-6
No files matched your search
@@ -7,13 +7,18 @@ func supermicroProfile() Profile {
|
||||
safeForFallback: true,
|
||||
matchFn: func(s MatchSignals) int {
|
||||
score := 0
|
||||
if containsFold(s.SystemManufacturer, "supermicro") || containsFold(s.ChassisManufacturer, "supermicro") {
|
||||
isSupermicro := containsFold(s.SystemManufacturer, "supermicro") || containsFold(s.ChassisManufacturer, "supermicro")
|
||||
if isSupermicro {
|
||||
score += 80
|
||||
}
|
||||
for _, hint := range s.ResourceHints {
|
||||
if containsFold(hint, "hgx_baseboard") || containsFold(hint, "hgx_gpu_sxm") {
|
||||
score += 20
|
||||
break
|
||||
// HGX resource names describe an NVIDIA topology, not the server vendor.
|
||||
// Only use them to strengthen an already established Supermicro match.
|
||||
if isSupermicro {
|
||||
for _, hint := range s.ResourceHints {
|
||||
if containsFold(hint, "hgx_baseboard") || containsFold(hint, "hgx_gpu_sxm") {
|
||||
score += 20
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
return min(score, 100)
|
||||
|
||||
Reference in new issue
Block a user