-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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: Change proxyprotocol to lazy mode #36301
server: Change proxyprotocol to lazy mode #36301
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Please follow PR Title Format:
Or if the count of mainly changed packages are more than 3, use
After you have format title, you can leave a comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, is this still in WIP? Or are we waiting for verifications?
just waiting for aws verification |
@xhebox AWS NLB test passed and one more thing, if we change proxy protocol to lazy mode, the header read timeout is useless. So shall we add some comments for related command line parameter? |
Sure! |
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
Signed-off-by: xhe <xw897002528@gmail.com>
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/90a785877a669cdb458a8c84934e8996cceb00bc |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: e1f88d1
|
/run-tidb_ghpr_integration_common_test |
/run-integration-common-test |
@blacktear23: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
…verage * upstream/master: (98 commits) planner: provide a unified interface to set and get user variables and types (pingcap#37046) *: fix check-2 to bazel (pingcap#37055) distsql: revert 37019 (pingcap#37048) planner: introduce new functions for the general statement in session interface (pingcap#37024) session: make BenchmarkCompileExecutePreparedStmt update to date (pingcap#36960) server: Change proxyprotocol to lazy mode (pingcap#36301) test: fix `TestDDLSchedulingMultiTimes` and `TestConcurrentDDLSwitch` timeout (pingcap#37043) makefile: add bazel realtikvtest (pingcap#37042) distsql: make analyze request SI (pingcap#37019) *: gofmt code for adapting go 1.19 (pingcap#36832) planner: fix data race in the TestInlineProjection4HashJoinIssue15316 (pingcap#37014) planner: introduce Session.CacheGeneralStmt for general plan cache (pingcap#37028) server: revise scheme code (pingcap#37021) planner: fix unstable test TestPushDownSelectionForMPP (pingcap#37038) executor: more precise memory tracking (pingcap#35785) executor: add privilege check for prepare stmt (pingcap#36933) *: optimize temptable.SessionSnapshotInterceptor (pingcap#36999) statistics: batch insert topn and buckets to storage to speed up loading stats (pingcap#36948) planner: remove keyword `prepared` in plan cache backend (pingcap#37023) util: fix unstable test TestCheckCN (pingcap#37016) ...
What problem does this PR solve?
Issue Number: ref #36312
Problem Summary:
As using AWS NLB and enable PROXY protocol v2 (PPv2) NLB will not send PPv2 header data until client send data to server. This will trigger
go-proxyprotocol
raise timeout error and client cannot handshake with server.What is changed and how it works?
This PR will use new version of
go-proxyprotocol
and set the mode tolazy
. Then the PPv2 header will be handled when the firstRead
function call. That will allow TiDB server can send handshake packet before NLB send PPv2 header.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.