File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
pkg/kv/kvserver/asim/tests Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -232,7 +232,8 @@ func TestDataDriven(t *testing.T) {
232
232
// Catch tests that set unrealistically small or unrealistically large
233
233
// CPU consumptions. This isn't exact because it doesn't account for
234
234
// replication, but it's close enough.
235
- approxVCPUs := (rate * (float64 (requestCPUPerAccess )* rwRatio + float64 (raftCPUPerAccess )* (1.0 - rwRatio ))) / 1e9
235
+ // NB: writes also consume requestCPUPerAccess.
236
+ approxVCPUs := (rate * (float64 (requestCPUPerAccess ) + float64 (raftCPUPerAccess )* (1.0 - rwRatio ))) / 1e9
236
237
// Ditto for writes. Here too we don't account for replication. Note
237
238
// that at least under uniform writes, real clusters can have a write
238
239
// amp that easily surpasses 20, so writing at 40mb/s to a small set
You can’t perform that action at this time.
0 commit comments