← notes

A replica blamed for a slow manager

Oct 22, 2026

Under load, the manager closed each cycle before it read the replies queued behind the next tick. Three cycles later every replica was retired as lost.

Run 3 moves Mru’s components into F´, NASA’s flight software framework. The RedundancyManager closes a cycle on each rate group tick and counts a replica that has not answered as missing.

When the manager falls behind, the next tick waits in its queue in front of the replies. The cycle closes, nobody has answered, and every replica takes a miss. After three such cycles all three are retired as LOST and the run halts. Nothing was wrong with any of them. CI hit it once, in the restart test. Starved on purpose, with half a CPU, six busy loops and 20 ms cycles, it halted at cycle 4 on every try.

MRU-RM-023 calls a cycle late when other messages are still waiting as it closes, or when every one of two or more expected answers is missing. A late cycle counts a missing answer against no replica and is withheld. It shows in a Late channel, a CycleWithheld event and late= in the summary, and a reply that arrives late clears the replica’s misses. With one replica left, silence counts as before, because there is nothing to compare it with.

Four new unit tests, 44 in all. Fifteen starved runs halted nine times before the change and zero after. Replicas lost for no cause went from 28 to 14. Wrong results were zero in every run, before and after.

The deployment script had checked events at exact cycles. Each withheld cycle can push a later event by one, so the checks are now windows, and a failure prints the events it saw.

The rule gives up a cycle so it does not blame a replica. Six days later, on the FlatSat, it gave one up.