forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9ea3c64
committed
Improve replication lag interpolation after idle period
After sitting idle and fully replayed for a while and then encounteringa new burst of WAL activity, we interpolate between an ancient sample and thenot-yet-reached one for the new traffic. That produced a corner case reportof lag after receiving first new reply from standby, which might sometimesbe a large spike.Correct this by resetting last_read time and handle that new case.Author: Thomas Munro1 parenta79122b commit9ea3c64
1 file changed
+25
-4
lines changedLines changed: 25 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3443 | 3443 |
| |
3444 | 3444 |
| |
3445 | 3445 |
| |
| 3446 | + | |
| 3447 | + | |
| 3448 | + | |
| 3449 | + | |
| 3450 | + | |
| 3451 | + | |
| 3452 | + | |
| 3453 | + | |
| 3454 | + | |
| 3455 | + | |
3446 | 3456 |
| |
3447 | 3457 |
| |
3448 | 3458 |
| |
| |||
3459 | 3469 |
| |
3460 | 3470 |
| |
3461 | 3471 |
| |
3462 |
| - | |
3463 |
| - | |
| 3472 | + | |
3464 | 3473 |
| |
| 3474 | + | |
| 3475 | + | |
| 3476 | + | |
| 3477 | + | |
| 3478 | + | |
| 3479 | + | |
3465 | 3480 |
| |
3466 | 3481 |
| |
3467 | 3482 |
| |
| |||
3494 | 3509 |
| |
3495 | 3510 |
| |
3496 | 3511 |
| |
3497 |
| - | |
3498 |
| - | |
| 3512 | + | |
| 3513 | + | |
| 3514 | + | |
| 3515 | + | |
| 3516 | + | |
| 3517 | + | |
| 3518 | + | |
| 3519 | + | |
3499 | 3520 |
| |
3500 | 3521 |
| |
3501 | 3522 |
| |
|
0 commit comments
Comments
(0)