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

node, ir: set default dial timeout to 1 minute #2963

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

End-rey
Copy link
Contributor

@End-rey End-rey commented Oct 7, 2024

Closes #2891.

Question about these timeouts:

  • in node:
    • apiclient.stream_timeout
    • policer.head_timeout
  • in inner ring:
    • audit.timeout.*

Should I do the same for them?

Copy link

codecov bot commented Oct 7, 2024

Codecov Report

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

Project coverage is 23.47%. Comparing base (530db9a) to head (ca8c9b5).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
cmd/neofs-ir/defaults.go 0.00% 2 Missing ⚠️
pkg/innerring/internal/blockchain/blockchain.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2963      +/-   ##
==========================================
- Coverage   23.47%   23.47%   -0.01%     
==========================================
  Files         776      776              
  Lines       46558    46558              
==========================================
- Hits        10930    10928       -2     
- Misses      34763    34764       +1     
- Partials      865      866       +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.

Stream timeout should be OK to raise. Policer is a bit more tricky, some 10-15s is OK for it, but 1m seems to be too much. Audit better be left as is.

@End-rey End-rey force-pushed the 2891-change-connection-timeouts branch 2 times, most recently from 023b430 to 5b25511 Compare October 8, 2024 08:04
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.

Stream timeout should be OK to raise

@roman-khimov the only problem I know about such timeouts raising is bad failover performance: once a node is down too many routines are waiting for too long before they think the node is dead.

Head/audit timeouts are also ok to me to be kept

CHANGELOG.md Show resolved Hide resolved
@roman-khimov
Copy link
Member

raising is bad failover performance

Sure. Can be adjusted for fast networks. Mainnet/testnet are likely to be OK with 1m.

@End-rey End-rey force-pushed the 2891-change-connection-timeouts branch 2 times, most recently from 72f1149 to 9c757d4 Compare October 8, 2024 15:24
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.

Otherwise ok

CHANGELOG.md Outdated
@@ -40,6 +41,11 @@ introduced in version 0.22.3 and support for binary keys was removed from
other components in 0.33.0 and 0.37.0. Please migrate to wallets (see 0.37.0
notes) if you've not done it previously.

Increace default timeout for dialing connections in node: `morph.dial_timeout`,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Increace default timeout for dialing connections in node: `morph.dial_timeout`,
Increase default timeout for dialing connections in node: `morph.dial_timeout`,

Set default timeout for dialing connections in node:
- `morph.dial_timeout`
- `apiclient.dial_timout`
- `apiclient.stream_timeout`
and in inner ring:
- `morph.dial_timout`
- `morph.consensus.p2p.dial_timout`
- `mainnet.dial_timout`
to 1 minute.
Update example configs and docs.

Closes #2891.

Signed-off-by: Andrey Butusov <andrey@nspcc.io>
@End-rey End-rey force-pushed the 2891-change-connection-timeouts branch from 9c757d4 to ca8c9b5 Compare October 8, 2024 20:08
@roman-khimov roman-khimov merged commit 113da9a into master Oct 9, 2024
18 of 21 checks passed
@roman-khimov roman-khimov deleted the 2891-change-connection-timeouts branch October 9, 2024 19:43
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.

default timeouts are extremely aggressive
3 participants