-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
--socket-reuse-port and --socket-reuse-address These two flags have bugs #16399
Comments
Thanks for raising this @coderchuan. After some quick investigation it looks as though the config file might work as follows: socket-options:
reuse-port: true Can you please check and confirm? We may need to follow-up with an improvement to documentation or adjusting the structure so it follows all other configuration values. Edit: We could perhaps update the config file example to show how |
Tested using the following config in the config file still doesn't work
|
Ahh apologies, I see you are using Edit: I believe changes from these two commits in Please feel free to raise a pull request for this if you have capacity. |
In version 3.6.x the configuration you said does work, thanks. But I think the same option name should be used in both the configuration file and the command flags, and perhaps the same parser should be used regardless of the command flags, configuration file or environment variable, so such problems can be avoided. As far as I know, the options in the configuration file in mysql will be parsed as flags in the command line and the command line options will be used in the final run . |
Hey @coderchuan - The fix to allow socket options to be configured via file has made it's way to our I tend to agree with you in relation to also aligning the naming for the configuration options so they follow a consistent standard, though please do note that would be a lower priority for now for the etcd project. You can take a look at our current priorities in our roadmap. We certainly welcome new contributors if you do have some time to take a look at raising the fix for the naming alignment. Thanks again for raising this issue 🙏🏻 |
We should just close with information that fix will be available in v3.5.10 |
Bug report
What happened?
--socket-reuse-port and --socket-reuse-address invalid in the configuration file, but are valid in the command flag
What did you expect to happen?
--socket-reuse-port and --socket-reuse-address in the command flags should behave the same as in the configuration file
Detail
Following are the command flags,both node1 and node2 listening to the same port are running normally, even though they use the same port, they work because of the --socket-reuse-port flag
The following is the content of the configuration file in yaml format, running the first one is normal, running the second one will report address already in used, even with the socket-reuse-port flag enabled
etcd --config-file=node1.yaml
etcd --config-file=node2.yaml
Etcd version
The text was updated successfully, but these errors were encountered: