Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
server: serve all traffic on a single port #4536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
server: serve all traffic on a single port #4536
Changes from 1 commit
83caba2a2483e1506681eFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
non-TLS case: net.Listen -> cmux.New -> pgwire.Match -> pgwire.Server.ServeConn | - -> cmux.HTTP2 -> http2.(*Server).ServeConn - -> cmux.Any -> http.(*Server).Serve TLS case: net.Listen -> cmux.New -> pgwire.Match -> pgwire.Server.ServeConn | - -> cmux.Any -> tls.NewListener -> http.(*Server).Serve Impact on benchmarks is negligible: ``` name old time/op new time/op delta Bank_Cockroach-4 376µs ± 7% 392µs ±13% ~ (p=0.280 n=10+10) Select1_Cockroach-4 57.8µs ±10% 52.5µs ± 4% -9.03% (p=0.002 n=9+9) Select2_Cockroach-4 968µs ±11% 873µs ± 3% -9.78% (p=0.002 n=10+10) Insert1_Cockroach-4 486µs ± 7% 500µs ± 9% ~ (p=0.278 n=9+10) Insert10_Cockroach-4 849µs ± 6% 874µs ± 9% ~ (p=0.247 n=10+10) Insert100_Cockroach-4 4.24ms ±12% 3.98ms ± 5% -6.14% (p=0.004 n=10+9) Update1_Cockroach-4 861µs ± 8% 837µs ±10% ~ (p=0.211 n=10+9) Update10_Cockroach-4 1.75ms ±14% 1.60ms ± 8% -8.55% (p=0.023 n=10+10) Update100_Cockroach-4 8.47ms ±12% 8.89ms ±19% ~ (p=0.796 n=10+10) Delete1_Cockroach-4 956µs ± 8% 943µs ± 7% ~ (p=0.541 n=8+9) Delete10_Cockroach-4 2.54ms ± 8% 2.42ms ± 4% -4.88% (p=0.019 n=10+10) Delete100_Cockroach-4 19.4ms ± 4% 18.1ms ± 3% -6.82% (p=0.000 n=10+10) Scan1_Cockroach-4 263µs ±11% 245µs ± 5% -6.86% (p=0.002 n=10+10) Scan10_Cockroach-4 311µs ± 8% 290µs ± 5% -6.91% (p=0.004 n=10+10) Scan100_Cockroach-4 669µs ± 6% 627µs ± 5% -6.34% (p=0.000 n=10+10) name old alloc/op new alloc/op delta Bank_Cockroach-4 45.9kB ± 0% 45.9kB ± 0% ~ (p=0.867 n=8+7) Select1_Cockroach-4 1.92kB ± 0% 1.92kB ± 0% ~ (p=0.146 n=10+8) Select2_Cockroach-4 72.6kB ± 0% 72.5kB ± 0% ~ (p=0.225 n=10+10) Insert1_Cockroach-4 23.4kB ± 0% 23.4kB ± 0% ~ (p=0.062 n=9+10) Insert10_Cockroach-4 74.7kB ± 0% 74.7kB ± 0% ~ (p=0.412 n=9+10) Insert100_Cockroach-4 586kB ± 0% 586kB ± 0% ~ (p=0.450 n=9+9) Update1_Cockroach-4 34.4kB ± 0% 34.3kB ± 0% ~ (p=0.971 n=10+10) Update10_Cockroach-4 123kB ± 0% 123kB ± 0% ~ (p=0.371 n=8+10) Update100_Cockroach-4 961kB ± 0% 961kB ± 0% ~ (p=0.400 n=10+9) Delete1_Cockroach-4 34.4kB ± 0% 34.4kB ± 0% ~ (p=0.393 n=10+10) Delete10_Cockroach-4 134kB ± 0% 134kB ± 0% ~ (p=0.928 n=10+10) Delete100_Cockroach-4 1.09MB ± 0% 1.09MB ± 0% ~ (p=0.606 n=8+9) Scan1_Cockroach-4 9.84kB ± 0% 9.85kB ± 0% ~ (p=0.458 n=10+9) Scan10_Cockroach-4 15.5kB ± 0% 15.5kB ± 0% -0.13% (p=0.033 n=10+10) Scan100_Cockroach-4 60.5kB ± 0% 60.5kB ± 0% ~ (p=0.446 n=10+10) name old allocs/op new allocs/op delta Bank_Cockroach-4 887 ± 0% 887 ± 0% ~ (p=0.853 n=8+7) Select1_Cockroach-4 39.0 ± 0% 39.0 ± 0% ~ (all samples are equal) Select2_Cockroach-4 2.10k ± 0% 2.10k ± 0% ~ (p=1.000 n=10+10) Insert1_Cockroach-4 323 ± 0% 323 ± 0% -0.12% (p=0.046 n=8+10) Insert10_Cockroach-4 807 ± 0% 807 ± 0% -0.05% (p=0.046 n=8+10) Insert100_Cockroach-4 5.36k ± 0% 5.36k ± 0% ~ (p=0.550 n=9+9) Update1_Cockroach-4 564 ± 0% 564 ± 0% ~ (p=0.912 n=6+10) Update10_Cockroach-4 1.40k ± 0% 1.40k ± 0% +0.04% (p=0.023 n=8+10) Update100_Cockroach-4 9.11k ± 0% 9.11k ± 0% ~ (p=0.572 n=10+9) Delete1_Cockroach-4 570 ± 0% 569 ± 0% ~ (p=0.513 n=10+10) Delete10_Cockroach-4 1.75k ± 0% 1.75k ± 0% ~ (p=1.000 n=10+7) Delete100_Cockroach-4 12.9k ± 0% 12.9k ± 0% ~ (p=0.798 n=8+9) Scan1_Cockroach-4 181 ± 0% 181 ± 0% ~ (all samples are equal) Scan10_Cockroach-4 284 ± 0% 283 ± 0% -0.18% (p=0.033 n=10+10) Scan100_Cockroach-4 1.19k ± 0% 1.19k ± 0% ~ (p=1.000 n=10+10) ```Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.