大网数据广告活动
服务器运维问答

How do I know if my linux server can't keep up with network traffic and what to do about it?

· 52CE 我爱测

Suppose I have a web-server serving html-pages under high load. Let's assume that for some reason the bottleneck is not cpu, not ram and not disk but rather the network itself. How can I tell that a Linux server simply either sen…

问题原文

原帖链接 · Gherman · CC BY-SA 4.0

Suppose I have a web-server serving html-pages under high load. Let's assume that for some reason the bottleneck is not cpu, not ram and not disk but rather the network itself. How can I tell that a Linux server simply either sends or receives too much traffic and won't keep up? How do I know if network bandwidth is, let's say, over 60% of its capacity? If it's over capacity how do I scale it?

已采纳解答

原帖链接 · John Mahowald · CC BY-SA 4.0

In general, analyze the entire system for where the limits are. For example, the USE methodology checks every resource for utilization, saturation, and errors.

All environments can collect basic easy to measure performance metrics like CPU utilization and interface bandwith utilization. On Linux, tooling like netdata or perf can show quite a lot of metrics in fine detail.

A deep understanding of your environment helps find where the bottleneck is. Bandwidth maxing out at 95 Mbit/s may be due to an old 100 Mbit switch in the path, or the Internet service is 100 Mbit/s. Or the storage system is quite slow. Or the NICs are reporting overruns because packet buffers aren't being emptied fast enough.

Where you can, try scaling out web servers to more hosts on different hardware. Total resources of more than one VM may help. Can try things on one host at a time with a control. And as a bonus, load balancing could be considered a high availability feature.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-07-23)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。