Skip to content

Max Peer Count Not Respected On Seed Node #3302

Closed as not planned
Closed as not planned

Description

@gaia

image

Osmosis node has been restarted. It IS running as a seed. Does seed mode mean

a) unlimited peers?
b) nodes using it as a seed will show up under peer count?

Activity

  1. added
    bug
    needs-triage
    on Jun 18, 2024
  2. cason commented on Jun 19, 2024

    @cason

    This can be the cause: #486

  3. cason commented on Jun 19, 2024

    @cason

    But if this is a seed node, it is expected to open short-term connection to all addresses it knows in order to retrieve information about other nodes in the network. It also does that to test if peer addresses are valid.

    In the same routine, and with the same periodicity, it disconnects to peers from which it is connected by some time:

    func (r *Reactor) attemptDisconnects() {
    for _, peer := range r.Switch.Peers().Copy() {
    if peer.Status().Duration < r.config.SeedDisconnectWaitPeriod {
    continue
    }
    if peer.IsPersistent() {
    continue
    }
    r.Switch.StopPeerGracefully(peer)
    }
    }

    Where SeedDisconnectWaitPeriod is of 28 hours, for some reason I don't know.

  4. cason commented on Jun 19, 2024

    @cason

    Anyway, the question here is not what is observed in a snapshot, a single point of measurement, but how it evolves over time.

    max_num_inbound_peers is respected by the seed node. Nodes, however, connect to a seed, ask for address, then disconnect.

    max_num_outbound_peers is not used by seed nodes.

  5. faddat commented on Jun 23, 2024

    @faddat
    Contributor

    Just a quick question here, I thought that we had gotten rid of the concept of a seed node?

    Or is that still a planned future thing?

  6. cason commented on Jun 24, 2024

    @cason

    Did you see #309?

  7. assigned and unassigned on Jul 2, 2024
  8. cason commented on Jul 2, 2024

    @cason

    @gaia: what is the expected behavior here? That the number of outgoing connections (max_num_outbound_peers) is respected by the seed node?

  9. self-assigned this
    on Jul 2, 2024
  10. added
    needs-information
    and removed
    needs-triage
    on Jul 2, 2024
  11. gaia commented on Jul 2, 2024

    @gaia
    Author

    @gaia: what is the expected behavior here? That the number of outgoing connections (max_num_outbound_peers) is respected by the seed node?

    if a separate seed node app won't be available, yes, that and respecting also max_num_inbound_peers.

  12. cason commented on Jul 3, 2024

    @cason

    if a separate seed node app won't be available, yes, that and respecting also max_num_inbound_peers.

    Any evidence it does not respect this one? It should.

  13. melekes commented on Sep 5, 2024

    @melekes
    Collaborator

    Hey @gaia, we didn't hear back, so I'm going to close this. Please don't hesitate to reach out if you still have any concerns.

  14. moved this from Todo to Done in CometBFTon Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugneeds-informationp2p

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions