是否有一个计算Docker容器开销的公式? [英] Is there a formula for calculating the overhead of a Docker container?

查看:158
本文介绍了是否有一个计算Docker容器开销的公式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我想同时运行几个Docker容器。

Supposed I want to run several Docker containers at the same time.

有没有可以使用的公式来查询有多少容器可以运行同时由一个Docker主机?即,CPU,内存和合。我必须考虑容器本身吗?

Is there any formula I can use to find out in advance on how many containers can be run at the same time by a single Docker host? I.e., how much CPU, memory & co. do I have to take into account for the containers themselves?

推荐答案

这不是一个公式,但是您可以收集有关通过检查 / sys / fs / cgroup 中的Linux控制组在容器中的资源使用情况。

It's not a formula per se, but you can gather information about resource usage in the container by examining Linux control groups in /sys/fs/cgroup.

请参阅这个优秀的帖子由Docker,Inc的JérômePetazzoni主题。

See this excellent post by Jérôme Petazzoni of Docker, Inc on the subject.

另见Google的 cAdvisor工具查看容器资源使用情况。

See also Google's cAdvisor tool to view container resource usage.

这篇IBM研究论文记录了在每次测量中Docker的性能都高于KVM。

This IBM research paper documents that Docker performance is higher than KVM in every measurement.

这篇关于是否有一个计算Docker容器开销的公式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆