alibaba / sentinel-cpp Goto Github PK
View Code? Open in Web Editor NEWC++ implementation of Sentinel
License: Apache License 2.0
C++ implementation of Sentinel
License: Apache License 2.0
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 还未实现么?
Type: feature request
Add support for flow control by frequent parameters.
Ref: alibaba/Sentinel#32
sentinel-cpp can support nacos?
Type: feature request
Add basic circuit breaking support (error-based and response time based).
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
Ubuntu18.04
Type: bug report
while (!istream.eof()) { ... }
may cause infinite loop in MetricSearcher::FindOffset(xxx)
:
sentinel-cpp/sentinel-core/log/metric/metric_searcher.cc
Lines 57 to 65 in e4a6eb7
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
Type: bug report or feature request
Type: improvement
Improve boundary checking for input stream in MetricSearcher
and MetricReader
.
Hi, Recently we are investigating the flow control framework. May I ask about the sentinel-CPP version roadmap? When is it available?
Tks
I added this big feature of adaptive, low overhead fetching of cache timestamps.
Type: bug report or feature request
怎么进行编译?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.