Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/GAS consumption by SN #2777

Merged
merged 5 commits into from
Mar 20, 2024
Merged

Fix/GAS consumption by SN #2777

merged 5 commits into from
Mar 20, 2024

Conversation

carpawell
Copy link
Member

No description provided.

@carpawell carpawell self-assigned this Mar 13, 2024
Copy link

codecov bot commented Mar 13, 2024

Codecov Report

Attention: Patch coverage is 0% with 25 lines in your changes are missing coverage. Please review.

Project coverage is 22.04%. Comparing base (06994b9) to head (0a35431).

Files Patch % Lines
pkg/innerring/processors/alphabet/processor.go 0.00% 14 Missing ⚠️
pkg/innerring/processors/alphabet/process_emit.go 0.00% 5 Missing ⚠️
pkg/innerring/processors/alphabet/handlers.go 0.00% 2 Missing ⚠️
pkg/morph/client/netmap/add_peer.go 0.00% 2 Missing ⚠️
cmd/neofs-node/netmap.go 0.00% 1 Missing ⚠️
pkg/morph/client/netmap/update_state.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2777   +/-   ##
=======================================
  Coverage   22.04%   22.04%           
=======================================
  Files         787      787           
  Lines       46738    46738           
=======================================
+ Hits        10302    10304    +2     
+ Misses      35553    35552    -1     
+ Partials      883      882    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@carpawell carpawell marked this pull request as ready for review March 13, 2024 20:10
pkg/morph/client/netmap/client.go Outdated Show resolved Hide resolved
cmd/neofs-node/config.go Outdated Show resolved Hide resolved
@carpawell carpawell marked this pull request as draft March 14, 2024 14:37
@carpawell carpawell force-pushed the fix/GAS-consumption-by-SN branch 5 times, most recently from e5d4bec to adca20d Compare March 20, 2024 10:10
@carpawell carpawell marked this pull request as ready for review March 20, 2024 10:16
Copy link
Contributor

@cthulhu-rider cthulhu-rider left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall LGTM

pkg/morph/client/netmap/add_peer.go Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
pkg/innerring/processors/alphabet/handlers.go Outdated Show resolved Hide resolved
CHANGELOG.md Outdated
@@ -19,6 +19,7 @@ Changelog for NeoFS Node
- IR now checks format of NULL and numeric eACL filters specified in the protocol (#2742)
- Empty filter value is now treated as `NOT_PRESENT` op by CLI `acl extended create` cmd (#2742)
- Storage nodes no longer accept objects with header larger than 16KB (#2749)
- IR sends neofs chain GAS to netmap nodes every epoch, not per a configurable blocks number (#2777)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- IR sends neofs chain GAS to netmap nodes every epoch, not per a configurable blocks number (#2777)
- IR sends NeoFS chain GAS to netmap nodes every epoch, not per configurable blocks' number (#2777)

They are not called by the Alphabet anymore, the original methods are used and
resigned.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
It is safe to be here (not used before `initNetmapService` is called) and it was
not clear why `initMorphComponents` inits anything outside the `cfgMorph`
struct.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Know about GAS distribution if something bad happens.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Do not wait for a configurable number of blocks, make it every epoch instead.
Most of the processes are bound to epochs, also `newEpoch` event may be
triggered by an external TX sender, so GAS consumption may increase while GAS
distribution is the same.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
@roman-khimov roman-khimov merged commit 9c6573c into master Mar 20, 2024
13 of 15 checks passed
@roman-khimov roman-khimov deleted the fix/GAS-consumption-by-SN branch March 20, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants