forked from TrueCloudLab/frostfs-node
[#378] cmd/node: Configure tombstone lifetime
Add `TOMBSTONE_LIFETIME` configuration value of the node which is measured in NeoFS epoch and is set to 5 by default. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
b8d1144839
commit
b644589bb4
2 changed files with 19 additions and 0 deletions
|
@ -145,6 +145,8 @@ const (
|
|||
cfgGCRemoverSleepInt = "remover_sleep_interval"
|
||||
)
|
||||
|
||||
const cfgTombstoneLifetime = "tombstone_lifetime"
|
||||
|
||||
const (
|
||||
addressSize = 72 // 32 bytes oid, 32 bytes cid, 8 bytes protobuf encoding
|
||||
)
|
||||
|
@ -442,6 +444,8 @@ func defaultConfiguration(v *viper.Viper) {
|
|||
v.SetDefault(cfgObjectRangeHashPoolSize, 10)
|
||||
|
||||
v.SetDefault(cfgCtrlSvcAuthorizedKeys, []string{})
|
||||
|
||||
v.SetDefault(cfgTombstoneLifetime, 5)
|
||||
}
|
||||
|
||||
func (c *cfg) LocalAddress() *network.Address {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue