forked from TrueCloudLab/frostfs-node
[#2246] node: Allow to configure tombsone lifetime
Currently, DELETE service sets tombstone expiration epoch to `current epoch + 5`. This works less than ideal in private networks where an epoch can be e.g. 10 minutes. In this case, after a node is unavailable for more than 1 hour, already deleted objects have a chance to reappear. After this commit tombstone lifetime can be configured. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
6fd88a036f
commit
351fdd9fa2
9 changed files with 44 additions and 6 deletions
|
@ -472,6 +472,8 @@ type cfgObject struct {
|
|||
pool cfgObjectRoutines
|
||||
|
||||
cfgLocalStorage cfgLocalStorage
|
||||
|
||||
tombstoneLifetime uint64
|
||||
}
|
||||
|
||||
type cfgNotifications struct {
|
||||
|
@ -598,7 +600,8 @@ func initCfg(appCfg *config.Config) *cfg {
|
|||
proxyScriptHash: contractsconfig.Proxy(appCfg),
|
||||
}
|
||||
c.cfgObject = cfgObject{
|
||||
pool: initObjectPool(appCfg),
|
||||
pool: initObjectPool(appCfg),
|
||||
tombstoneLifetime: objectconfig.TombstoneLifetime(appCfg),
|
||||
}
|
||||
c.cfgReputation = cfgReputation{
|
||||
scriptHash: contractsconfig.Reputation(appCfg),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue