Skip to content
Andrei Tsaregorodtsev edited this page May 21, 2017 · 12 revisions

ResourceStatusSystem

The RSS status for Sites and ComputingElements can now be used in the pilot submission logic for choosing destination resources. These statuses are used if the RSS status management is enabled with the flag:

/Operations/<setup>/ResourceStatus/Config/State=Active

In order to use RSS statuses for Sites and ComputingElements, the latter must be synchronized with the CS information. This should be done with the following commands:

> dirac-rss-sync --element=Site --defaultStatus=Banned --init
> dirac-rss-sync --element=ComputingElement --defaultStatus=Active

This will initialize the Sites in the RSS databases with the Banned default status unless the site is allowed in the old SiteMask logic. The ComputingElements are initialized all with the Active status because this status is not defined in the CS descriptions.

The below policy needs to be added in the CS under Operations > Defaults > ResourceStatus > Policies:

PropagationPolicy
{
  matchParams
  {
    element = Site
  }
  policyType = PropagationPolicy
}

This is needed in order to propagate Site status to all the dependent resources in case of the Site status change

FTS

For compatibility with MySQL 5.7, the FTSHistoryView needs update:

alter view FTSHistoryView as select `FTSJob`.`Status` AS `Status`,sum(`FTSJob`.`Files`) AS `Files`,`FTSJob`.`TargetSE` AS `TargetSE`,(sum(`FTSJob`.`Completeness`) / count(distinct `FTSJob`.`FTSJobID`)) AS `Completeness`,sum(`FTSJob`.`FailedSize`) AS `FailedSize`,sum(`FTSJob`.`Size`) AS `Size`,sum(`FTSJob`.`FailedFiles`) AS `FailedFiles`,count(distinct `FTSJob`.`FTSJobID`) AS `FTSJobs`,`FTSJob`.`SourceSE` AS `SourceSE` from `FTSJob` where (`FTSJob`.`LastUpdate` > (utc_timestamp() - interval 3600 second)) group by `FTSJob`.`SourceSE`,`FTSJob`.`TargetSE`,`FTSJob`.`Status` ;
Clone this wiki locally