mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
feat: track request sizes histograms (#3951)
This PR introduces "DEBUG RECVSIZE ENABLE|DISABLE|tid" command that allows tracking of request sizes. Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
32a31cf1d8
commit
f0c30a6d59
9 changed files with 93 additions and 42 deletions
|
@ -2050,23 +2050,8 @@ void ServerFamily::ResetStat(Namespace* ns) {
|
|||
shard_set->pool()->AwaitBrief(
|
||||
[registry = service_.mutable_registry(), this, ns](unsigned index, auto*) {
|
||||
registry->ResetCallStats(index);
|
||||
SinkReplyBuilder::ResetThreadLocalStats();
|
||||
auto& stats = tl_facade_stats->conn_stats;
|
||||
stats.command_cnt = 0;
|
||||
stats.pipelined_cmd_cnt = 0;
|
||||
|
||||
ns->GetCurrentDbSlice().ResetEvents();
|
||||
tl_facade_stats->conn_stats.conn_received_cnt = 0;
|
||||
tl_facade_stats->conn_stats.pipelined_cmd_cnt = 0;
|
||||
tl_facade_stats->conn_stats.command_cnt = 0;
|
||||
tl_facade_stats->conn_stats.io_read_cnt = 0;
|
||||
tl_facade_stats->conn_stats.io_read_bytes = 0;
|
||||
|
||||
tl_facade_stats->reply_stats.io_write_bytes = 0;
|
||||
tl_facade_stats->reply_stats.io_write_cnt = 0;
|
||||
tl_facade_stats->reply_stats.send_stats = {};
|
||||
tl_facade_stats->reply_stats.script_error_count = 0;
|
||||
tl_facade_stats->reply_stats.err_count.clear();
|
||||
facade::ResetStats();
|
||||
ServerState::tlocal()->exec_freq_count.clear();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue