Support EC+REP policies #1509

Open
opened 2025-12-28 17:35:40 +00:00 by sami · 0 comments
Owner

Originally created by @cthulhu-rider on GitHub (Sep 22, 2025).

with #3570, EC policies became available, but mutually exclusive w/ REP ones. It can make sense to support container policies having both EC and REP encoding/placement rules

Describe the solution you'd like

Now

drop IR condition

mostly, code is already ok to work w/ both lists. But not everywhere. Two definite places i know are
nspcc-dev/neofs-node@186972553e/pkg/services/object/put/distributed.go (L174-L198)

nspcc-dev/neofs-node@186972553e/pkg/services/policer/check.go (L121-L125)

for analysis, look for https://pkg.go.dev/github.com/nspcc-dev/neofs-sdk-go/netmap#NetMap.ContainerNodes calls

Then

explore possible optimizations for rules' processing. For example, handling GET is likely more efficient via REP rules initially

Additional context

#526

Originally created by @cthulhu-rider on GitHub (Sep 22, 2025). ## Is your feature request related to a problem? Please describe. with #3570, EC policies became available, but mutually exclusive w/ REP ones. It can make sense to support container policies having both EC and REP encoding/placement rules ## Describe the solution you'd like ### Now drop IR condition mostly, code is already ok to work w/ both lists. But not everywhere. Two definite places i know are https://github.com/nspcc-dev/neofs-node/blob/186972553e2dbdbe8924b9e47d718d8318511f2c/pkg/services/object/put/distributed.go#L174-L198 https://github.com/nspcc-dev/neofs-node/blob/186972553e2dbdbe8924b9e47d718d8318511f2c/pkg/services/policer/check.go#L121-L125 for analysis, look for https://pkg.go.dev/github.com/nspcc-dev/neofs-sdk-go/netmap#NetMap.ContainerNodes calls ### Then explore possible optimizations for rules' processing. For example, handling GET is likely more efficient via REP rules initially ## Additional context #526
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
nspcc-dev/neofs-node#1509
No description provided.