forked from TrueCloudLab/frostfs-node
[#109] cmd/neofs-node: Activate Replicator
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
f66c7958e7
commit
334e0e6f0f
2 changed files with 19 additions and 0 deletions
|
@ -84,6 +84,8 @@ const (
|
|||
cfgPolicerWorkScope = "policer.work_scope"
|
||||
cfgPolicerExpRate = "policer.expansion_rate"
|
||||
cfgPolicerHeadTimeout = "policer.head_timeout"
|
||||
|
||||
cfgReplicatorPutTimeout = "replicator.put_timeout"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -328,6 +330,8 @@ func defaultConfiguration(v *viper.Viper) {
|
|||
v.SetDefault(cfgPolicerWorkScope, 100)
|
||||
v.SetDefault(cfgPolicerExpRate, 10) // in %
|
||||
v.SetDefault(cfgPolicerHeadTimeout, 5*time.Second)
|
||||
|
||||
v.SetDefault(cfgReplicatorPutTimeout, 5*time.Second)
|
||||
}
|
||||
|
||||
func (c *cfg) LocalAddress() *network.Address {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue