forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6f60fdd
committed
Improve replication connection timeouts.
Rename replication_timeout to wal_sender_timeout, and add a new settingcalled wal_receiver_timeout that does the same at the walreceiver side.There was previously no timeout in walreceiver, so if the network went down,for example, the walreceiver could take a long time to notice that theconnection was lost. Now with the two settings, both sides of a replicationconnection will detect a broken connection similarly.It is no longer necessary to manually set wal_receiver_status_interval toa value smaller than the timeout. Both wal sender and receiver nowautomatically send a "ping" message if more than 1/2 of the configuredtimeout has elapsed, and it hasn't received any messages from the other end.Amit Kapila, heavily edited by me.1 parent8521d13 commit6f60fdd
File tree
10 files changed
+190
-67
lines changed- doc/src/sgml
- src
- backend
- replication
- utils/misc
- include/replication
10 files changed
+190
-67
lines changedLines changed: 22 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2236 | 2236 |
| |
2237 | 2237 |
| |
2238 | 2238 |
| |
2239 |
| - | |
2240 |
| - | |
| 2239 | + | |
| 2240 | + | |
2241 | 2241 |
| |
2242 |
| - | |
| 2242 | + | |
2243 | 2243 |
| |
2244 | 2244 |
| |
2245 | 2245 |
| |
| |||
2251 | 2251 |
| |
2252 | 2252 |
| |
2253 | 2253 |
| |
2254 |
| - | |
2255 |
| - | |
2256 |
| - | |
2257 |
| - | |
2258 |
| - | |
2259 |
| - | |
2260 | 2254 |
| |
2261 | 2255 |
| |
2262 | 2256 |
| |
| |||
2474 | 2468 |
| |
2475 | 2469 |
| |
2476 | 2470 |
| |
2477 |
| - | |
2478 |
| - | |
2479 |
| - | |
2480 |
| - | |
2481 |
| - | |
2482 | 2471 |
| |
2483 | 2472 |
| |
2484 | 2473 |
| |
| |||
2507 | 2496 |
| |
2508 | 2497 |
| |
2509 | 2498 |
| |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
| 2504 | + | |
| 2505 | + | |
| 2506 | + | |
| 2507 | + | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
| 2517 | + | |
2510 | 2518 |
| |
2511 | 2519 |
| |
2512 | 2520 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3322 | 3322 |
| |
3323 | 3323 |
| |
3324 | 3324 |
| |
3325 |
| - | |
| 3325 | + | |
3326 | 3326 |
| |
3327 | 3327 |
| |
3328 | 3328 |
| |
|
Lines changed: 79 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
| 58 | + | |
58 | 59 |
| |
59 | 60 |
| |
60 | 61 |
| |
| |||
121 | 122 |
| |
122 | 123 |
| |
123 | 124 |
| |
124 |
| - | |
| 125 | + | |
125 | 126 |
| |
126 | 127 |
| |
127 | 128 |
| |
| |||
170 | 171 |
| |
171 | 172 |
| |
172 | 173 |
| |
173 |
| - | |
174 | 174 |
| |
175 | 175 |
| |
| 176 | + | |
| 177 | + | |
176 | 178 |
| |
177 | 179 |
| |
178 | 180 |
| |
| |||
282 | 284 |
| |
283 | 285 |
| |
284 | 286 |
| |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
285 | 291 |
| |
286 | 292 |
| |
287 | 293 |
| |
| |||
316 | 322 |
| |
317 | 323 |
| |
318 | 324 |
| |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
319 | 329 |
| |
320 | 330 |
| |
321 | 331 |
| |
322 | 332 |
| |
323 | 333 |
| |
| 334 | + | |
| 335 | + | |
| 336 | + | |
324 | 337 |
| |
| 338 | + | |
325 | 339 |
| |
326 | 340 |
| |
327 |
| - | |
| 341 | + | |
328 | 342 |
| |
329 | 343 |
| |
330 | 344 |
| |
| |||
335 | 349 |
| |
336 | 350 |
| |
337 | 351 |
| |
338 |
| - | |
339 |
| - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
340 | 364 |
| |
341 |
| - | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
342 | 394 |
| |
343 | 395 |
| |
344 | 396 |
| |
| |||
460 | 512 |
| |
461 | 513 |
| |
462 | 514 |
| |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
463 | 519 |
| |
464 | 520 |
| |
465 | 521 |
| |
| |||
609 | 665 |
| |
610 | 666 |
| |
611 | 667 |
| |
612 |
| - | |
613 |
| - | |
614 |
| - | |
615 |
| - | |
| 668 | + | |
616 | 669 |
| |
617 | 670 |
| |
618 | 671 |
| |
619 | 672 |
| |
620 |
| - | |
621 |
| - | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
622 | 684 |
| |
623 | 685 |
| |
624 |
| - | |
| 686 | + | |
625 | 687 |
| |
626 | 688 |
| |
627 | 689 |
| |
| |||
630 | 692 |
| |
631 | 693 |
| |
632 | 694 |
| |
633 |
| - | |
| 695 | + | |
634 | 696 |
| |
635 | 697 |
| |
636 | 698 |
| |
| |||
645 | 707 |
| |
646 | 708 |
| |
647 | 709 |
| |
648 |
| - | |
| 710 | + | |
| 711 | + | |
649 | 712 |
| |
650 | 713 |
| |
651 | 714 |
| |
| |||
656 | 719 |
| |
657 | 720 |
| |
658 | 721 |
| |
| 722 | + | |
659 | 723 |
| |
660 | 724 |
| |
661 | 725 |
| |
|
0 commit comments
Comments
(0)