Commit 10e3b11
155150: pgwire: limit the number of connection error logs r=shghasemi a=shghasemi
Rejecting new connections while server is draining printed too many logs, making it difficult to spot other errors during drain. Added a EveryN log to limit the log frequency to every 10 seconds.
Fixes #102339
Release note: None
155154: rpc: disable loopbackTransport via NoLoopbackDialer knob r=tbg a=tbg
Prior to this commit, the NoLoopbackDialer knob would replace the loopback dialer implementation with the regular TCP dialer. However, the loopbackTransport (which is what causes a call to the loopbackDialerFn in the first place) has its own call path and in particular, it sets different gRPC options that might be cheaper than what is commonly used (for example, no snappy compression). It is desirable to remove this discrepancy.
This commit disables use of the loopbackTransport entirely if the knob is set, the desired effect being that when talking to a TestCluster under this knob, it doesn't matter for performance whether the SQL gateway matches the location of the lease; local communication should be exactly as expensive as "remote" communication (all within the same process, but communicating through identical TCP network connections).
Unblocks #153865.
Epic: CRDB-55052
Co-authored-by: Shadi Ghasemitaheri <[email protected]>
Co-authored-by: Tobias Grieger <[email protected]>
3 files changed
+25
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
608 | 607 | | |
609 | 608 | | |
610 | 609 | | |
| 610 | + | |
611 | 611 | | |
612 | | - | |
613 | | - | |
| 612 | + | |
614 | 613 | | |
615 | 614 | | |
616 | | - | |
| 615 | + | |
617 | 616 | | |
618 | 617 | | |
619 | 618 | | |
| |||
1403 | 1402 | | |
1404 | 1403 | | |
1405 | 1404 | | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
1406 | 1409 | | |
1407 | 1410 | | |
1408 | 1411 | | |
1409 | 1412 | | |
1410 | 1413 | | |
1411 | 1414 | | |
1412 | | - | |
| 1415 | + | |
1413 | 1416 | | |
1414 | 1417 | | |
1415 | 1418 | | |
| |||
2042 | 2045 | | |
2043 | 2046 | | |
2044 | 2047 | | |
2045 | | - | |
| 2048 | + | |
2046 | 2049 | | |
2047 | 2050 | | |
2048 | 2051 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| 312 | + | |
| 313 | + | |
312 | 314 | | |
313 | 315 | | |
314 | 316 | | |
| |||
490 | 492 | | |
491 | 493 | | |
492 | 494 | | |
| 495 | + | |
493 | 496 | | |
494 | 497 | | |
495 | 498 | | |
| |||
931 | 934 | | |
932 | 935 | | |
933 | 936 | | |
934 | | - | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
935 | 940 | | |
936 | 941 | | |
937 | 942 | | |
| |||
0 commit comments