mirror of
https://github.com/nspcc-dev/neofs-node.git
synced 2026-03-01 04:29:10 +00:00
Share functionality of placement building between components #753
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#753
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 @cthulhu-rider on GitHub (Sep 20, 2022).
Object placement is build using
netmap.Sourceandcontainer.Sourcein most scenarios. Also there are some similar cases when we use same placement approach, e.g. shard evacuation introduced here and remote placement builder.I propose to concentrate all placement functionality in single shared code space in order to easily reuse it in new tasks.
@fyrchik commented on GitHub (Sep 20, 2022):
With a proper interface, tree server can use this component too.
@cthulhu-rider commented on GitHub (Mar 5, 2024):
caching is very meaningful for app performance and efficiency. Some attempts were made, but they are buggy, so lets also fix them
suggest to w8 4 prelim work finish
@roman-khimov commented on GitHub (Oct 2, 2024):
Do we have anything left here?
@cthulhu-rider commented on GitHub (Oct 3, 2024):
for SN:
ControlService.Evacuatenspcc-dev/neofs-node@f33949e195/pkg/services/control/server/evacuate.go (L65-L78)nspcc-dev/neofs-node@f33949e195/pkg/services/object/acl/v2/classifier.go (L130)nspcc-dev/neofs-node@f33949e195/cmd/neofs-node/container.go (L410-L427)nspcc-dev/neofs-node@f33949e195/pkg/services/tree/container.go (L35-L60)object ACL should definitely use shared policy component. Evacuator is rarely used, but better to use it too. Tree and estimations... i wouldnt bother them tbh
finally, whole package should be purged
IR and CLI also apply storage policies to network maps for various needs. Caching doesn't help them, so I would leave everything as is
P.S. refs can be found by
.ContainerNodes(@cthulhu-rider commented on GitHub (Jun 10, 2025):
minus tree service #3270