Skip to content

Commit

Permalink
Adjust the WRU coefficients to smaller values
Browse files Browse the repository at this point in the history
Signed-off-by: JmPotato <[email protected]>
  • Loading branch information
JmPotato committed Jan 13, 2023
1 parent 2971a2f commit e275c0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/mcs/resource_manager/client/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand All @@ -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.
Expand Down

0 comments on commit e275c0d

Please sign in to comment.