Commit dcd00a7
committed
rpc: disable loopbackTransport via NoLoopbackDialer knob
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.1 parent 0fed78c commit dcd00a7
2 files changed
+19
-11
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 | | |
| |||
0 commit comments