小编sga*_*mon的帖子

在 Ubuntu 中诊断数据包丢失/高延迟

我们有一个运行 Nginx (1.5.2) 的 Linux 机器 (Ubuntu 12.04),它充当一些 Tornado 和 Apache 主机的反向代理/负载平衡器。上游服务器在物理上和逻辑上是接近的(同一个 DC,有时同一个机架)并且它们之间的延迟是亚毫秒级的:

 PING appserver (10.xx.xx.112) 56(84) bytes of data.
 64 bytes from appserver (10.xx.xx.112): icmp_req=1 ttl=64 time=0.180 ms
 64 bytes from appserver (10.xx.xx.112): icmp_req=2 ttl=64 time=0.165 ms
 64 bytes from appserver (10.xx.xx.112): icmp_req=3 ttl=64 time=0.153 ms
Run Code Online (Sandbox Code Playgroud)

我们每秒收到大约500 个请求的持续负载,并且目前看到来自 Internet 的常规数据包丢失/延迟峰值,甚至来自基本 ping:

sam@AM-KEEN ~> ping -c 1000 loadbalancer
PING 50.xx.xx.16 (50.xx.xx.16): 56 data bytes
64 bytes from loadbalancer: icmp_seq=0 ttl=56 time=11.624 ms
64 bytes from loadbalancer: …
Run Code Online (Sandbox Code Playgroud)

networking tcpip nginx linux-networking ubuntu-12.04

9
推荐指数
1
解决办法
4万
查看次数