summaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
authorDarrenJiang13 <yjjiang1996@163.com>2022-06-06 13:29:24 +0800
committerGitHub <noreply@github.com>2022-06-06 08:29:24 +0300
commitf55858349344b40168cd83d645b5636295eb92a6 (patch)
treec8e030983cce6c51d2b64dd11cdeb68be5bf09c8 /src/server.h
parentc751d8a686aa298d591ccf18adf5d1cc19808a4c (diff)
downloadredis-f55858349344b40168cd83d645b5636295eb92a6.tar.gz
Split instantaneous_repl_total_kbps to instantaneous_input_repl_kbps and instantaneous_output_repl_kbps. (#10810)
A supplement to https://github.com/redis/redis/pull/10062 Split `instantaneous_repl_total_kbps` to `instantaneous_input_repl_kbps` and `instantaneous_output_repl_kbps`. ## Work: This PR: - delete 1 info field: - `instantaneous_repl_total_kbps` - add 2 info fields: - `instantaneous_input_repl_kbps / instantaneous_output_repl_kbps` ## Result: - master ``` total_net_input_bytes:26633673 total_net_output_bytes:21716596 total_net_repl_input_bytes:0 total_net_repl_output_bytes:18433052 instantaneous_input_kbps:0.02 instantaneous_output_kbps:0.00 instantaneous_input_repl_kbps:0.00 instantaneous_output_repl_kbps:0.00 ``` - slave ``` total_net_input_bytes:18433212 total_net_output_bytes:94790 total_net_repl_input_bytes:18433052 total_net_repl_output_bytes:0 instantaneous_input_kbps:0.00 instantaneous_output_kbps:0.05 instantaneous_input_repl_kbps:0.00 instantaneous_output_repl_kbps:0.00 ```
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server.h b/src/server.h
index 04c047cf0..6dfa8a067 100644
--- a/src/server.h
+++ b/src/server.h
@@ -156,8 +156,9 @@ typedef long long ustime_t; /* microsecond time type. */
#define STATS_METRIC_COMMAND 0 /* Number of commands executed. */
#define STATS_METRIC_NET_INPUT 1 /* Bytes read to network. */
#define STATS_METRIC_NET_OUTPUT 2 /* Bytes written to network. */
-#define STATS_METRIC_NET_TOTAL_REPLICATION 3 /* Bytes written and read to network during replication. */
-#define STATS_METRIC_COUNT 4
+#define STATS_METRIC_NET_INPUT_REPLICATION 3 /* Bytes read to network during replication. */
+#define STATS_METRIC_NET_OUTPUT_REPLICATION 4 /* Bytes written to network during replication. */
+#define STATS_METRIC_COUNT 5
/* Protocol and I/O related defines */
#define PROTO_IOBUF_LEN (1024*16) /* Generic I/O buffer size */