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

Limit the number of outbound peer connections #2944

Merged
merged 16 commits into from
Oct 27, 2021
Merged

Commits on Oct 27, 2021

  1. Configuration menu
    Copy the full SHA
    f140f7d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    03f3e12 View commit details
    Browse the repository at this point in the history
  3. Bias Zebra towards outbound connections

    And turn connection limits into `Config` methods.
    teor2345 committed Oct 27, 2021
    Configuration menu
    Copy the full SHA
    4fcf5a6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1f81c20 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6390788 View commit details
    Browse the repository at this point in the history
  6. Clarify connection limits

    Includes:
    - `fastmod OUTBOUND_PEER_BIAS_FRACTION OUTBOUND_PEER_BIAS_DENOMINATOR zebra*`
    - clarify connection limit documentation
    teor2345 committed Oct 27, 2021
    Configuration menu
    Copy the full SHA
    94be242 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    76dbaf2 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d3884eb View commit details
    Browse the repository at this point in the history
  9. Avoid cooperative async task starvation in the peer crawler and listener

    If we don't yield in these loops, they can run for a long time before
    tokio forces them to yield.
    teor2345 committed Oct 27, 2021
    Configuration menu
    Copy the full SHA
    df3cc1a View commit details
    Browse the repository at this point in the history
  10. Test the crawler with small connection limits

    And use the multi-threaded runtime to avoid long hangs.
    teor2345 committed Oct 27, 2021
    Configuration menu
    Copy the full SHA
    abb695c View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    ad51903 View commit details
    Browse the repository at this point in the history
  12. Avoid starvation for every connection

    Adds yields after inbound successes and initial peer connections.
    teor2345 committed Oct 27, 2021
    Configuration menu
    Copy the full SHA
    ecf51e4 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    627712a View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    4315699 View commit details
    Browse the repository at this point in the history
  15. Improve outbound tests

    teor2345 committed Oct 27, 2021
    Configuration menu
    Copy the full SHA
    0fd5259 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    0e0768c View commit details
    Browse the repository at this point in the history