简体   繁体   中英

Approach to starting up about 45 services with Docker Swarm Mode

I am starting 45 services in Docker Swarm mode across two Ubuntu 16.04 LTS VMs. Each service is using a different Docker image. When I perform a 'stack deploy' based on a compose file, all 45 services attempt to start at once. This, in turn, has a negative effect on the servers and it appears that the majority of effort is around the download and extraction of the Docker images.

Increasing the speed of the disks (SSDs etc) would probably be of benefit here but, assuming hardware changes are not an option, what would be the best approach to starting these services without nuking the VMs?

  • Docker 17.06 CE
  • Overlay2 Storage Driver
  • Ubuntu 16.04 LTS

Many thanks in advance for any advice.

我实际上没有尝试过,但是您可以在compose文件中定义0个副本,并编写一个脚本将服务的副本数量缓慢地缩放到1个。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM