计算机科学 ›› 2017, Vol. 44 ›› Issue (4): 47-55.doi: 10.11896/j.issn.1002-137X.2017.04.011

• NASAC 2015 • 上一篇    下一篇

基于模型的云应用动态配置框架

梁超超,陈伟,魏峻,许舒人   

  1. 中国科学院软件研究所 北京100190,中国科学院软件研究所 北京100190,中国科学院软件研究所 北京100190,中国科学院软件研究所 北京100190
  • 出版日期:2018-11-13 发布日期:2018-11-13
  • 基金资助:
    本文受自然科学基金(61402453),863项目(2013AA041301),国家科技支撑(2015BAH18F02)资助

Model-based Runtime Configuration Framework for Cloud-based Applications

LIANG Chao-chao, CHEN Wei, WEI Jun and XU Shu-ren   

  • Online:2018-11-13 Published:2018-11-13

摘要: 云应用是云计算技术在应用层的一种重要体现形式,通常由分布式异构组件构成,且组件相互依赖,配置参数众多。组件依赖导致配置参数间存在关联,使应用运行时弹性扩展难以确定组件实例的配置顺序并保证关联参数的一致性,导致应用扩展后的系统故障和服务不可用。针对这一问题,提出了一种基于模型的云应用动态自配置方法,实现运行时组件实例配置顺序的自动协调,保障配置参数的一致性,提高应用运行时弹性扩展的可靠性。首先提出一种部署配置模型STM(Service-based Topology Model),该模型采用声明式的方法刻画云应用的部署拓扑结构,并基于服务的方式描述组件信息,实现组件间关联关系的分离,涵盖运维部署、扩展、运行时服务状态的监测。 然后 基于该模型,提出了一个云应用动态自配置协议,其基于服务注册发现机制实现组件间强依赖关系的解耦,保证动态调整应用实例时组件配置变化的一致性,实现组件部署配置的并行化。基于上述方法实现了一个原型系统,通过对分布式应用BookStore-TPCW的部署配置和运行时弹性扩展来验证方法的有效性。

关键词: 云应用,自配置,模型,运行时扩展

Abstract: Cloud-based application is one of the most important paradigms of cloud computing at application layer.These applications are usually constituted of a set of distributed components.Due to the dependencies between the components,there are correlations between the configuration parameters,which makes it difficult to configure the components correctly and to ensure the parameter consistencies at runtime,making system failed or service unavailable.To address this issue,we proposed a model-based self-configuration method for cloud-based applications,which realizes the automatic choreography for component configuration,ensures configuration consistency and improves the reliability of runtime scale.Firstly,this method proposes a model to specify application topology in a declarative way.This model describes application components in form of services,and makes the separation of components and their relations.Then this method designes a self-configuration protocol to support component configurations at runtime.Based on service re-gistration and service discovery,this protocol decouples the component dependencies and ensures the consistencies of changing the configuration values.We also implemented a prototype based on this method and evaluated the effectiveness of this method with a typical application BookStore-TPCW.

Key words: Cloud-based application, Self-configuration,Model,Runtime scale

[1] IDC.Worldwide and Regional Public Cloud IT Services 2014-2018 Forecast.http://www.idc.com/getdoc.jsp?containerId=prUS25219014.
[2] ABID R,SALA N G,BONGIOVANNI F,et al.Verification of a Dynamic Management Protocol for Cloud Applications [M]∥Automated Technology for Verification and Analysis.Springer,2013:178-92.
[3] SALA N G,ETCHEVERS X,DE PALMA N,et al.Verification of a Self-configuration Protocol for Distributed Applications in the Cloud [M]∥Assurances for Self-Adaptive Systems.Springer,2013:60-79.
[4] ETCHEVERS X,SALA N G,BOYER F,et al.Reliable self-deployment of cloud applications[C]∥Proceedings of the 29th Annual ACM Symposium on Applied Computing.ACM,2014.
[5] ETCHEVERS X,COUPAYE T,BOYER F,et al.Self-Configuration of Distributed Applications in the Cloud[C]∥2011 IEEE International Conference on Proceedings of the Cloud Computing (CLOUD).2011:4-9.
[6] OASIS.Topology and Orchestration Specification for Cloud Applications Simple Profile in YAML Version 1.0[S].2015.
[7] Puppet.https://puppetlabs.com.
[8] Consul.https://www.consul.io.
[9] BREITENB CHER U,BINZ T,K PES K,et al.Combining Declarative and Imperative Cloud Application Provisioning based on TOSCA [C]∥IC2E IEEE.2014.

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!