cache: 10dd431f drops every node-held entry when the one node is silent for 90 s, though it returns with its store #90

Open
opened 2026-11-16 21:23:06 +00:00 by xemmerling · 0 comments
Owner

10dd431f has Holdings::forget hand the cache every prefix the node held, and the cache drops the entries naming them at once (a_gone_nodes_holdings_take_the_entries_naming_them: "a node gone silent for LOST_AFTER serves none of its blobs again"). On production that premise does not hold in the common case: there is one node, and a worker that was silent for 90 s comes back under the same name with its store as it was.

What changes for that case.

  • Before (6ee9a77c): forget took the set out and told nobody. The entries stood. With the only node silent no job looks anything up, so nearly all of them were still there when the node came back, sent its set whole and was confirmed.
  • After (10dd431f): the node is judged gone at 90 s (LOST_AFTER = 3 × POLL_ANSWER = 3 × 30 s), every entry with held_blobs goes in one step, and the node returns holding blobs no entry names any more.

What is at stake. entries.held_blobs is non-null in about 1.1% of 778,833 rows by the planner's statistics (analysed 21:08Z): about 8,800 entries. They are the kept links and the kept test builds, the ones a head pays most to build again.

How often it has happened. Not once in the last seven days: t_node_up for t-worker-ci-x86-1 never read 0 at one-minute steps across 62 server pods, the worker's freeze of 11-10 and the worker pod's replacement at 01:14Z 11-16 included, and none of my saved server logs has "node silent for". So this is a cost of a rare event, not a regression seen. A silence shorter than a scrape would not show in that reading.

A thought, yours to take or leave. The same commit already makes a returning node's whole set drop exactly what it left out. With that in place a node judged gone could keep its entries until its set comes back or the node is removed for good (Nodes::forget by hand), and forget on a silence would hand over nothing. The entries of a node that never returns would then go at their first look, as before.

Everything else I read in the commit holds as far as I can tell: the transition is the index's own, another node's copy or an awaited node keeps the entry, and the cache is wired to the index before Nodes::load at a start.

22:54Z 11-16: fifty minutes of 10dd431f on production (in 243ff75d, live 22:03:58Z)

The case of this issue has not occurred: no "node silent for" line, and the worker's own restart at the promote (re-attached 233 jobs after 12 s) dropped nothing: t_cache_lost_entries_total stood at 0 for the first twelve minutes.

What the change does do, as written: 48 lines "entries whose blobs no store holds any more went" since 22:17Z, as the node's reports land, by ten minutes 447, 853, 1,321 and 1,421 entries. The warning "a cache entry names a blob its node lacks" now counts nearly the same entries (451, 853, 484, 1,391): it is this path's drop line, where before it was a lookup's. In all 4,077 entries lost in 49 minutes, the rate of the hour before the promote (5,472 in the hour to 22:00Z, 6,294 in the hour to 10:00Z): the node's churn under the wave, not more.

So nothing here argues against the commit. The question of the first section stands for the day the one node is silent for ninety seconds.

10dd431f has `Holdings::forget` hand the cache every prefix the node held, and the cache drops the entries naming them at once (`a_gone_nodes_holdings_take_the_entries_naming_them`: "a node gone silent for `LOST_AFTER` serves none of its blobs again"). On production that premise does not hold in the common case: there is one node, and a worker that was silent for 90 s comes back under the same name with its store as it was. **What changes for that case.** - Before (6ee9a77c): `forget` took the set out and told nobody. The entries stood. With the only node silent no job looks anything up, so nearly all of them were still there when the node came back, sent its set whole and was confirmed. - After (10dd431f): the node is judged gone at 90 s (`LOST_AFTER` = 3 × `POLL_ANSWER` = 3 × 30 s), every entry with `held_blobs` goes in one step, and the node returns holding blobs no entry names any more. **What is at stake.** `entries.held_blobs` is non-null in about 1.1% of 778,833 rows by the planner's statistics (analysed 21:08Z): about 8,800 entries. They are the kept links and the kept test builds, the ones a head pays most to build again. **How often it has happened.** Not once in the last seven days: `t_node_up` for `t-worker-ci-x86-1` never read 0 at one-minute steps across 62 server pods, the worker's freeze of 11-10 and the worker pod's replacement at 01:14Z 11-16 included, and none of my saved server logs has "node silent for". So this is a cost of a rare event, not a regression seen. A silence shorter than a scrape would not show in that reading. **A thought, yours to take or leave.** The same commit already makes a returning node's whole set drop exactly what it left out. With that in place a node judged gone could keep its entries until its set comes back or the node is removed for good (`Nodes::forget` by hand), and `forget` on a silence would hand over nothing. The entries of a node that never returns would then go at their first look, as before. Everything else I read in the commit holds as far as I can tell: the transition is the index's own, another node's copy or an awaited node keeps the entry, and the cache is wired to the index before `Nodes::load` at a start. ## 22:54Z 11-16: fifty minutes of 10dd431f on production (in 243ff75d, live 22:03:58Z) The case of this issue has not occurred: no "node silent for" line, and the worker's own restart at the promote (re-attached 233 jobs after 12 s) dropped nothing: `t_cache_lost_entries_total` stood at 0 for the first twelve minutes. What the change does do, as written: 48 lines "entries whose blobs no store holds any more went" since 22:17Z, as the node's reports land, by ten minutes 447, 853, 1,321 and 1,421 entries. The warning "a cache entry names a blob its node lacks" now counts nearly the same entries (451, 853, 484, 1,391): it is this path's drop line, where before it was a lookup's. In all 4,077 entries lost in 49 minutes, the rate of the hour before the promote (5,472 in the hour to 22:00Z, 6,294 in the hour to 10:00Z): the node's churn under the wave, not more. So nothing here argues against the commit. The question of the first section stands for the day the one node is silent for ninety seconds.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
tilo/t#90
No description provided.