feng-y opened a new pull request, #3229:
URL: https://github.com/apache/brpc/pull/3229

   Add RateLimitedBackupPolicy that limits the ratio of backup requests to 
total requests within a sliding time window. This prevents backup request 
storms under high QPS or downstream latency jitter.
   
   - New ChannelOptions.backup_request_max_ratio field (default -1, disabled)
   - Global gflags: backup_request_max_ratio, 
backup_request_ratio_window_size_s, backup_request_ratio_update_interval_s
   - Uses bvar::Window for time-windowed ratio tracking with cumulative Adder 
fallback during cold-start
   - Per-channel option overrides global gflag; custom policy takes precedence
   
   ### What problem does this PR solve?
   
   Issue Number: resolve 
   
   Problem Summary:
   
   ### What is changed and the side effects?
   
   Changed:
   
   Side effects:
   - Performance effects:
   
   - Breaking backward compatibility: 
   
   ---
   ### Check List:
   - Please make sure your changes are compilable.
   - When providing us with a new feature, it is best to add related tests.
   - Please follow [Contributor Covenant Code of 
Conduct](https://github.com/apache/brpc/blob/master/CODE_OF_CONDUCT.md).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to