-
Notifications
You must be signed in to change notification settings - Fork 7
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 switch for autopeering or static neighbors with configuration #395
Conversation
only open if activated
Feature/autopeering
fix indent lines
x added autpoeering update for existing installation (=true) x added autpoeering to installation info
how manage peering partners when autopeering is false? |
readme update open |
can we have a short description the next time? what is flexible autopeering used for ? |
please be part of coming 'Node-Installer-Docker - Training for Collaborators' 26 Feb 2024 21:00 CET - Rules are discussed there and reviewed and set to public here |
in my opinion it's needed when you want to set up static peers (for the normal user not needed) but in certain cases maybe useful. like i said above, there are some points to clear: x added some code thats needed to run correct also for nodes, what are already installed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ℹ️questions must be answered to get a review
dba1d48
to
07b79fe
Compare
1ab887e
to
e0068ec
Compare
Sure👍 Description:
date saved 📝
With this version via Hornet's dashboard, but I'm currently testing an improved version where you store the static neighbors in the .env to use them for generating the peering.json
Should the information be written into the readme that you can use manual peers in addition to autopeering, or what do you mean? because the fact that you can set PoW, for example, is not listed either
After an update these might be lost and you would have to add the static peers again, so I'm working on an improved version, which I'll submit shortly.
If you have configured static peers and later activate autopeering, the node normally works with a combination of both peering methods. In some cases, the IF recommends a combination of both peer methods: "To minimize service distribution in case your autopeered peers are flaky, we recommend you only use autopeering if you have at least four static peers." https://wiki.iota.org/hornet/references/peering/#autopeering
👍 |
thanks for your answers. The question is whether it is enough to be able to change this setting manually via the ENV, or to suggest this setting via the installer during installation. With PoW it was necessary to actively include this as a point due to possible legal problems for the hosts. But you can also change PoW afterwards. maybe only offer the parameter as a setting via the ENV. Most people will use autopeering this way, and so there is no risk of the node not working at all after installation. then we also must prepare the peering.json to not lose this file. you don't must code this all by your wown, you should disguss this in our x-team before how we maybe solve this! |
This improved version offers a more intuitive approach to managing auto-peering and configuring static neighbors. To activate auto peering, users can simply press "E" and Enter. To disable auto peering, users can enter static neighbors by pressing the "X" key. The configurations are saved in the .env file using the format "Alias:MultiAddress, ...". When running prepare_docker.sh, the script extracts the configuration data from the .env file and converts it to the peering.json format and also handles spaces and the absence of an alias. This file is then stored in the specified folder to ensure smooth integration into the networks.
improved version with static peers in .env
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging into dev ok for further testing, There may be other small things that need to be adjusted. docker adjustments still need to be checked
⌛waiting for review |
✅external PR accepted (3 approvals necessary | PR getting 3 approvals / no changes requested) |
No description provided.