Skip to content

Use existing peer count metrics loop to check for open_nat toggle #6800

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

Merged
merged 10 commits into from
Jan 15, 2025

Conversation

jking-aus
Copy link
Collaborator

@jking-aus jking-aus commented Jan 13, 2025

Issue Addressed

This addresses issue #6683

Proposed Changes

  • Add helper functions to peerinfo to get ip4 and ip6 inbound connections
  • Add threshold of 3 connections to determine if NAT is open to peer manager
  • Add update nat_open function when updating peer_count_metrics

@jking-aus jking-aus requested a review from AgeManning January 13, 2025 22:32
@jking-aus jking-aus changed the title Use peerdb to determine if libp2p nat_open metric should be toggled Use existing peer count metrics loop to check for open_nat toggle Jan 14, 2025
@jking-aus jking-aus marked this pull request as ready for review January 14, 2025 04:30
@jking-aus jking-aus requested a review from jxs as a code owner January 14, 2025 04:30
Copy link
Member

@AgeManning AgeManning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, LGTM

@AgeManning
Copy link
Member

@mergify queue

Copy link

mergify bot commented Jan 15, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 4fd8e52

mergify bot added a commit that referenced this pull request Jan 15, 2025
@mergify mergify bot merged commit 4fd8e52 into sigp:unstable Jan 15, 2025
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants