Hi Janusz,
first question: which version of DIRAC are you using? The RSS was changed in multiple occasions in the last few releases, so this is important.
Second: I am afraid you took the wrong example, as the PilotEfficiencyPolicy has not been updated for long time, and we have not been using it recently in LHCb, so I would start with a different one. A "must-use" policy is the DowntimePolicy, whose job is basically to ban (and unban) resources (SEs, CEs, FTS, etc.) and sites according to what's their status in GOCDB.
What follows is the DIRAC certification configuration (in /Operations/[setup]/). It's an example, of course, so adapt it to your case.
ResourceStatus
{
Config
{
Cache = 300
State = Active
FromAddress =
federic...@cern.ch notificationGroups = CertifGroup
StatusTypes
{
default = all
StorageElement = ReadAccess
StorageElement += WriteAccess
StorageElement += CheckAccess
StorageElement += RemoveAccess
}
}
Policies
{
AlwaysActiveForSite
{
matchParams
{
element = Site
}
policyType = AlwaysActive
}
AlwaysActiveForResource
{
matchParams
{
element = Resource
}
policyType = AlwaysActive
}
DTOngoing
{
matchParams
{
element = Resource
}
}
DTScheduled1
{
matchParams
{
element = Resource
elementType = StorageElement
elementType += FTS
}
}
DTScheduled
{
matchParams
{
element = Resource
elementType = ComputingElement
}
}
FreeDiskSpaceMB
{
matchParams
{
elementType = StorageElement
statusType = WriteAccess
element = Resource
}
}
PropagationPolicy
{
matchParams
{
element = Site
}
policyType = PropagationPolicy
}
}
PolicyActions
{
LogStatusAction
{
}
LogPolicyResultAction
{
}
ElementIsBanned
{
actionType = EmailAction
combinedResult
{
Status = Banned
}
matchParams
{
status = Active
status += Degraded
status += Probing
}
}
ElementIsUsable
{
actionType = EmailAction
combinedResult
{
Status = Active
Status += Degraded
}
matchParams
{
status = Probing
status += Banned
}
}
ElementError
{
actionType = EmailAction
combinedResult
{
Status = Error
}
matchParams
{
status = Banned
status += Probing
status += Degraded
status += Active
status += Unknown
}
}
}
Cheers,
Federico