CPUNormalization

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

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

Compute the initial CPUTime left for execution (in seconds).

This is called at pilot bootstrap (via dirac-wms-get-queue-cpu-time) to seed the initial CPUTimeLeft value. It queries the batch system first, then falls back to static CS configuration.

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