This commit is contained in:
Zhe Wu 2021-02-15 23:56:55 -08:00
parent 551af1127c
commit 614d1584cc
1 changed files with 5 additions and 0 deletions

View File

@ -426,7 +426,12 @@ struct SplitMetricsRequest {
// Should always be used inside a `Standalone`.
struct ReadHotRangeWithMetrics {
KeyRangeRef keys;
// density refers to the ratio of bytes sent(because of the read) and bytes on disk.
// For example if key range [A, B) and [B, C) respectively has byte size 100 bytes on disk.
// Key range [A,B) was read 30 times.
// The density for key range [A,C) is 30 * 100 / 200 = 15
double density;
// How many bytes of data was sent in a period of time because of read requests.
double readBandwidth;
ReadHotRangeWithMetrics() = default;