-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat: add a CLI flag for secondary nodes #4029
Conversation
Codecov Report
... and 8 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Don't know why those checks did not pass. I didn't change the parts of code where the clippy gives errors. |
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.
c2174ca
to
a710c7d
Compare
In the meanwhile I rebased, fixed a little error, add test and a better doc comment. |
I changed the This way you can start a flexible number of nodes on the same computer and port numbers do not conflict with each other. I choose a personal approach on selecting port numbers based on instance number. Let me know WDYT. |
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.
this looks good, some small nits left, thank you for the patience so far!
No problems, I'm happy to help. I fixed them. For the max value of instances I choose 200 just to have a "good" whole number. Actual max value is 218 (following my adjustments of port numbers) but I thought 200 was a better number to have. |
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.
lgtm
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Closes #3924
This PR is an attempt to solve that issue.
It solves it in a fixed way by:
secondary
flag in the Cli.secondary
flag also in thenode
command.discovery_port
,listener_port
,auth_rpc
,auth_port
,http_port
,ws_port
are changed to a different and fixed number.Let me know what do you think.
The other option I have is to make it dynamic so that the software makes a scan on the already used ports and chooses different ones.
I am not sure how to do it in that dynamic way right now but I can try if it's something you want to have.