Skip to content

Commit

Permalink
Fix T1 site cores ResourceControl logic
Browse files Browse the repository at this point in the history
Cast to integer
  • Loading branch information
amaltaro committed Nov 23, 2024
1 parent b0e8ae4 commit 5b9221e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ def checkSlotsChanges(self, infoRC, infoSSB):
for site in set(infoRC).intersection(set(infoSSB)):
if self.tier0Mode and site.startswith('T1_'):
# T1 cores utilization for Tier0
infoSSB[site]['slotsCPU'] *= self.t1SitesCores // 100
infoSSB[site]['slotsIO'] *= self.t1SitesCores // 100
infoSSB[site]['slotsCPU'] = int(infoSSB[site]['slotsCPU'] * self.t1SitesCores / 100)
infoSSB[site]['slotsIO'] = int(infoSSB[site]['slotsIO'] * self.t1SitesCores / 100)
else:
# round very small sites to the bare minimum
infoSSB[site]['slotsCPU'] = max(infoSSB[site]['slotsCPU'], self.minCPUSlots)
Expand Down

0 comments on commit 5b9221e

Please sign in to comment.