Skip to content

Process fleets every 60s and wake them on changes - #4548

Merged
r4victor merged 3 commits into
masterfrom
pr_fleet_pipeline_wakeups
Nov 27, 2026
Merged

r4victor merged 3 commits into
masterfrom
pr_fleet_pipeline_wakeups

Conversation

@r4victor

@r4victor r4victor commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

On Sky, fleet processing was the largest background load (~100k fleet passes/hour for ~420 fleets), and nearly all passes changed nothing.

  • Process fleets every 60s instead of 15s, and process a fleet right away when the new FleetModel.skip_min_processing_interval is set, together with a fleet pipeline hint.
  • Wake the fleet when a cluster instance waits for master election or replacement, when a master job waits for election, when a fleet instance is deleted, and when a fleet is deleted, so deleted fleets free their names in seconds instead of up to 15s.
  • Drop the 1-minute delay before consolidating an already consolidated fleet, so a fleet woken up by a lost instance replaces it right away; retry delays after consolidation changes are unchanged.
  • Treat a terminating cluster master as gone, so non-master instances and master jobs wait for a new master instead of following a dying one.
  • Send the job pipeline's fleet hint after the result is committed so the fleet fetcher sees the flag.

Polling every fleet every 15s dominated background load on large servers
while most passes changed nothing. Changes that need a prompt fleet pass
now set FleetModel.skip_min_processing_interval and hint the pipeline.
Instances and master jobs no longer follow a terminating cluster master.
@r4victor
r4victor merged commit 50fcb5b into master Nov 27, 2026
26 checks passed
@r4victor
r4victor deleted the pr_fleet_pipeline_wakeups branch November 27, 2026 10:54
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.

1 participant