Skip to content

Commit 2af2f2d

Browse files
committed
roachpb: add proto changes for StoreCapacity
This commit adds MMA-related proto changes to StoreCapacity, including the writes_bytes_per_second field. It is the aggregated sum of average number of bytes written per second across all replicas on the store. This field is currently unused and will be populated in future commits. MMA will later use it to track write bandwidth usage. Epic: none Release note: none
1 parent 7f97075 commit 2af2f2d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/roachpb/metadata.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,13 @@ message StoreCapacity {
321321
// io_threshold_max tracks the maximum io overload values the store has had
322322
// over the last 5 minutes.
323323
optional cockroach.util.admission.admissionpb.IOThreshold io_threshold_max = 15 [(gogoproto.nullable) = false, (gogoproto.customname) = "IOThresholdMax" ];
324+
// writes_bytes_per_second aggregates the average number of bytes written per
325+
// second across replicas in the store. The stat is tracked over the time
326+
// period defined in storage/replica_stats.go, which as of July 2018 is 30
327+
// minutes.
328+
// TODO(wenyihu6): This field is currently unused and not populated. MMA will
329+
// later use it to track write bandwidth usage.
330+
optional double write_bytes_per_second = 16 [(gogoproto.nullable) = false];
324331
// bytes_per_replica and writes_per_replica contain percentiles for the
325332
// number of bytes and writes-per-second to each replica in the store.
326333
// This information can be used for rebalancing decisions.

0 commit comments

Comments
 (0)