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

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

  •  
  •   hackingwu ·
    hackingwu · Oct 17, 2023 · 2615 views
    This topic created in 970 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
        1
    cnbatch  
       Oct 17, 2023
    我的猜测:可能是丢包导致的?
    Puteulanus
        2
    Puteulanus  
       Oct 17, 2023   ❤️ 1
    hackingwu
        3
    hackingwu  
    OP
       Oct 17, 2023
    @Puteulanus
    云主机上
    time_namelookup: 0.792451
    time_connect: 1.001118

    本地:
    time_namelookup: 0.005784
    time_connect: 0.006012

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