Azure 自动缩放和 Docker Swarm
Azure auto-scale and Docker Swarm
我正在尝试弄清楚 Azure 自动缩放设置/VM 缩放集如何与 Docker Swarm 协同工作。
假设我有三台虚拟机,它们都安装了 Docker 并且配置为同一个 Swarm 的一部分(1 位经理和 2 位工作人员)。在这个 Swarm 中有一个服务 运行 来自 docker-compose.yml.
当 VM CPU 达到一定百分比时,我希望启动一个新的 VM,将其作为 worker 添加到 swarm 中并运行该服务。
这可能吗?我已经尝试过 Azure Docker beta(实际上从昨天开始就已经结束 beta),这将管理人员和工作人员放入规模集中,但没有配置自动缩放。
非常感谢您对此提供的任何帮助。
这是我在 Docker Community Slack 频道 Docker 从 Deep Debroy 那里得到的答案:
"the scale sets in Docker4Azure does not support Azure auto scaling at the moment. We will look at this for our next release. Today you can manually scale the vm scale set for workers up when you need more capacity as well as scale it down manually. The worker nodes will be added/removed respectively. However the scale sets can’t be configured to do it automatically today based on CPU consumption metrics."
您可以使用 pre-packaged Jelastic 模板根据 CPU 和 RAM 消耗自动缩放 Docker Swarm。安装是自动的,默认情况下包括所需的触发器(可以调整)。
详情在文章“Docker Swarm Auto-Clustering and Scaling with PaaS Power Armor.”中,如果需要,Jelastic PaaS 可以 运行 在 Azure 基础架构上,如果不是 "must-have",您可以选择任何他们的本地供应商更适合。
我正在尝试弄清楚 Azure 自动缩放设置/VM 缩放集如何与 Docker Swarm 协同工作。
假设我有三台虚拟机,它们都安装了 Docker 并且配置为同一个 Swarm 的一部分(1 位经理和 2 位工作人员)。在这个 Swarm 中有一个服务 运行 来自 docker-compose.yml.
当 VM CPU 达到一定百分比时,我希望启动一个新的 VM,将其作为 worker 添加到 swarm 中并运行该服务。
这可能吗?我已经尝试过 Azure Docker beta(实际上从昨天开始就已经结束 beta),这将管理人员和工作人员放入规模集中,但没有配置自动缩放。
非常感谢您对此提供的任何帮助。
这是我在 Docker Community Slack 频道 Docker 从 Deep Debroy 那里得到的答案:
"the scale sets in Docker4Azure does not support Azure auto scaling at the moment. We will look at this for our next release. Today you can manually scale the vm scale set for workers up when you need more capacity as well as scale it down manually. The worker nodes will be added/removed respectively. However the scale sets can’t be configured to do it automatically today based on CPU consumption metrics."
您可以使用 pre-packaged Jelastic 模板根据 CPU 和 RAM 消耗自动缩放 Docker Swarm。安装是自动的,默认情况下包括所需的触发器(可以调整)。
详情在文章“Docker Swarm Auto-Clustering and Scaling with PaaS Power Armor.”中,如果需要,Jelastic PaaS 可以 运行 在 Azure 基础架构上,如果不是 "must-have",您可以选择任何他们的本地供应商更适合。