Repository navigation
Commit f09a9f0
committed
List the cluster while the lease loop waits to renew
The lease loop listed the cluster after each renewal and only then
started the wait for the next one, so a slow listing, up to its
timeout, pushed every renewal back by as much. Under load, a slow
renewal (its requests sent again) followed by a listing that timed
out left about 750 ms of the lease's margin at the divided test
timings.
* The listing now runs alongside the wait. The next renewal starts
once both are done, so the two still never overlap.
* After a failed renewal the loop skips the listing, so that a slow
one cannot hold up the retry.1 parent f6ad57d commit f09a9f0
1 file changed
Lines changed: 15 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | | - | |
| 417 | + | |
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
| 421 | + | |
| 422 | + | |
422 | 423 | | |
423 | | - | |
| 424 | + | |
424 | 425 | | |
425 | 426 | | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
433 | 438 | | |
434 | 439 | | |
435 | 440 | | |
| |||
0 commit comments