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

Add additional listen-addr #334

Merged
merged 3 commits into from
Apr 4, 2024
Merged

Add additional listen-addr #334

merged 3 commits into from
Apr 4, 2024

Conversation

BulatSaif
Copy link
Contributor

@BulatSaif BulatSaif commented Mar 20, 2024

TCP does not listen and dial on the same port by default. When an external node reports our address, the Libp2p replaces the dial port with the listen port and pushes it into the DHT see documentation. The listen port is an internal port and different from what we set in --public-addr. Pods can change the external IP, resulting in many invalid addresses in the DHT. All automatically discovered addresses are incorrect, and only the one provided in --public-addr will route directly to the POD.

In this PR, we add an additional --listen-addr with the same port as in --public-addr, which will increase the number of correct records in the DHT. This behavior is disabled by default. To enable it, set .Values.node.perNodeServices.setPublicAddressToExternalIp.autodiscoveryFix to true.

We have another fix paritytech/polkadot-sdk#3757 which keeps --public-addr first in DHT and it don't get lost among incorrect addresses.

issue: paritytech/polkadot-sdk#3519 (comment)

@BulatSaif BulatSaif self-assigned this Mar 20, 2024
…ic-addr

# Conflicts:
#	charts/node/Chart.yaml
#	charts/node/README.md
@BulatSaif BulatSaif merged commit f50d7f0 into main Apr 4, 2024
3 checks passed
@BulatSaif BulatSaif deleted the bs/public-addr branch April 4, 2024 11:56
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