-
Notifications
You must be signed in to change notification settings - Fork 535
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
Change default server.http-listen-port
to 8080
#871
Conversation
server.http-listen-port
to 8080server.http-listen-port
to 8080
This is now ready for review. |
cc @jdbaldry @osg-grafana since this will be a significant breaking change for the migration guide |
We should change the |
d9c552a
to
778506f
Compare
operations/mimir/common.libsonnet
Outdated
containerPort.newNamed(name='http-metrics', containerPort=80), | ||
containerPort.newNamed(name='http-metrics', containerPort=8080), |
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.
I'm unsure what will happen with these changes after merge. Will they get immediately pulled into deployment tools and applied? If so, that will break all current deployments. Can someone confirm this won't happen?
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.
It won't happen without someone's approval. However we still need to support port 80 until we switch all our deployed images to use port 8080 (and not just Mimir's image but GEM's image too). It may be best to have a config option for this.
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.
after the weekly call we found out that what the image exposes isn't tied to what the container can listen on. So this shouldn't be a concern anymore, correct @pstibrany?
To my understanding we should still create a jsonnet "revert" PR to set the server port to 80. So once this PR (871) is merged and deployed, the change in the default port wouldn't affect the running services. I'll get started on that PR.
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.
I don't see -server.http-listen-port
being overridden in our jsonnet, so restarted components will actually start using new default port 8080. I think we want to update all (!) component definitions in jsonnet to keep using port 80 via this command line flag. This should also be reflected in named ports definitions. (I'd suggest to make port 80 configurable via field in _config
).
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.
added a similar config in 117b90c
thanks for spotting this @pstibrany, I found a few other mentions of port I'm unsure about some of the changes though. Left a comment in operations/mimir/common.libsonnet |
37691cb
to
117b90c
Compare
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.
Changes LGTM. Thanks for addressing my feedback! Before merging I would be glad if @pstibrany could take another look, since he already commented on the PR.
cee276d
to
8a96513
Compare
Signed-off-by: Dimitar Dimitrov <[email protected]>
Signed-off-by: Dimitar Dimitrov <[email protected]>
Signed-off-by: Dimitar Dimitrov <[email protected]>
Signed-off-by: Dimitar Dimitrov <[email protected]>
Signed-off-by: Dimitar Dimitrov <[email protected]>
Signed-off-by: Dimitar Dimitrov <[email protected]>
Signed-off-by: Dimitar Dimitrov <[email protected]>
Signed-off-by: Dimitar Dimitrov <[email protected]>
Signed-off-by: Dimitar Dimitrov <[email protected]>
Signed-off-by: Dimitar Dimitrov <[email protected]>
8a96513
to
fa71733
Compare
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.
Good job!
This complements the change by #871 in backward_compatibility.go Signed-off-by: Dimitar Dimitrov <[email protected]>
This complements the change by #871 in backward_compatibility.go Signed-off-by: Dimitar Dimitrov <[email protected]>
Signed-off-by: Dimitar Dimitrov [email protected]
What this PR does:
Sets the default
-server.http-listen-port
to 8080.Which issue(s) this PR fixes:
Fixes https://github.com/grafana/mimir-squad/issues/481
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]