Skip to content

Commit 7286767

Browse files
authored
config: change RUScale default value to 1.40 (#1924)
Signed-off-by: disksing <i@disksing.com>
1 parent 77f0a1d commit 7286767

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

config/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ type RUV2TiKVConfig struct {
145145
// Keep RUScale and the per-counter weights in sync with that fitting procedure when updating them.
146146
func DefaultRUV2TiKVConfig() RUV2TiKVConfig {
147147
return RUV2TiKVConfig{
148-
RUScale: 5697.054498,
148+
RUScale: 1.40,
149149

150150
TiKVKVEngineCacheMiss: 0.45975389,
151151
ResourceManagerWriteCntTiKV: 0.09642181,

config/ruv2_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ func TestUpdateTiKVRUV2FromExecDetailsV2AndWriteRPCCount(t *testing.T) {
5151
},
5252
}, 31)
5353

54-
require.InDelta(t, 157258.29118786956, ruDetails.TiKVRUV2(), 1e-9)
54+
require.InDelta(t, 38.64481334, ruDetails.TiKVRUV2(), 1e-9)
5555
}

0 commit comments

Comments
 (0)