From e275c0d4907ecb73eac6804e721d74a6c942b379 Mon Sep 17 00:00:00 2001 From: JmPotato Date: Fri, 13 Jan 2023 16:48:45 +0800 Subject: [PATCH] Adjust the WRU coefficients to smaller values Signed-off-by: JmPotato --- pkg/mcs/resource_manager/client/config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/mcs/resource_manager/client/config.go b/pkg/mcs/resource_manager/client/config.go index 1e13a18c12a..7cfcd639b42 100644 --- a/pkg/mcs/resource_manager/client/config.go +++ b/pkg/mcs/resource_manager/client/config.go @@ -17,8 +17,8 @@ package client const ( defaultReadBaseCost = 1 defaultReadCostPerByte = 1. / 1024 / 1024 - defaultWriteBaseCost = 5 - defaultWriteCostPerByte = 10. / 1024 / 1024 + defaultWriteBaseCost = 3 + defaultWriteCostPerByte = 5. / 1024 / 1024 defaultWriteCPUMsCost = 1 ) @@ -33,7 +33,7 @@ type RequestUnitConfig struct { // WriteBaseCost is the base cost for a write request. No matter how many bytes read/written or // the CPU times taken for a request, this cost is inevitable. WriteBaseCost float64 `toml:"write-base-cost" json:"write-base-cost"` - // WriteCostPerByte is the cost for each byte written. It's 1 MiB = 10 WRU by default. + // WriteCostPerByte is the cost for each byte written. It's 1 MiB = 5 WRU by default. WriteCostPerByte float64 `toml:"write-cost-per-byte" json:"write-cost-per-byte"` // WriteCPUMsCost is the cost for each millisecond of CPU time taken by a write request. // It's 1 millisecond = 1 WRU by default.