Skip to content

[for minor release] RSS configurable thresholds#8520

Open
fstagni wants to merge 5 commits intoDIRACGrid:integrationfrom
fstagni:rss_configurable_thresholds
Open

[for minor release] RSS configurable thresholds#8520
fstagni wants to merge 5 commits intoDIRACGrid:integrationfrom
fstagni:rss_configurable_thresholds

Conversation

@fstagni
Copy link
Copy Markdown
Contributor

@fstagni fstagni commented Apr 20, 2026

closes #8517

BEGINRELEASENOTES

*RSS
CHANGE: explanation

*Deployment

  • CHANGE: for users of advanced RSS policies: check for adjusting DT and FreeDiskSpace policies

ENDRELEASENOTES

@chrisburr chrisburr marked this pull request as draft April 20, 2026 13:35
…es and generic specificity deduplication

- Configurations.py: POLICIESMETA now holds plain code-level defaults only;
  Operations() calls removed (CS is read at runtime by InfoGetter instead)
- InfoGetter.getPoliciesThatApply: CS entries without policyType are skipped
  (they are command-args defaults sections, not policy definitions); non-reserved
  keys in a CS policy entry are collected as arg overrides, merged into the policy
  args with case-insensitive key normalisation and type casting
- InfoGetter.postProcessingPolicyList: replaces the old FreeDiskSpaceMB/GB/TB
  hack with a generic rule — when multiple policies of the same policyType match,
  keep the most specific one (name-match presence > number of matchParams keys)
- dirac.cfg: add SpecificFreeDiskSpace example (Unit=GB, Banned_threshold=15,
  Degraded_threshold falls back to default); fix missing closing brace in Policies
- docs: note that command-args sections have no policyType and are not policy definitions
- test: new Test_InfoGetter.py with 15 unit tests covering all the above
@fstagni fstagni force-pushed the rss_configurable_thresholds branch 2 times, most recently from 67caea8 to 5689ef1 Compare April 20, 2026 15:48
@fstagni fstagni marked this pull request as ready for review April 20, 2026 15:49
…d defaults

FreeDiskSpaceCommand and DowntimeCommand no longer duplicate default values
in .get() fallbacks — defaults live exclusively in POLICIESMETA and are
guaranteed to be present in self.args by the time the command runs.
@fstagni fstagni force-pushed the rss_configurable_thresholds branch from 5689ef1 to 603dbf3 Compare April 20, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Make RSS FreeDiskSpacePolicy actually configurable

1 participant