nspcc-dev / nspcc-dev/neofs-api

Specify max nodes instead of CBF in placement policy

Open
#390 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature I3 S4 U4
Dominant language
Makefile
Stars
11
Forks
15
Avg merge
2d 8h
Merged PRs (30d)
9

Description

Is your feature request related to a problem? Please describe.

Selectors use CBF to have some flexibility over the node count used for container. For REP containers it generally worked fine, with a typical "REP 3" policy we could have 3-6-9-12-etc max nodes used with the minimum of 3 (typically, depends on selector of course). However EC containers require more nodes in general, real policies start with 4/2 and end up somewhere in 12/4 range. Which means that CBF applied there makes the node count grow from 16 right into 32 for the first step. Which works, but can be suboptimal for containers used via S3 (SEARCH).

Describe the solution you'd like

Have some way to specify the maximum number of nodes used without CBF, like "NODES 20" to use from whatever minimum number of nodes to 20.

Describe alternatives you've considered

Keep things as is?

Additional context

Related to #383.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by locating the placement policy definition and reviewing related issue #383 to understand the existing CBF behavior. Define how an NODES limit applies from the policy's minimum node count, then verify that the resulting policy representation and documentation express the requested maximum clearly.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.