Skip to content

fix(p2p): adjust backoff seconds to increase reconnect retries close to 24 hours (backport #4377) - #4426

Merged
mergify[bot] merged 2 commits into
v0.37.xfrom
mergify/bp/v0.37.x/pr-4377
Nov 4, 2024
Merged

mergify[bot] merged 2 commits into
v0.37.xfrom
mergify/bp/v0.37.x/pr-4377

Conversation

@mergify

@mergify mergify Bot commented Nov 4, 2024

Copy link
Copy Markdown
Contributor

close: #3519

Adjust reconnectBackOffBaseSeconds to increase reconnect retries to up 1 day (~24 hours).

The new value can be validated here: https://go.dev/play/p/k8F5rS-i24p, which will show that the total time is increased to almost 24 hours.

Initial reconnecting time: 2m8.493s
Total reconnecting time. : 23h55m56.249s

The reconnectBackOffBaseSeconds is increased by a bit over 10% (from 3.0 to 3.4 seconds) so this would not affect reconnection retries too much.

PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments

This is an automatic backport of pull request #4377 done by [Mergify](https://mergify.com).

…to 24 hours (#4377)

close: #3519

Adjust `reconnectBackOffBaseSeconds` to increase reconnect retries to up
1 day (~24 hours).

The new value can be validated here: https://go.dev/play/p/k8F5rS-i24p,
which will show that the total time is increased to almost 24 hours.

Initial reconnecting time: 2m8.493s
Total reconnecting time. : 23h55m56.249s

The `reconnectBackOffBaseSeconds` is increased by a bit over 10% (from
3.0 to 3.4 seconds) so this would not affect reconnection retries too
much.

#### PR checklist

- [ ] ~~Tests written/updated~~
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [x] Updated relevant documentation (`docs/` or `spec/`) and code
comments

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Daniel <[email protected]>
(cherry picked from commit 81f2763)

# Conflicts:
#	.changelog/v0.37.7/improvements/3519-p2p-reconnect-interval-1day.md
@mergify
mergify Bot requested a review from a team as a code owner November 4, 2024 19:59
@mergify mergify Bot added the conflicts label Nov 4, 2024
@mergify

mergify Bot commented Nov 4, 2024

Copy link
Copy Markdown
Contributor Author

Cherry-pick of 81f2763 has failed:

On branch mergify/bp/v0.37.x/pr-4377
Your branch is up to date with 'origin/v0.37.x'.

You are currently cherry-picking commit 81f276333.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   p2p/switch.go

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	added by them:   .changelog/v0.37.7/improvements/3519-p2p-reconnect-interval-1day.md

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@mergify mergify Bot assigned andynog Nov 4, 2024

@andynog andynog left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm, fixed changelog entry

@mergify
mergify Bot merged commit 162478b into v0.37.x Nov 4, 2024
@mergify
mergify Bot deleted the mergify/bp/v0.37.x/pr-4377 branch November 4, 2024 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant