如何在常规云服务器中自动缩放 docker 个容器?

How to auto scale docker containers in a regular cloud server?

使用 docker 容器构建可扩展架构是解决可扩展性问题的一个非常有吸引力的解决方案。我们可以在 Amazon Elastic Beanstalk 环境或供应商特定的 pass 环境中自动扩展 docker 个容器。

在商品云服务器(例如 Digital Ocean 或 Rackspace)上构建您自己的可扩展 docker 架构的最佳方式是什么,这些服务器将根据负载自动配置容器。

用于管理扩展基于 docker 的基础架构的最著名解决方案是:

This article 提及:

In terms of scale, only Mesos has been proven to support large-scale systems of hundreds or thousands of nodes. However, when looking at small clusters of, say, less than a dozen nodes, Mesos may be an overly complex solution.

mentioned here:

Almost everything we can do with Docker we can do with Swarm as well only on a much larger scale. There’s nothing new to do, no configurations to be duplicated and nothing new to learn.

所以首先从 Docker Swarm 开始,如果出现特殊需要,寻找其他解决方案。

参见: