信息网络安全 ›› 2021, Vol. 21 ›› Issue (5): 12-18.doi: 10.3969/j.issn.1671-1122.2021.05.002

• 技术研究 • 上一篇    下一篇

基于Docker容器故障恢复的属性权重快照选择策略

郑军1, 聂榕2, 王守信3(), 谭毓安2   

  1. 1.北京理工大学网络空间安全学院,北京 100089
    2.北京理工大学计算机学院,北京 100089
    3.中国卫通集团股份有限公司,北京 100190
  • 收稿日期:2021-02-22 出版日期:2021-05-10 发布日期:2021-06-22
  • 通讯作者: 王守信 E-mail:shouxin_wang@126.com
  • 作者简介:郑军(1969—),女,辽宁,教授,博士,主要研究方向为网络与信息安全、人工智能和教育技术|聂榕(1996—),女,山东,硕士研究生,主要研究方向为网络安全|王守信(1979—),男,辽宁,高级工程师,博士,主要研究方向为软件工程、卫星互联网应用和人工智能机器视觉应用|谭毓安(1972—),男,重庆,教授,博士,主要研究方向为人工智能安全和系统安全
  • 基金资助:
    国家自然科学基金(U1936218);国家自然科学基金(62072037);之江实验室开放课题(2020LE0AB02)

Attribute Weight Snapshot Selection Strategy Based on Docker Container Fault Recovery

ZHENG Jun1, NIE Rong2, WANG Shouxin3(), TAN Yu’an2   

  1. 1. School of Cyberspace Security, Beijing Institute of Technology, Beijing 100089, China
    2. School of Computer Science, Beijing Institute of Technology, Beijing 100089, China
    3. China Satellite Communications Co., Ltd., Beijing 100190, China
  • Received:2021-02-22 Online:2021-05-10 Published:2021-06-22
  • Contact: WANG Shouxin E-mail:shouxin_wang@126.com

摘要:

近年来,Docker容器技术作为一种新型的虚拟化技术,凭借其隔离性好、成本低、部署安全和方便等优点,得到广泛关注和使用。Docker容器的可靠性问题成为当前研究的热点。然而,Docker容器随时都有很多任务在运行过程中出现故障,且几乎无法避免。容器快照技术成为故障恢复的主流方法之一。当前主要快照选择方法有距离故障发生最小时间差快照选择策略和人工快照选择策略,但这些策略都缺乏对目标容器的综合评估和严谨决策的过程。文章提出一种基于Docker容器故障恢复的属性权重快照选择策略,在进行目标容器恢复操作时,根据不同的需求场景和该容器在使用时的功能特点,结合快照的属性指标权重配置方法与综合评分选择算法,得出适合目标容器进行故障恢复的最优快照。通过对几项容器资源指标进行评估,发现与最小时间差选择策略相比,文章策略能使容器在恢复后的性能状态更佳。

关键词: Docker容器技术, 故障恢复, 快照选择策略

Abstract:

In recent years, as a new virtualization technology, Docker container technology has been widely concerned and used because of its advantages of good isolation, low cost, safe and convenient deployment. The reliability of Docker container has become the focus of current research. However, there are many tasks in Docker container that break down at any time during operation, which is almost unavoidable. Container snapshot technology is one of the main methods for fault recovery. At present, the main snapshot selection methods are minimum time difference from fault snapshot selection strategy and manual snapshot selection strategy, but none of these strategies has a comprehensive evaluation and rigorous decision-making process for the target container. This paper proposes an attribute weight snapshot selection strategy based on Docker container fault recovery. When recovering the target container, according to different requirements scenarios and function characteristics of the container in use, the attribute index weight allocation method and comprehensive scoring selection algorithm of the snapshot are combined to get the optimal snapshot suitable for the target container to recover from a fault. Through the evaluation of several container resource indicators, it is found that compared with the minimum time difference selection strategy, the strategy proposed in this paper can make the container in a better performance state after recovery.

Key words: Docker container technology, fault recovery, snapshot selection strategy

中图分类号: