node/drain, sched: while the worker stopped at 17:36Z people's asks were placed on it and given back 5,603 times over 93 checks #108

Open
opened 2026-11-18 17:42:14 +00:00 by xemmerling · 0 comments
Owner

At 17:36:47Z production's worker pod was deleted, 21 minutes after the promote of 31934c00. While the worker stopped, people's asks kept being placed on it and given back: 5,603 jobs over 93 checks in three and a half minutes. This is about that loop; the delete itself is in the last section.

What the worker said

  • 17:36:47.243Z: "stopping: running jobs finish, jobs not started go back jobs=99 within_s=100"
  • 17:38:27.243Z: "the pod's grace runs out: its running jobs go back, to run again elsewhere jobs=69"
  • 17:38:43.391Z: "the pod ends with ends the server hasn't taken: they are on disk, and a worker of the node posts them jobs=5"

What the job history holds (cause = 'given_back', rows from 17:36:00Z)

class jobs given back distinct run and check first last
people 5,603 93 17:36:53Z 17:40:15Z
ci 1 1 17:38:36Z
probe 1 1 17:38:30Z

The checks given back most often:

run check times
r49259592c1 test-x86_64/tilo-agent-session 1,365
r80703730c6 test-x86_64/tilo-agent-session 585
re018aa9716 test/tilo-fs 567
re709717639 test-x86_64/launcher 524
re018aa9716 test/word-processor 393
re018aa9716 test/sheets 340
re018aa9716 test/tilo-vm 281
rd15bfe66b4 test/collaboration 124
  • The server's log holds 2,480 "an end taken in" lines in the minute 17:37Z and about 3,000 lines in 17:38Z, against 231 in 17:35Z.
  • CI and probe asks did not loop: one row each. They were waiting for room or held. People's asks are placed without room, so they kept landing on the stopping node.
  • The jobs view at 17:38:48Z: the node offered 0 cores, 0 memory and 0 disk, no job ran, and every ask waited as held (people 622, ci 57, probe 550).

The missing rule, as I read it: a node that has said it is stopping takes no new job, of any class. Today a job that is not started "goes back", and the server places it on the same node again, because it is the only node and people's jobs need no room. Each turn is a job id, a row in job_history and an end for the server to take in.

Not read: what each of the 93 checks' askers saw meanwhile, and whether any check was told an error instead of being run again once a worker was back. I look at that next.

The delete

  • The kubelet's event: 17:36:47Z "Killing: Stopping container worker" on t-worker-ci-x86-1-262fs. There is no eviction event, and the node shows no disk pressure.
  • The DaemonSet's update strategy is OnDelete and its generation did not change, so the pod was deleted by a command. It was not my session.
  • The new pod t-worker-ci-x86-1-djmlg started 17:39:55Z, runs 31934c00 and "re-attached to the jobs on disk jobs=2" at 17:40:15Z. The node was without a worker for three minutes.
  • 69 running jobs went back at the end of the grace, so their work is lost.

17:43Z, what became of the checks that looped: they ran again once a worker was back. Job rows of the four most given-back checks since 17:36Z:

run check given back then
r49259592c1 test-x86_64/tilo-agent-session 1,365, last 17:38:43Z 10 passed, last 17:40:47Z
r80703730c6 test-x86_64/tilo-agent-session 585, last 17:38:43Z 2 passed, 3 failed, last 17:41:09Z
re018aa9716 test/tilo-fs 567, last 17:38:43Z 10 passed, last 17:41:41Z
re709717639 test-x86_64/launcher 524, last 17:38:36Z 8 passed, last 17:41:04Z
  • So no asker was told an error for the loop itself. The cost is the turns: thousands of job ids, history rows and ends in two minutes, on a server that was also taking in the stopped worker's real ends.
  • Jobs ended from 17:40:20Z to 17:43:20Z on the new worker: people 99 passed, 18 failed, 3 cancelled; ci 73 passed, 10 failed. No cause of t's own.
At 17:36:47Z production's worker pod was deleted, 21 minutes after the promote of 31934c00. While the worker stopped, people's asks kept being placed on it and given back: 5,603 jobs over 93 checks in three and a half minutes. This is about that loop; the delete itself is in the last section. **What the worker said** - 17:36:47.243Z: "stopping: running jobs finish, jobs not started go back jobs=99 within_s=100" - 17:38:27.243Z: "the pod's grace runs out: its running jobs go back, to run again elsewhere jobs=69" - 17:38:43.391Z: "the pod ends with ends the server hasn't taken: they are on disk, and a worker of the node posts them jobs=5" **What the job history holds** (`cause = 'given_back'`, rows from 17:36:00Z) | class | jobs given back | distinct run and check | first | last | |---|---|---|---|---| | people | 5,603 | 93 | 17:36:53Z | 17:40:15Z | | ci | 1 | 1 | 17:38:36Z | | | probe | 1 | 1 | 17:38:30Z | | The checks given back most often: | run | check | times | |---|---|---| | r49259592c1 | test-x86_64/tilo-agent-session | 1,365 | | r80703730c6 | test-x86_64/tilo-agent-session | 585 | | re018aa9716 | test/tilo-fs | 567 | | re709717639 | test-x86_64/launcher | 524 | | re018aa9716 | test/word-processor | 393 | | re018aa9716 | test/sheets | 340 | | re018aa9716 | test/tilo-vm | 281 | | rd15bfe66b4 | test/collaboration | 124 | - The server's log holds 2,480 "an end taken in" lines in the minute 17:37Z and about 3,000 lines in 17:38Z, against 231 in 17:35Z. - CI and probe asks did not loop: one row each. They were waiting for room or held. People's asks are placed without room, so they kept landing on the stopping node. - The jobs view at 17:38:48Z: the node offered 0 cores, 0 memory and 0 disk, no job ran, and every ask waited as `held` (people 622, ci 57, probe 550). **The missing rule, as I read it:** a node that has said it is stopping takes no new job, of any class. Today a job that is not started "goes back", and the server places it on the same node again, because it is the only node and people's jobs need no room. Each turn is a job id, a row in `job_history` and an end for the server to take in. **Not read:** what each of the 93 checks' askers saw meanwhile, and whether any check was told an error instead of being run again once a worker was back. I look at that next. **The delete** - The kubelet's event: 17:36:47Z "Killing: Stopping container worker" on `t-worker-ci-x86-1-262fs`. There is no eviction event, and the node shows no disk pressure. - The DaemonSet's update strategy is OnDelete and its generation did not change, so the pod was deleted by a command. It was not my session. - The new pod `t-worker-ci-x86-1-djmlg` started 17:39:55Z, runs 31934c00 and "re-attached to the jobs on disk jobs=2" at 17:40:15Z. The node was without a worker for three minutes. - 69 running jobs went back at the end of the grace, so their work is lost. **17:43Z, what became of the checks that looped: they ran again once a worker was back.** Job rows of the four most given-back checks since 17:36Z: | run | check | given back | then | |---|---|---|---| | r49259592c1 | test-x86_64/tilo-agent-session | 1,365, last 17:38:43Z | 10 passed, last 17:40:47Z | | r80703730c6 | test-x86_64/tilo-agent-session | 585, last 17:38:43Z | 2 passed, 3 failed, last 17:41:09Z | | re018aa9716 | test/tilo-fs | 567, last 17:38:43Z | 10 passed, last 17:41:41Z | | re709717639 | test-x86_64/launcher | 524, last 17:38:36Z | 8 passed, last 17:41:04Z | - So no asker was told an error for the loop itself. The cost is the turns: thousands of job ids, history rows and ends in two minutes, on a server that was also taking in the stopped worker's real ends. - Jobs ended from 17:40:20Z to 17:43:20Z on the new worker: people 99 passed, 18 failed, 3 cancelled; ci 73 passed, 10 failed. No cause of t's own.
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#108
No description provided.