[Paper Review] DRAPS: Dynamic and Resource-Aware Placement Scheme for Docker Containers in a Heterogeneous Cluster
DRAPS is a dynamic, resource-aware container placement scheme for Docker in heterogeneous clusters that assigns containers based on real-time resource availability and service-specific demands. By identifying dominant resource types and balancing workloads across nodes, DRAPS reduces peak resource usage by up to 42.6% and improves system stability, especially under memory pressure, compared to Docker Swarmkit's default Spread strategy.
Virtualization is a promising technology that has facilitated cloud computing to become the next wave of the Internet revolution. Adopted by data centers, millions of applications that are powered by various virtual machines improve the quality of services. Although virtual machines are well-isolated among each other, they suffer from redundant boot volumes and slow provisioning time. To address limitations, containers were born to deploy and run distributed applications without launching entire virtual machines. As a dominant player, Docker is an open-source implementation of container technology. When managing a cluster of Docker containers, the management tool, Swarmkit, does not take the heterogeneities in both physical nodes and virtualized containers into consideration. The heterogeneity lies in the fact that different nodes in the cluster may have various configurations, concerning resource types and availabilities, etc., and the demands generated by services are varied, such as CPU-intensive (e.g. Clustering services) as well as memory-intensive (e.g. Web services). In this paper, we target on investigating the Docker container cluster and developed, DRAPS, a resource-aware placement scheme to boost the system performance in a heterogeneous cluster.
Motivation & Objective
- To address the limitations of Docker Swarmkit's default Spread placement strategy, which ignores node heterogeneity and dynamic service resource demands.
- To improve system performance, stability, and scalability in heterogeneous Docker container clusters with mixed workloads.
- To develop a placement scheme that considers both current available resources and the dominant resource type per service.
- To reduce resource bottlenecks and prevent container failures due to resource exhaustion, especially memory overcommitment.
- To implement and evaluate a practical, deployable solution within the existing Docker Swarmkit orchestration framework.
Proposed method
- DRAPS monitors running containers to identify the dominant resource type (e.g., CPU, memory, I/O) for each service.
- It uses a dynamic, resource-aware selection algorithm that assigns new containers to nodes based on current available resources and service demand profiles.
- The scheme groups containers with complementary resource needs on the same node to balance overall resource utilization across the cluster.
- When a resource type becomes a bottleneck (e.g., memory), DRAPS proactively migrates resource-intensive containers to less-loaded nodes.
- Heartbeat messages are enhanced to include detailed container resource usage statistics, enabling real-time monitoring and decision-making.
- The solution is integrated into Docker Swarmkit, preserving compatibility with existing orchestration workflows.
Experimental results
Research questions
- RQ1How does the default Docker Swarmkit Spread placement strategy perform under heterogeneous node configurations and diverse service workloads?
- RQ2What is the impact of ignoring node heterogeneity and dynamic service resource demands on system stability and performance?
- RQ3Can a dynamic, resource-aware placement strategy reduce resource bottlenecks and improve system scalability in heterogeneous Docker clusters?
- RQ4How does DRAPS compare to the default Spread strategy in terms of resource utilization, container stability, and network overhead?
- RQ5To what extent can DRAPS reduce peak resource usage and prevent container failures due to resource exhaustion?
Key findings
- DRAPS reduced peak memory usage on worker 1 from 80.5% (Spread) to 46.7%, significantly improving system stability.
- Under high load, DRAPS prevented container failure on worker 1, which was overwhelmed and crashed under the Spread strategy due to memory exhaustion.
- With 140 containers, DRAPS maintained memory and CPU usage at 46.3% and 18.8% on worker 1, respectively, while Spread caused a 95.2% memory spike and eventual container death.
- In mixed idle and loaded container workloads, DRAPS sustained stable performance, while Spread experienced a 98.5% memory spike and container loss at 825 seconds.
- DRAPS reduced the number of containers on the most constrained node (worker 1) from 44 (Spread) to 24, avoiding resource saturation.
- Despite increased network overhead due to enhanced heartbeat messages, the bandwidth cost was deemed reasonable in a distributed manager-worker architecture.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.