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

control: set the highest priority for control service. #2645

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

AliceInHunterland
Copy link
Contributor

Closes: #2585.

Copy link

codecov bot commented Nov 14, 2023

Codecov Report

Attention: 36 lines in your changes are missing coverage. Please review.

Comparison is base (3fcafec) 30.62% compared to head (5815476) 30.61%.

Files Patch % Lines
pkg/innerring/innerring.go 0.00% 32 Missing ⚠️
cmd/neofs-node/control.go 0.00% 3 Missing ⚠️
cmd/neofs-node/main.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2645      +/-   ##
==========================================
- Coverage   30.62%   30.61%   -0.01%     
==========================================
  Files         406      406              
  Lines       30070    30070              
==========================================
- Hits         9208     9206       -2     
- Misses      20085    20086       +1     
- Partials      777      778       +1     

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

Copy link
Member

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

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

IR?

Copy link
Member

@carpawell carpawell left a comment

Choose a reason for hiding this comment

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

The commit starts with "conrtol".

@AliceInHunterland AliceInHunterland changed the title conrtol: set the highest priority for control service. control: set the highest priority for control service. Nov 16, 2023
@roman-khimov
Copy link
Member

Needs to be rebased.

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.

commit header ends with a period. It is unclear from the text that priority has been maxed for both SN and IR

CHANGELOG.md Outdated
@@ -26,6 +26,7 @@ Changelog for NeoFS Node
- IR uses internal LOCODE DB from Go package (#2610)
- Contract group for the committee is no longer registered/used in the Sidechain auto-deployment (#2642)
- The priority of metrics service is increased (#2428)
- The priority of running control service is increased (#2585)
Copy link
Contributor

Choose a reason for hiding this comment

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

if set the highest priority, then maximized

grpcControlSrv := grpc.NewServer()
control.RegisterControlServiceServer(grpcControlSrv, controlSvc)

lis, err := net.Listen("tcp", controlSvcEndpoint)
Copy link
Contributor

Choose a reason for hiding this comment

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

err is lost

btw best to start listening immediately after parsing the keys in order to respond to an error as early as possible, and only if everything is ok - init gRPC server

Control ports should be initialised and start served first of all. The
priority of running control service is maximized for both SN and IR.

Closes: #2585.

Signed-off-by: Ekaterina Pavlova <[email protected]>
@roman-khimov roman-khimov merged commit 67c5b02 into master Nov 20, 2023
7 of 10 checks passed
@roman-khimov roman-khimov deleted the control_service branch November 20, 2023 14:29
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.

control port must be opened and handled on start
4 participants