acelyc111 commented on code in PR #1474:
URL:
https://github.com/apache/incubator-pegasus/pull/1474#discussion_r1191164603
##########
src/replica/replica_stub.cpp:
##########
@@ -191,6 +191,21 @@ METRIC_DEFINE_counter(server,
dsn::metric_unit::kRequests,
"The number of busy write requests");
+METRIC_DEFINE_gauge_int64(server,
+ bulk_load_running_count,
+ dsn::metric_unit::kBulkLoads,
+ "The number of current running bulk loads");
+
+METRIC_DEFINE_gauge_int64(server,
Review Comment:
For the xxx_max_xxx mastrics, how about use percentile? we can do that in
next patches.
##########
src/replica/bulk_load/replica_bulk_loader.cpp:
##########
@@ -50,6 +48,41 @@
#include "utils/string_view.h"
#include "utils/thread_access_checker.h"
+METRIC_DEFINE_counter(replica,
+ bulk_load_download_count,
Review Comment:
Like `bulk_load_running_count`, how about rename the following two metrics
to `bulk_load_downloading_count` and `bulk_load_ingesting_count` ?
And in fact they are gauge type?
--
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]