Git Product home page Git Product logo

sentinel-cpp's People

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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sentinel-cpp's Issues

Support warm-up flow control

std::shared_ptr<TrafficShapingController> FlowRuleManager::GenerateController(
    const FlowRule& rule) {
  if (rule.metric_type() == FlowMetricType::kQps) {
    switch (rule.control_behavior()) {
      case FlowControlBehavior::kWarmUp:
        // return (WarmUpCalculator, DefaultChecker);
      case FlowControlBehavior::kThrotting:
        // return (DefaultCalculator, ThrottlingChecker);
      default:
        // Default mode or unknown mode: default traffic shaping controller
        return CreateDefaultController(rule);
    }
  }
  return CreateDefaultController(rule);
}

从上面的代码来看,warm up mode 还未实现么?

Basic circuit breaking support

Issue Description

Type: feature request

Describe what happened (or what feature you want)

Add basic circuit breaking support (error-based and response time based).

WORKSPACE file link broken

Issue Description

Execute the "bazel build -c opt //..." would faile.Because the link in the WORKSPACE file have been broken, and the
the download of dependent third-party compressed package will failed.
Type: bug report or feature request

Describe what happened (or what feature you want)

Describe what you expected to happen

How to reproduce it (as minimally and precisely as possible)

  1. cd sentinel-cpp
  2. run the “bazel build -c opt //...”

Tell us your environment

Ubuntu18.04

Anything else we need to know?

@xcaspar @BlackImpl @dapingzhang @x-cold

Potential infinite loop in MetricSearcher::FindOffset(xxx)

Issue Description

Type: bug report

Describe what happened (or what feature you want)

while (!istream.eof()) { ... } may cause infinite loop in MetricSearcher::FindOffset(xxx):

while (!in.eof()) {
in >> second >> tmp_offset;
if (second < begin_second) {
last_pos_.offset_in_index = in.tellg();
} else {
offset = tmp_offset;
break;
}
}

The eof() will return false even if the failbit or badbit is true. Refer: https://stackoverflow.com/questions/13079900/file-i-o-infinite-loop-c-eof

c++版本支持熔断降级吗,demo里没看到相关的例子

Issue Description

Type: bug report or feature request

Describe what happened (or what feature you want)

Describe what you expected to happen

How to reproduce it (as minimally and precisely as possible)

Tell us your environment

Anything else we need to know?

Sentinel-cpp Roadmap Question

Hi, Recently we are investigating the flow control framework. May I ask about the sentinel-CPP version roadmap? When is it available?

Tks

For PR

Issue Description

I added this big feature of adaptive, low overhead fetching of cache timestamps.
Type: bug report or feature request

Describe what happened (or what feature you want)

Describe what you expected to happen

How to reproduce it (as minimally and precisely as possible)

Tell us your environment

Anything else we need to know?

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.