Giter Club home page Giter Club logo

microres's Introduction

MicroRes

This repository accompanies our ISSTA'24 paper "MicroRes: Versatile Resilience Profiling in Microservices via Degradation Dissemination Indexing".

If you use our data or code, please kindly cite our paper.

@inproceedings{yang2024microres,
  title = {MicroRes: Versatile Resilience Profiling in Microservices via Degradation Dissemination Indexing},
  author = {Yang, Tianyi and Lee, Cheryl and Shen, Jiacheng and Su, Yuxin and Yang, Yongqiang and Lyu, Michael R},
  booktitle = {Proceedings of ACM SIGSOFT 33rd International Symposium on Software Testing and Analysis},
  year = {2024},
  url = {https://doi.org/10.1145/3650212.3652131}
}

Methodology

Motivating Examples

The following table shows the motivating examples of our comparison between resilient and unresilient deployments on Kubernetes.

rq

The Versatile Microserrvice Resilience Profiling Framework

We propose MicroRes, a versatile microservice resilience profiling framework via degradation dissemination indexing. The figure illustrates the overall workflow of MicroRes. It consists of three phases, i.e., failure execution, dissemination-based metric lattice search, and resilience indexing. The failure execution is composed of failure injection and failure clearance. Given a specified failure and a predefined load generator, MicroRes collects the to-be-tested service's monitoring metrics in the normal and faulty period. For the disseminationbased metric lattice search, we propose a dissemination-based metric selection algorithm. We organize all possible metric subsets of the monitoring metrics as a huge lattice. Then MicroRes searches the lattice while reducing the dimension by gradually selecting and removing the metric that contributes most to the overall degradation. In this way, the search path naturally forms a ranked list of monitoring metrics along with their contribution to the overall degradation. Lastly, for resilience indexing, we calculate the resilience index by how much the degradation disseminates from system performance metrics to user-aware metrics.

arch

The following figure shows the metric lattice constructed by the metrics. The red arrow indicates the degradation-based metric selection process.

lattice

Usage

Prerequisites

  • Python3.9.
  • Install the requirements (by pip install -r requirements.txt).

Steps to run

  • The MicroRes class provides an interface for resilience evaluation. Here's the code sample:
    from microres.core import MicroRes
    from microres.model.distance import Euclidean, ComplexityInvariantDistance, DTW
    microres = MicroRes(f_cont = ComplexityInvariantDistance.cid_distance) # select a contribution measure from microres/model/distance.py
    r = microres.eval(testId, metricMetadata, normalInterval, faultyInterval, metrics) # the resilience value
  • The dataset pkl file (https://doi.org/10.5281/zenodo.10846876) is organized by (testId, metricMetadata, normalInterval, faultyInterval, metrics).

Results

The output of MicroRes is a float value indicating the resilience index of the microservice system.

print("Resilience Index is", r)
# Resilience Index is 0.86547

microres's People

Stargazers

Tim Yang avatar

Watchers

Tim Yang avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.