-
Notifications
You must be signed in to change notification settings - Fork 38
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
Conversation
Codecov ReportAttention: Patch coverage is
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. |
There was a problem hiding this 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.
023b430
to
5b25511
Compare
There was a problem hiding this 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
Sure. Can be adjusted for fast networks. Mainnet/testnet are likely to be OK with 1m. |
72f1149
to
9c757d4
Compare
There was a problem hiding this 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`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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>
9c757d4
to
ca8c9b5
Compare
Closes #2891.
Question about these timeouts:
apiclient.stream_timeout
policer.head_timeout
audit.timeout.*
Should I do the same for them?