高级检索

    刘政, 虞慧群, 范贵生. 一种基于主副备份的微服务可靠性建模与分析方法[J]. 华东理工大学学报(自然科学版), 2023, 49(1): 128-134. DOI: 10.14135/j.cnki.1006-3080.20210921001
    引用本文: 刘政, 虞慧群, 范贵生. 一种基于主副备份的微服务可靠性建模与分析方法[J]. 华东理工大学学报(自然科学版), 2023, 49(1): 128-134. DOI: 10.14135/j.cnki.1006-3080.20210921001
    LIU Zheng, YU Huiqun, FAN Guisheng. A Method to Model and Analyze Microservice Reliability Based on Primary-Backup Replication[J]. Journal of East China University of Science and Technology, 2023, 49(1): 128-134. DOI: 10.14135/j.cnki.1006-3080.20210921001
    Citation: LIU Zheng, YU Huiqun, FAN Guisheng. A Method to Model and Analyze Microservice Reliability Based on Primary-Backup Replication[J]. Journal of East China University of Science and Technology, 2023, 49(1): 128-134. DOI: 10.14135/j.cnki.1006-3080.20210921001

    一种基于主副备份的微服务可靠性建模与分析方法

    A Method to Model and Analyze Microservice Reliability Based on Primary-Backup Replication

    • 摘要: 微服务架构(MSA)将云应用构建为独立的组件,通过解耦来提高软件更新的灵活性和敏捷性,然而微服务在时延和可靠性方面仍面临许多挑战。本文使用谓词Petri网(PrT网)对基于事件总线的微服务组合进行建模,建立微服务之间的逻辑关系。采用主版本和备份部署微服务实例,提高了微服务组合整体的可靠性。基于PrT网的相关理论,验证了微服务可靠性模型和PB(Primary-Backup)副本部署策略的正确性。将微服务执行的保证率作为可靠性的参数,通过实验分析验证了本文方法的有效性。

       

      Abstract: Microservice architecture builds cloud applications as independent components and runs each application process as service. It can improve the flexibility and speed of software update through decoupling. However, microservices still face many challenges, such as, service decomposition, transmission delay, and reliability. This paper uses predicated Petri net (PrT net) to model the event bus-based microservice composition and establish the logical relationship among microservices. The event listening mechanism is a delegated event handling mechanism. When a specified event occurs in the event source, it will notify the specified event listener to perform the corresponding operation. For event-based communication, when an event occurs, the microservice will publish the event. Then, we propose a PB (primary-backup) replication allocation strategy that meets the sub-deadline through microservice instances of the primary and backup replica for improving the overall reliability of microservice composition. Besides, the PB replica deployment strategy is analyzed via two cases: single task and multi task PB replica. By deploying the primary and backup replica of the task in different containers or host resources, the goal of improving the reliability of cloud applications is the correctness of microservice reliability model and PB replica deployment strategy is verified achieved. The properties of constructed models are established and the correctness of both the microservice reliability model and PB replica deployment strategy is verified by using the relevant theories of PrT net. Finally, several experiments are carried out to verify the effectiveness of the modeling and analysis method. It is shown from experimental results that the proposed microservice reliability strategy is effective by taking guarantee ratio as reliability parameter.

       

    /

    返回文章
    返回