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

refactor(core-p2p): increase network timeouts #2828

Merged
merged 3 commits into from
Jul 26, 2019
Merged

Conversation

vasild
Copy link
Contributor

@vasild vasild commented Jul 17, 2019

We don't need to be too eager to get the responses from peers in a few
seconds. In some cases we will start 25 "parallel" download jobs, each
one of which downloads 400 blocks which, if full, could account to a few
tens of megabytes per job.

A summary of what changes this PR introduces and why they were made.

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Refactor
  • Performance
  • Tests
  • Build
  • Documentation
  • Code style update
  • Continuous Integration
  • Other, please describe:

Does this PR introduce a breaking change?

  • Yes
  • No

Does this PR release a new version?

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

  • It's submitted to the develop branch, not the master branch
  • All tests are passing
  • New/updated tests are included

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

We don't need to be too eager to get the responses from peers in a few
seconds. In some cases we will start 25 "parallel" download jobs, each
one of which downloads 400 blocks which, if full, could account to a few
tens of megabytes per job.
@vasild vasild force-pushed the increase-network-timeouts branch from ca62c1e to 280e60c Compare July 17, 2019 14:52
@codecov-io
Copy link

codecov-io commented Jul 17, 2019

Codecov Report

Merging #2828 into develop will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #2828   +/-   ##
========================================
  Coverage    65.34%   65.34%           
========================================
  Files          363      363           
  Lines         8194     8194           
  Branches       392      427   +35     
========================================
  Hits          5354     5354           
+ Misses        2806     2802    -4     
- Partials        34       38    +4
Impacted Files Coverage Δ
packages/core-p2p/src/peer-communicator.ts 67.39% <ø> (-0.36%) ⬇️
packages/core-p2p/src/peer-connector.ts 86.36% <100%> (+0.64%) ⬆️
packages/core-p2p/src/network-monitor.ts 68.68% <100%> (ø) ⬆️
packages/core-p2p/src/peer-processor.ts 70.58% <100%> (ø) ⬆️
packages/core-api/src/handlers/utils.ts 76% <0%> (ø) ⬆️
packages/core-logger-winston/src/formatter.ts 41.66% <0%> (ø) ⬆️
...es/core-blockchain/src/replay/replay-blockchain.ts 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 938944b...280e60c. Read the comment docs.

@spkjp spkjp merged commit c882656 into develop Jul 26, 2019
@ghost ghost deleted the increase-network-timeouts branch July 26, 2019 02:41
vasild added a commit that referenced this pull request Aug 2, 2019
…o-db

* ArkEcosystem/core/2.6:
  release: 2.5.0-next.10 (#2852)
  fix(core-p2p): ensure payload database exists (#2851)
  release: 2.5.14
  release: 2.5.14 (#2849)
  fix(core-p2p): peer discovery limit (#2850)
  perf(core-p2p): improve transactions endpoint (#2848)
  fix(core-api): internal server error caused by invalid orderBy field (#2847)
  refactor(core-p2p): increase network timeouts (#2828)
  fix(core-api): return data directly if cache is disabled (#2831)
  fix(core-utils): add content-type header (#2840)
  perf(core-database): lookup delegates by key (#2837)
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.

3 participants