【docker swarm】

这里写目录标题

  • [Feature highlights](#Feature highlights)

Current versions of Docker include Swarm mode for natively managing a cluster of Docker Engines called a swarm(蜂群). Use the Docker CLI command line interface to create a swarm, deploy application services to a swarm, and manage swarm behavior.

Docker Swarm mode is built into the Docker Engine.

Feature highlights

  1. Cluster management integrated with Docker Engine

    Use the Docker Engine CLI to create a swarm of Docker Engines where you can deploy application services. You don't need additional orchestration /ˌɔːrkɪˈstreɪʃn/

    software to create or manage a swarm.

  2. Decentralized design

    Instead of handling differentiation between node roles at deployment time, the Docker Engine handles any specialization at runtime. You can deploy both kinds of nodes, managers and workers, using the Docker Engine. This means you can build an entire swarm from a single disk image.

  3. Declarative service model

    Docker Engine uses a declarative approach to let you define the desired state of the various services in your application stack. For example, you might describe an application comprised of a web front end service with message queueing services and a database backend.

  4. Scaling

    For each service, you can declare the number of tasks you want to run. When you scale up or down, the swarm manager automatically adapts by adding or removing tasks to maintain the desired state.

  5. Desired state reconciliation

    The swarm manager node constantly monitors the cluster state and reconciles any differences between the actual state and your expressed desired state. For example, if you set up a service to run 10 replicas of a container, and a worker machine hosting two of those replicas crashes, the manager creates two new replicas to replace the replicas that crashed. The swarm manager assigns the new replicas to workers that are running and available.

  6. Multi-host networking

    You can specify an overlay network for your services. The swarm manager automatically assigns addresses to the containers on the overlay network when it initializes or updates the application.

  7. Service discovery

    Swarm manager nodes assign each service in the swarm a unique DNS name and load balance running containers. You can query every container running in the swarm through a DNS server embedded in the swarm.

  8. Load balancing

    You can expose the ports for services to an external load balancer. Internally, the swarm lets you specify how to distribute service containers between nodes.

  9. Secure by default

    Each node in the swarm enforces TLS mutual authentication and encryption to secure communications between itself and all other nodes. You have the option to use self-signed root certificates or certificates from a custom root CA.

  10. Rolling updates

    At rollout time you can apply service updates to nodes incrementally. The swarm manager lets you control the delay between service deployment to different sets of nodes. If anything goes wrong, you can roll back to a previous version of the service.

相关推荐
小楼v1 天前
常见的Java线程八股
java·后端·线程
沛沛老爹1 天前
从Web到AI:金融/医疗/教育行业专属Skills生态系统设计实战
java·前端·人工智能·git·金融·架构
洛_尘1 天前
Java EE进阶4:Spring Web MVC入门
java·java-ee
寂寞旅行1 天前
IDEA 中使用 claude code 插件
java·ide·intellij-idea
Remember_9931 天前
Java 入门指南:从零开始掌握核心语法与编程思想
java·c语言·开发语言·ide·python·leetcode·eclipse
野犬寒鸦1 天前
从零起步学习RabbitMQ || 第四章:RabbitMQ的延迟消息在项目中的运用及实现剖析
java·服务器·数据库·后端·mysql·rabbitmq
jiayong231 天前
Tomcat连接器与协议处理面试题
java·tomcat
Zsr10231 天前
POD控制器:集群的“自动化运维管家”
docker·容器·kubernetes
a程序小傲1 天前
哈罗Java面试被问:布隆过滤器的误判率和哈希函数选择
java·服务器·算法·面试·职场和发展·哈希算法
lbb 小魔仙1 天前
【Java】微服务架构 Java 实战:Spring Cloud Gateway + Nacos 全链路搭建指南
java·微服务·架构