Skip to content

t3-golive: owner-lock handover margin shrank to ~110 ms (#531 verify nit) #534

Closed

Description

@scuttletoby

Follow-up from the verify round on #531 (#531 (comment)), NIT.

The kit now lets go of the owner lock about 100-140 ms after the new launcher takes its serving lock (it needs 3 polls in a row over at least 100 ms, so an SSH launch's brief probe cannot pass). Before #531 it was about 20 ms. The new server waits only 250 ms for that lock, so the spare time drops from about 230 ms to about 110 ms. On a very busy host the server could miss it and idle, which leaves the home free for about a minute.

Also, the unit test that measures this uses a wall-clock bound (fork-kit/golive/tests/gap.test.py around line 652), so it can be flaky on a slow runner.

Possible fixes: log the measured handover delay; lower the hold to about 60 ms (still far above a probe's microseconds); make the test bound relative or tolerant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions