【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.

相关推荐
sun03222 分钟前
【架构基础】Spring中的PropertySourcesPlaceholderConfigurer介绍 (并非新知识,比较古老的一种使用方式)
java·spring·架构
chilavert3185 分钟前
技术演进中的开发沉思-356:重排序(中)
java·开发语言
毕设源码-邱学长5 分钟前
【开题答辩全过程】以 基于SSM的儿童福利院管理系统为例,包含答辩的问题和答案
java·eclipse
小Pawn爷5 分钟前
1.Docker基础
运维·docker·容器
chinesegf8 分钟前
清理docker残留镜像images
运维·docker·容器
TT哇11 分钟前
【实习】数字营销系统 银行经理端(interact_bank)前端 Vue 移动端页面的 UI 重构与优化
java·前端·vue.js·ui
Elieal21 分钟前
SpringBoot 数据层开发与企业信息管理系统实战
java·spring boot·后端
识君啊21 分钟前
MyBatis-Plus 逻辑删除导致唯一索引冲突的解决方案
java·spring boot·mybatis·mybatis-plus·唯一索引·逻辑删除
Coder_Boy_23 分钟前
Java开发者破局指南:跳出内卷,借AI赋能,搭建系统化知识体系
java·开发语言·人工智能·spring boot·后端·spring
QT.qtqtqtqtqt24 分钟前
SQL注入漏洞
java·服务器·sql·安全