Skip to content

Rework shard logical object metric #3740

@roman-khimov

Description

@roman-khimov

Is your feature request related to a problem? Please describe.

I'm always frustrated when I think of logical object metric for shards. It's meaningless now:

  • it counts physical objects as they're added
  • it decrements them as they get inhumed

It can be thought of as a counter of available physical objects, but it fails this definition as well since expired objects won't be decremented from it until they're physically deleted by GC.

Describe the solution you'd like

Ideally it should track ROOT objects only, at least that's the way it's intuitively perceived by node users. It should also somehow react to expirations faster than GC, but that's somewhat problematic since we don't want to scan 1M of expired objects in one pass.

Describe alternatives you've considered

Keeping a broken counter doesn't look like a solution.

Additional context

#1771
#3522
#3615

Metadata

Metadata

Assignees

No one assigned

    Labels

    I3Minimal impactS3Minimally significantU4Nothing urgentenhancementImproving existing functionalityneofs-storageStorage node application issues

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions