moby / swarmkit

A toolkit for orchestrating distributed systems at any scale. It includes primitives for node discovery, raft-based consensus, task scheduling and more.
Apache License 2.0
3.38k stars 616 forks source link

Monitoring for resource allocation #1344

Open Yogu opened 8 years ago

Yogu commented 8 years ago

Services and thus tasks can have memory and cpu reservations attached. A task can then only be assigned to a node if it the right amount of memory and cpu shares is available. If there is no node matching these conditions, the task stays in allocated state.

It would be great to have more monitoring functionality regarding the available and allocated resources of the cluster. In an automated cloud envirionment, new nodes should be provisioned if the available resources do not suffice.

The following features would provide more insights:

This should allow to answer the question "when to add more machines" in an automated setup in a simple yet acceptable way. What do you think?

dvenza commented 7 years ago

In particular information about resource reservation via the API was present in the standalone Swarm and we are using it happily. We consider the lack of this information a regression and it is one of the reasons we cannot upgrade to swarmkit.