Skip to content

Avoid getting rate limited and banned by our peers #7558

Description

@nflaig

This issue is noticeable on devnets and was very apparent when trying to sync holesky in the unfinalized state (commonly referred to as "holesky rescue"). The main problem seems to be that if we just have a single peer (or maybe two) to sync data from we spam them too much causing us to being rate limited and eventually banned. This can be very harmful when trying to sync a network with not a lot of healthy nodes.

Seems like this is an issue with most / all client as peers, even Lodestar itself bans other Lodestar nodes doing this

Feb-28 12:58:17.367[network]         debug: Do not serve request due to rate limit peerId=16Uiu2HAmMtMosQ83JyLjAmhYMP5jT16VZtAFMMR1mSGhUEStmsKL
Feb-28 12:58:18.410[network]         debug: Do not serve request due to rate limit peerId=16Uiu2HAmMtMosQ83JyLjAmhYMP5jT16VZtAFMMR1mSGhUEStmsKL
Feb-28 12:58:28.751[network]         debug: Do not serve request due to rate limit peerId=16Uiu2HAmMtMosQ83JyLjAmhYMP5jT16VZtAFMMR1mSGhUEStmsKL

Based on these observations it's pretty clear to me that we are not requesting data correctly, see related comment on discord

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedThe author indicates that additional help is wanted.meta-bugIssues that identify a bug and require a fix.prio-mediumResolve this some time soon (tm).

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions