forked from TrueCloudLab/frostfs-node
[#132] Use netmap cleaner in inner ring server
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
94957dd38c
commit
976ba06300
2 changed files with 12 additions and 7 deletions
|
@ -83,4 +83,7 @@ func defaultConfiguration(cfg *viper.Viper) {
|
|||
cfg.SetDefault("workers.neofs", "10")
|
||||
cfg.SetDefault("workers.container", "10")
|
||||
cfg.SetDefault("workers.alphabet", "10")
|
||||
|
||||
cfg.SetDefault("netmap_cleaner.enabled", false)
|
||||
cfg.SetDefault("netmap_cleaner.threshold", 3)
|
||||
}
|
||||
|
|
|
@ -180,6 +180,8 @@ func New(ctx context.Context, log *zap.Logger, cfg *viper.Viper) (*Server, error
|
|||
MorphClient: server.morphClient,
|
||||
EpochState: server,
|
||||
ActiveState: server,
|
||||
CleanupEnabled: cfg.GetBool("netmap_cleaner.enabled"),
|
||||
CleanupThreshold: cfg.GetUint64("netmap_cleaner.threshold"),
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in a new issue