Skip to main content
QUICK REVIEW

[论文解读] DRAPS: Dynamic and Resource-Aware Placement Scheme for Docker Containers in a Heterogeneous Cluster

Ying Mao, Jenna Oak|arXiv (Cornell University)|May 22, 2018
Cloud Computing and Resource ManagementComputer Science被引用 16
一句话总结

DRAPS 是一种针对异构集群中 Docker 的动态、资源感知的容器部署方案,根据实时资源可用性和服务特定需求分配容器。通过识别主导资源类型并在节点间均衡工作负载,DRAPS 将峰值资源使用率降低了高达 42.6%,并提升了系统稳定性,尤其是在内存压力下,相较于 Docker Swarmkit 的默认 Spread 策略表现更优。

ABSTRACT

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.

研究动机与目标

  • 解决 Docker Swarmkit 默认 Spread 部署策略的局限性,该策略忽略了节点异构性及动态服务资源需求。
  • 在具有混合工作负载的异构 Docker 容器集群中,提升系统性能、稳定性和可扩展性。
  • 开发一种同时考虑当前可用资源和每项服务主导资源类型的新部署方案。
  • 减少资源瓶颈,防止因资源耗尽(尤其是内存过度分配)导致的容器失败。
  • 在现有 Docker Swarmkit 编排框架内实现并评估一种实用且可部署的解决方案。

提出的方法

  • DRAPS 监控正在运行的容器,识别每项服务的主导资源类型(如 CPU、内存、I/O)。
  • 采用动态、资源感知的选择算法,根据当前可用资源和业务需求配置,将新容器分配到节点。
  • 将资源需求互补的容器分组部署在同一节点,以实现集群整体资源利用率的均衡。
  • 当某一资源类型成为瓶颈(如内存)时,DRAPS 主动将资源密集型容器迁移到负载较低的节点。
  • 增强心跳消息,包含详细的容器资源使用统计信息,以支持实时监控与决策。
  • 将解决方案集成至 Docker Swarmkit,保持与现有编排工作流的向后兼容性。

实验结果

研究问题

  • RQ1在异构节点配置和多样化服务工作负载下,Docker Swarmkit 默认的 Spread 部署策略表现如何?
  • RQ2忽略节点异构性及动态服务资源需求对系统稳定性与性能有何影响?
  • RQ3动态、资源感知的部署策略是否能减少资源瓶颈,并提升异构 Docker 集群的可扩展性?
  • RQ4与默认的 Spread 策略相比,DRAPS 在资源利用率、容器稳定性及网络开销方面表现如何?
  • RQ5DRAPS 在多大程度上可降低峰值资源使用率,并防止因资源耗尽导致的容器失败?

主要发现

  • DRAPS 将工作节点 1 的峰值内存使用率从 Spread 策略下的 80.5% 降低至 46.7%,显著提升了系统稳定性。
  • 在高负载下,DRAPS 避免了工作节点 1 的容器失败,而该节点在 Spread 策略下因内存耗尽而崩溃。
  • 在 140 个容器场景下,DRAPS 使工作节点 1 的内存和 CPU 使用率分别维持在 46.3% 和 18.8%,而 Spread 策略导致内存峰值达 95.2%,最终引发容器死亡。
  • 在混合空闲与高负载容器工作负载下,DRAPS 保持了稳定性能,而 Spread 策略在 825 秒时出现 98.5% 的内存峰值并导致容器丢失。
  • DRAPS 将最受限节点(工作节点 1)上的容器数量从 Spread 策略下的 44 个减少至 24 个,避免了资源饱和。
  • 尽管因增强的心跳消息导致网络开销增加,但在分布式管理器-工作节点架构中,带宽成本仍被认为合理。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。