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

improve peer discovery time, avoid connect again on connection handler #568

Merged
merged 5 commits into from
Aug 14, 2024

Conversation

paulo-ocean
Copy link
Contributor

@paulo-ocean paulo-ocean commented Jul 30, 2024

Fixes #

Changes proposed in this PR:
Try to decrease the P2P connections overload by fine tuning some settings:

  • increase P2P connection default discovery interval (from 1 sec to 3 secs)
  • provide auto-dial configurable interval (default is 5 seconds)
  • avoid extra pubsub connection on peer connection handler/listener

@paulo-ocean paulo-ocean changed the title improve peer discovery time, avoid connect on connection improve peer discovery time, avoid connect again on connection handler Jul 30, 2024
@paulo-ocean paulo-ocean self-assigned this Jul 30, 2024
@paulo-ocean paulo-ocean marked this pull request as ready for review August 6, 2024 17:05
Copy link
Member

@bogdanfazakas bogdanfazakas left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@jamiehewitt15 jamiehewitt15 left a comment

Choose a reason for hiding this comment

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

Looks good to me

@alexcos20 alexcos20 merged commit 4febd84 into develop Aug 14, 2024
8 checks passed
@alexcos20 alexcos20 deleted the issue-optimize-cpu branch August 14, 2024 12:53
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.

4 participants