剖析服务网格开销
Dissecting Service Mesh Overheads
摘要:
服务网格在现代应用程序生态系统中发挥着核心作用,它提供了一种简单灵活的方式来连接构成分布式应用程序的不同服务。但是,由于它们占用应用程序流量的方式,它们可能会大大增加应用程序延迟和资源消耗。我们开发了一个分解的方法和一个工具,称为MeshInsight,系统地表征服务网格的开销,并帮助开发人员量化的开销在部署方案的利益。通过使用MeshInsight,我们确认服务网格可能会有很高的开销--对于我们的基准测试应用程序来说,延迟最多增加185%,虚拟CPU核心最多增加92%--但严重程度与它们的配置方式和应用程序工作负载密切相关。开销的主要贡献者也因配置而异。当服务网格作为TCP代理运行时,IPC(进程间通信)和套接字写入占主导地位,但当它作为HTTP代理运行时,协议解析占主导地位。MeshInsight还使我们能够研究服务网格优化的端到端影响。我们表明,并不是所有的令人鼓舞的优化导致显着的开销减少在现实的设置。
英文摘要:
Service meshes play a central role in the modern application ecosystem by providing an easy and flexible way to connect different services that form a distributed application. However, because of the way they interpose on application traffic, they can substantially increase application latency and resource consumption. We develop a decompositional approach and a tool, called MeshInsight, to systematically characterize the overhead of service meshes and to help developers quantify overhead in deployment scenarios of interest. Using MeshInsight, we confirm that service meshes can have high overhead -- up to 185% higher latency and up to 92% more virtual CPU cores for our benchmark applications -- but the severity is intimately tied to how they are configured and the application workload. The primary contributors to overhead vary based on the configuration too. IPC (inter-process communication) and socket writes dominate when the service mesh operates as a TCP proxy, but protocol parsing dominates when it operates as an HTTP proxy. MeshInsight also enables us to study the end-to-end impact of optimizations to service meshes. We show that not all seemingly-promising optimizations lead to a notable overhead reduction in realistic settings.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。