gavinchou commented on code in PR #66969:
URL: https://github.com/apache/doris/pull/66969#discussion_r3819978740
##########
cloud/src/meta-service/meta_service_rate_limit_helper.cpp:
##########
@@ -800,6 +803,25 @@ MsStressDecision get_ms_stress_decision() {
return decision;
}
+void record_ms_rate_limit_trigger(std::string_view reason) {
+ g_bvar_ms_rate_limit_trigger.put(std::string(reason), 1);
+}
+
+void record_ms_rate_limit_triggers(const MsStressDecision& decision) {
+ if (decision.fdb_cluster_under_pressure) {
+ record_ms_rate_limit_trigger("fdb_cluster_under_pressure");
+ }
+ if (decision.fdb_client_thread_under_pressure) {
+ record_ms_rate_limit_trigger("fdb_client_thread_under_pressure");
+ }
+ if (decision.ms_resource_under_pressure) {
+ record_ms_rate_limit_trigger("ms_resource_under_pressure");
+ }
+ if (decision.rate_limit_injected_for_test) {
+ record_ms_rate_limit_trigger("rate_limit_injected_for_test");
Review Comment:
add prometheus examples in description
--
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]