nspcc-dev / nspcc-dev/neofs-node

Write replicated data directly to disk

Open
#4,157 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement I3 neofs-storage performance S3 U2
Dominant language
Go
Stars
38
Forks
51
Avg merge
1d 20h
Merged PRs (30d)
38

Description

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

I'm always frustrated when we're buffering whole object payload before writing it to disk. While current replication API doesn't give any other option (single message needs to be received completely), https://github.com/nspcc-dev/neofs-api/issues/416 changes it.

Describe the solution you'd like

  1. Open a temp file in target shard.
  2. Verify header.
  3. Write to this file directly, calculate checksum on the go.
  4. If it's all good, finalize the write operation, update metabase, etc.
  5. If it's not --- drop temporary file.

Describe alternatives you've considered

Not a lot of them.

Additional context

https://github.com/nspcc-dev/neofs-node/issues/3918

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

Start by tracing the current replication API and the target-shard write path, then review the linked neofs-api issue and neofs-node issue #3918. Done means replicated payloads are written to a temporary shard file while the header is verified and a checksum is calculated, then finalized with metabase updates or discarded on failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
distributed-systems
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.