Giter VIP home page Giter VIP logo

dhalion's Introduction

Dhalion

In Greek mythology, the Dhalion is a bird that is said to be able to take the sickness away from a person and into itself. Then it flies away, dispersing the sickness and healing both itself and the sick person.

Dhalion is a framework for automatically scaling and tuning distributed systems.

Contributing

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

dhalion's People

Contributors

abmodi avatar andrewnguonly avatar ashvina avatar avflor avatar dependabot[bot] avatar kewangcmu avatar microsoft-github-policy-service[bot] avatar microsoftopensource avatar msftgits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dhalion's Issues

Add Health Manager Process

Adds a standalone Dhalion process that initiates the Dhalion configurations from a user-provided yaml file and invokes the policy executor.

Time filter fails for certain values

The following error is observed when one of the parameters is Instant.MIN

Caused by: java.lang.ArithmeticException: long overflow
    at java.lang.Math.multiplyExact(Math.java:892)
    at java.time.Instant.toEpochMilli(Instant.java:1237)
    at com.microsoft.dhalion.core.TableUtils.filterTime(TableUtils.java:42)
    at com.microsoft.dhalion.core.OutcomeTable.filterTime(OutcomeTable.java:110)
    at com.microsoft.dhalion.core.SymptomsTable.between(SymptomsTable.java:109)

Add support for caching metrics provider.

At present, metrics provider doesn't cache results. We should expose a metrics provider interface which adds support for caching and makes actual api calls only when it is required.

Provide better DI support

Problem
HealthManager class creates the injector instance and tries to create the metrics provider class using this. What this means is that the metrics provider constructor must itself depend on a lot of concrete dependencies.

  1. This makes testing difficult.
  2. We cannot use annotation binding in our classes.
    There are probably more such disadvantages.

Example
Consider the following definition.

@Inject
public BasicPolicy(Config sysConfig, Dependency1 dep1){

Here Dependency1 must be a concrete class (with its own inject annotations) for health manager to properly create its instance. There could be a workaround by having it as Dependency1Factory however this is again concrete and defeats the purpose of DI.

Ask
Provide a mechanism to register user defined modules in the HealthManager. For example. an IPolicyBindings with getBindings() getModules() and then that can be applied to the injector by the HealthManager class before attempting to create the metrics provider instance.

Add utility method for time sorting

We have seen many invocations of sort-by-time method followed by last method. This could be replaced by a utility method, say latest, to simplify the usage.

Allow policy to provide checkpoints

Dhalion can be used for offline analysis using archived metrics. In such cases, the policy execution checkpoint should refer to a time in the past, the time at which the metrics were collected. So instead of using the current time as default checkpoint, let the policy itself provide a checkpoint.

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.