Docker Swarm 模式 : what does mean the status "Assigned"?

标签 docker

Docker 版本:1.13.1

有时服务不会启动并停留在“已分配”状态。
它只发生在某些节点上,当我“耗尽”节点时,应用程序在其他地方启动得很好。

enter image description here

最佳答案

这意味着任务已分配给一个节点,但该节点尚未接受它。

Tasks run through the allocator, which allocate resources such as network attachments which are necessary for the tasks to run. When the allocator has processed a task, it moves the task to the PENDING state.

The scheduler takes PENDING tasks and assigns them to nodes (or verifies that the requested node has the necessary resources, in the case of global services' tasks). It changes their state to ASSIGNED.

From this point, control over the state passes to the agent. A task will progress through the ACCEPTED, PREPARING, READY, and STARTING states on the way to RUNNING. If a task exits without an error code, it moves to the COMPLETE state. If it fails, it moves to the FAILED state instead.


https://github.com/docker/swarmkit/blob/master/design/task_model.md#task-lifecycle

关于Docker Swarm 模式 : what does mean the status "Assigned"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47906380/

相关文章:

docker - Go的时间从头开始在docker镜像下不起作用

docker - 尝试使用 docker 容器运行 Kong API 网关时连接被拒绝

mysql - 如何在内部连接mysql kubernetes容器与nodejs k8s容器?

docker - 将多个 docker 容器部署到 AWS ECS

linux - Dockerfile 中的 RUN 命令有什么作用?

docker - 如何在 docker 容器内运行 cron 作业?

apache - 单台服务器上有多个Docker容器

docker - 如何使用 Docker 公开 1 个以上的端口?

docker 与 docker-compose nginx : [emerg] host not found in upstream "httpstat.us" in/etc/nginx/nginx. conf:21

docker - 由于输入/输出错误无法重启 Docker 容器?