CPUNormalization

DIRAC Workload Management System Client module that encapsulates all the methods necessary to handle CPU normalization

DIRAC.WorkloadManagementSystem.Client.CPUNormalization.getCPUTime(cpuNormalizationFactor)

Trying to get CPUTime left for execution (in seconds).

It will first look to get the work left looking for batch system information useing the TimeLeft utility. If it succeeds, it will convert it in real second, and return it.

If it fails, it tries to get it from the static info found in CS. If it fails, it returns the default, which is a large 9999999, that we may consider as “Infinite”.

This is a generic method, independent from the middleware of the resource if TimeLeft doesn’t return a value

Parameters:
  • cpuNormalizationFactor (float) – the CPU power of the current Worker Node.

  • in (If not passed)

  • configuration (it's get from the local)

Returns:

the CPU time left, in seconds

Return type:

cpuTimeLeft (int)

DIRAC.WorkloadManagementSystem.Client.CPUNormalization.getQueueInfo(ceUniqueID, diracSiteName='')

Extract information from full CE Name including associate DIRAC Site