-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
K8s: CloudNative: Support SLB heath check. #1598
Comments
SRS3 will become the main version used within a certain period of time, and support for cloud native will be prioritized in SRS3, unless the changes are significantly large and affect stability.
|
Currently, there is no problem with the TCP keep-alive detection of SLB, but it causes a large number of invalid logs for SRS.
After filtering out these invalid logs, more than half of them are reduced.
|
Logs must be collected centrally.
Then, based on the timestamp, if the logs can be collected in SLS, it will be easy to search. You just need to input
|
The TCP keep-alive detection connection of SLB fails when retrieving information. It appears as follows in lsof:
There was an error in obtaining the address of the file descriptor in SRS.
This will result in a large number of error messages. Capture packets using tcpdump:
The SRS server IP is From the above figure, it can be seen that 1-2-3-4 is one heartbeat, and the second packet is sent by the SRS server, after which the SLB immediately closes the connection. Then the second heartbeat is initiated with 5-6-7-8, with an interval of only 0.3 seconds (an SLB has around 10 LVS for detection), but the actual detection interval configured on the SLB is 2 seconds. For the health check mechanism, refer to: TCP Listening Health Check Mechanism
|
Supports TCP-based health checks, which are enabled by default. This means that connections that fail to obtain an IP will be ignored.
|
Fixed |
Description'
Please ensure that the markdown structure is maintained.
3.0.112
Replay
How to replay bug?
Steps to reproduce the bug:
Expected behavior:
Support SLB health check, TCP or HTTP method, refer to Aliyun SLB Health Check.
TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered: