mirror of
https://github.com/nspcc-dev/neofs-node.git
synced 2026-03-01 04:29:10 +00:00
Rework shard logical object metric #1554
Labels
No labels
I1
I2
I3
I4
S0
S1
S2
S3
S4
U0
U1
U2
U3
U4
blocked
bug
config
dependencies
discussion
documentation
enhancement
enhancement
epic
feature
go
good first issue
help wanted
neofs-adm
neofs-cli
neofs-cli
neofs-cli
neofs-ir
neofs-lens
neofs-storage
neofs-storage
performance
question
security
task
test
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-node#1554
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @roman-khimov on GitHub (Dec 17, 2025).
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 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
@roman-khimov commented on GitHub (Dec 24, 2025):
My proposal is to not count "logical" things at all and just follow the entities we know from the protocol and DB. "Logical" is too fragile. What we can expose is:
"Logical" is almost
phy-garbage, but it's not exactly this, so this better be left for external analysis.@roman-khimov commented on GitHub (Dec 25, 2025):
"Regular" (type-based) and "all" (as in meta 0 prefix) can be considered as well.
"Container volume bucket" needs to be reworked at the same time, it can also use some simple prefix(es?) in meta, current bucket scheme is too complex for this simple container-specific data.