alibaba / alibaba/sentinel-cpp

Support warm-up flow control

Open
#39 1 comment 0 reactions 0 assignees View on GitHub
kind/feature
Dominant language
C++
Stars
148
Forks
36
PR merge metrics
No merged PRs in 30d

Description

```c++
std::shared_ptr 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 还未实现么?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at FlowRuleManager::GenerateController and inspect the referenced WarmUpCalculator, DefaultCalculator, DefaultChecker, and ThrottlingChecker types to understand the intended flow-control behavior. Confirm whether the warm-up branch is implemented elsewhere and define completion as warm-up rules selecting the appropriate controller rather than falling back to the default path.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.