Skip to content
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

tcp建连偶现3s超时 #819

Open
marchlhw opened this issue Apr 11, 2022 · 1 comment
Open

tcp建连偶现3s超时 #819

marchlhw opened this issue Apr 11, 2022 · 1 comment
Labels
issue/to-reproduce issues to be reproduced and verified

Comments

@marchlhw
Copy link

一、现象

  1. 循环请求某个接口
while true;do echo; sleep 1s; date +%s; curl -s -w '%{time_namelookup}:%{time_connect}:%{time_starttransfer}:%{time_appconnect}:%{time_pretransfer}:%{time_redirect}:%{time_total}:%{http_code}' http://xxx.yyy.com/longtail/anchorPost;done
  1. 偶现3s超时
    image
  2. 通过抓包偶现tcp三次握手异常
    image

二、dpvs配置

  1. lanip配置
    image
  2. vip配置
    image
  3. dpvs.conf采用开源的默认配置
  4. dpdk和dpvs版本
    • dpdk: dpdk-stable-17.11.2
    • dpvs:dpvs-1.7.8
@marchlhw
Copy link
Author

通过测试发现以下2个问题:

  1. 当只有一个lanip的情况下,连接数有时候达到60000+,就出现超时现象,其主要原因是端口不够用了
  2. 为了缓解1的问题,我新增了一个lanip,连接数在两个lanip是均衡的,但是超时现象加重了,怀疑是dpvs在多个lanip的情况下有调度问题

@ywc689 ywc689 added the issue/to-reproduce issues to be reproduced and verified label Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/to-reproduce issues to be reproduced and verified
Projects
None yet
Development

No branches or pull requests

2 participants