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

litep2p/kad: Configure periodic network bootstrap for better throughput #4942

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Commits on Jul 4, 2024

  1. net/litep2p: Update connected peers from network backend sooner

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    a126147 View commit details
    Browse the repository at this point in the history
  2. net/litep2p: Propagate connected peers to the discovery mechanism

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    d9b57ee View commit details
    Browse the repository at this point in the history
  3. net/litep2p: Start random walks if under connected peers limit

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    3b2c5ac View commit details
    Browse the repository at this point in the history
  4. net/kad: Ensure timer moves forward

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    b61e973 View commit details
    Browse the repository at this point in the history
  5. net/kad: Keep record of inflight kad queries

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    837f196 View commit details
    Browse the repository at this point in the history
  6. net/kad: Reset kad query timer on failure

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    5610b95 View commit details
    Browse the repository at this point in the history
  7. net/kad: Downgrade logs to trace and debug

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    f5aee82 View commit details
    Browse the repository at this point in the history
  8. net/kad: Bound maximum number of queries

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

Commits on Jul 8, 2024

  1. litep2p: Rename num connected peers to num sync peers

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    4983b89 View commit details
    Browse the repository at this point in the history
  2. litep2p: Rename function to illustrate sync peers

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    32c9257 View commit details
    Browse the repository at this point in the history
  3. litep2p: Improve comment wrt num_sync_connected

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    2a6d231 View commit details
    Browse the repository at this point in the history
  4. litep2p: Extract number of distinct connected peers

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

Commits on Jul 11, 2024

  1. litep2p: Remove fetch sync peers method

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

Commits on Jul 16, 2024

  1. litep2p: Periodically perform kademlia queries instead if under number

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

Commits on Sep 17, 2024

  1. Revert "litep2p: Periodically perform kademlia queries instead if und…

    …er number"
    
    This reverts commit b6c9901.
    lexnv committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    7bf91eb View commit details
    Browse the repository at this point in the history
  2. litep2p: Change heuristic to 3 times the required discovery number

    This is mainly done to keep a healthy subset of the network
    in the node's memory and routing table. Otherwise, we may risk
    trading off discoverability with protocol performance, which
    is not entirely desirable.
    
    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    5d09d4a View commit details
    Browse the repository at this point in the history
  3. litep2p/discovery: Fallback to 2x factor for discovery

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    f676446 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0124309 View commit details
    Browse the repository at this point in the history
  5. discovery: Introduce mandatory query for discovery every 16 minutes

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    a8e1cae View commit details
    Browse the repository at this point in the history
  6. litep2p/discovery: Better logs for mandatory queries

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    fa3ce93 View commit details
    Browse the repository at this point in the history
  7. litep2p/discovery: Periodic kad queries every 30 minutes

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