forked from TrueCloudLab/frostfs-node
[#493] node: Abolish some of the Policer's configurations
Make work scope and expansion rate the app-side constants since Policer independently regulates the amount of work performed. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
80ef4492c1
commit
10308101df
2 changed files with 2 additions and 10 deletions
|
@ -194,12 +194,8 @@ func initObjectService(c *cfg) {
|
|||
policer.WithPlacementBuilder(
|
||||
placement.NewNetworkMapSourceBuilder(c.cfgObject.netMapStorage),
|
||||
),
|
||||
policer.WithWorkScope(
|
||||
c.viper.GetInt(cfgPolicerWorkScope),
|
||||
),
|
||||
policer.WithExpansionRate(
|
||||
c.viper.GetInt(cfgPolicerExpRate),
|
||||
),
|
||||
policer.WithWorkScope(100),
|
||||
policer.WithExpansionRate(10),
|
||||
policer.WithTrigger(ch),
|
||||
policer.WithRemoteHeader(
|
||||
headsvc.NewRemoteHeader(keyStorage, clientConstructor),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue