-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Normalize all CLI flags for port numbers #1447
Comments
Related to #1332 |
Being able to configure the host for all listeners is a requirement for us at GitLab. Would this be something you'd be willing for us to contribute? Presumably this could be done by keeping the old options (eg |
Yes, contributions are most welcome. I would advise smaller PRs for this, one per binary. |
I will pick this up. |
@annanay25 could you also check the consistency of the port numbers? Like, is the gRPC port the same for the |
The ports are consistent because they are all consolidated in a single constants file. |
I'd need to check further, but I think the admin port isn't consistent overall. |
Admin ports are different for each service but still consolidated in one file -
|
Wouldn't it be better to just have the single admin port regardless of executable - if yes, then would suggest 14269, as also used in |
It would probably be better, but not backwards compatible. |
Yeah, we would need to deprecate the other ports. |
As discussed in #2120 |
Can you please reopen this issue. The PR doesn't include the Option for --query.port, which still just uses only a port configuration. |
Thanks for flagging it, @ohdearaugustin |
I'm working on it |
@yurishkuro I just realized that all the logging is still just outputting the port and not the whole address. Should that maybe also be changed? Current
or
Suggestion
Or is that rather a topic for another Issue? (= |
Ohh I missed out there is a 3rd version of how it is logged:
|
There may be some remnants of logging just the port number, we can change them to logging the address since most of the flags already accept host-port. |
We have an inconsistency where some flags for ports only support the port number as an integer, while others as host:port string (typically defaulted to ":####"). We should probably converge onto the latter format which allows better control over which IP(s) the server will be listening, while also accepting just a number as well.
Example of two types of flags:
cc @objectiser
The text was updated successfully, but these errors were encountered: