Skip to content

Commit

Permalink
PRR Remarks - batching mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
mimowo committed Oct 2, 2023
1 parent fc9b1c8 commit f4a0ad5
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions keps/sig-apps/2879-ready-pods-job-status/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,17 @@ No.

- API: PUT Job/status

Estimated throughput: at most one API call for each Job Pod reaching Ready
condition.
Estimated throughput: at most one additional API call for each Job Pod reaching
Ready condition per second. The reason is that the update of the `.status.ready`
field triggers another reconciliation of the Job controller.

In order to control the number of reconciliations, the Job controller
batches and deduplicates reconciliation requests within each second.

The mechanism is based on reconciliation delaying queue, where the requests
are added using the `AddAfter` function. If there is another reconciliation
request planned within a second, the one triggered by `.status.ready` update
is skipped.

Originating component: job-controller

Expand Down

0 comments on commit f4a0ad5

Please sign in to comment.