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

network/strategy: Backoff and ban overloaded peers to avoid submitting the same request multiple times #5029

Merged
merged 25 commits into from
Aug 5, 2024

Commits on Jul 15, 2024

  1. strategy: Introduce LRU persistent disconnection state

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    04c613a View commit details
    Browse the repository at this point in the history
  2. strategy/warp: Use persistent disconnection state

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    edf3490 View commit details
    Browse the repository at this point in the history
  3. strategy/state: Use persistent disconnection state

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    7991025 View commit details
    Browse the repository at this point in the history
  4. strategy/chain_sync: Use persistent disconnection state

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    6663731 View commit details
    Browse the repository at this point in the history
  5. strategy/tests: Check behavior of persistent peers state

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    a836a3e View commit details
    Browse the repository at this point in the history
  6. strategy: Forget peer state after backing off for more than 15 minutes

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    3466701 View commit details
    Browse the repository at this point in the history
  7. strategy/tests: Check backed off peers are not scheduled for requests

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    e6d2ee3 View commit details
    Browse the repository at this point in the history
  8. strategy: Align backoff time with protocol timeout time

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    79d1850 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2024

  1. strategy/persistent: Adjust constants, report bans and add logs

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    3e51525 View commit details
    Browse the repository at this point in the history
  2. strategy: Ban peers reported by the persistent store

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    62f4054 View commit details
    Browse the repository at this point in the history
  3. sync/tests: Fix clippy

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    02c26e0 View commit details
    Browse the repository at this point in the history
  4. sync/tests: Remove clone

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    a6e76aa View commit details
    Browse the repository at this point in the history
  5. sync/tests: Cargo fmt

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    2ac8fcd View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2024

  1. sync/tests: Fix clippy

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    2b7faba View commit details
    Browse the repository at this point in the history
  2. sync/tests: Adjust state management expectations

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    177dec9 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2024

  1. Merge remote-tracking branch 'origin/master' into lexnv/fix-multiple-…

    …block-req-banned-timeout
    lexnv committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    97bfaab View commit details
    Browse the repository at this point in the history
  2. peer-state: Rename disconnected peer state and make it private

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    6efa4d1 View commit details
    Browse the repository at this point in the history
  3. peer-state: Rename to disconnected peers for clarity

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    48534c2 View commit details
    Browse the repository at this point in the history
  4. peer-state: Rename remove to on_disconnect

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    0a47d68 View commit details
    Browse the repository at this point in the history
  5. engine: Disconnect logs

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    d993f59 View commit details
    Browse the repository at this point in the history
  6. disconnected-peers: Address feedback

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    bfc32b9 View commit details
    Browse the repository at this point in the history
  7. Add PR doc for better documentation

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    7f90cee View commit details
    Browse the repository at this point in the history
  8. disconnected-peers: Fix test

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    c0d0f3c View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2024

  1. disconnected-peers: Raname to on_disconnect_during_request

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    16e55cf View commit details
    Browse the repository at this point in the history
  2. strategy: Adjust testing

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    00a5cb3 View commit details
    Browse the repository at this point in the history