Add frostfs-cli action to show nodes having an object #426
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#426
Loading…
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?
Problem
There are cases where we need to find nodes storing a particular object. It seems
frostfs-cli
would be a right place to implement this functionality.Proposed solution
Add
frostfs-cli
action to show a list of nodes that may have an object passed as argument by address. There also should be an option that makesfrostfs-cli
to go through the list andHEAD
for the object with--ttl 1
, returning the list of nodes actually having the requested object.Alternatives
We could do it by writing a script that takes placement vector for container and then loops over it with
HEAD
, but that's not very comfortable.Either
container nodes --oid
or a separateobject nodes
seems legit.I would go with a separate command -- it has different flags and works differently.
If needed, we can add networkless flag for HRW sort for object placement.