Add frostfs-cli action to show nodes having an object #426

Closed
opened 2023-06-05 10:35:29 +00:00 by realloc · 1 comment
Owner

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 makes frostfs-cli to go through the list and HEAD 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.

## 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 makes `frostfs-cli` to go through the list and `HEAD` 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.
realloc added the
help wanted
frostfs-cli
good first issue
triage
labels 2023-06-05 10:35:29 +00:00
Owner

Either container nodes --oid or a separate object 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.

Either `container nodes --oid` or a separate `object 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.
dstepanov-yadro self-assigned this 2023-06-14 10:03:54 +00:00
fyrchik added this to the v0.37.0 milestone 2023-06-14 13:19:33 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#426
No description provided.