docker 的几个副本的资源是如何分配的?
How are the resources distributed for several replicas for docker?
我想我只是遗漏了一些小细节,但我似乎不太清楚文档。所以 documentation 指出,
If the service is replicated (which is the default), specify the number of containers that should be running at any given time.
现在如果使用 resource limit 服务,例如
replicas: 2
resources:
limits:
cpus: '0.50'
memory: 50M
这是否意味着每个副本获得每个核心的 0.5 个或副本的总和获得一个核心的 0.5 个?
这些限制适用于每个副本。对于整体集群利用率限制,您将乘以副本数。
我想我只是遗漏了一些小细节,但我似乎不太清楚文档。所以 documentation 指出,
If the service is replicated (which is the default), specify the number of containers that should be running at any given time.
现在如果使用 resource limit 服务,例如
replicas: 2
resources:
limits:
cpus: '0.50'
memory: 50M
这是否意味着每个副本获得每个核心的 0.5 个或副本的总和获得一个核心的 0.5 个?
这些限制适用于每个副本。对于整体集群利用率限制,您将乘以副本数。