• 请不要在回答技术问题时复制粘贴 AI 生成的内容
hackingwu
V2EX  ›  程序员

自己云主机请求 azure 上服务,比本地慢了差不多 1000+ms,甚至更多

  •  
  •   hackingwu ·
    hackingwu · Oct 17, 2023 · 2967 views
    This topic created in 1122 days ago, the information mentioned may be changed or developed.

    华为云主机,就 1M 带宽,但是用户极少,一天可能就几个请求这种。从监控上带宽是跑不满。 用 ping 指令,云主机延迟个 223ms ,本地 200ms 这样。 为什么请求耗时差那么多。 有什么测试办法和优化路径呢?

    6 replies  •  2023-10-17 19:31:43 +08:00
    cnbatch
    cnbatch
    Oct 17, 2023
    1
    我的猜测:可能是丢包导致的?
    Puteulanus
    Puteulanus
    Oct 17, 2023❤️1
    2
    hackingwu
    hackingwu
    OP
    Oct 17, 2023
    3
    @Puteulanus
    云主机上
    time_namelookup: 0.792451
    time_connect: 1.001118

    本地:
    time_namelookup: 0.005784
    time_connect: 0.006012

    这个要怎么优化,华为云华北-北京四区
    改 DNS 吗?改成哪个好呢?
    Puteulanus
    Puteulanus
    Oct 17, 2023
    4
    @hackingwu 不确定了,你这个 time_connect 用了一秒也挺离谱的
    u3f3o3333
    u3f3o3333
    Oct 17, 2023
    5
    要不在华为云提个工单问问试试?
    webszy
    webszy
    Oct 17, 2023
    6
    追踪一下路由吧,看看经过哪些节点,哪个节点太耗时了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   958 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 19:45 · PVG 03:45 · LAX 11:45 · JFK 14:45
    ♥ Do have faith in what you're doing.