Skip to content
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

Fix profiler port #90

Merged
merged 1 commit into from
Jan 22, 2024
Merged

Fix profiler port #90

merged 1 commit into from
Jan 22, 2024

Conversation

vmallet
Copy link
Collaborator

@vmallet vmallet commented Dec 19, 2023

Description

Two endpoints should be on the profiler port rather than the main port: gc_stats and live_profiler. This is done by installing them on the default mux used by the profiler, rather than a custom mux passed on to the main server.

Once live_profiler is on the internal profiler port, we can remove the 127.0.0.1 remote-ip restriction to make it easier to use, given that the default base image is a no-login image.

Type of change

Please select all options that apply to this change:

  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Bug fix (non-breaking change which fixes an issue)
  • Documentation update

Checklist:

Confirm you have completed the following steps:

  • My code follows the style of this project.
  • I have performed a self-review of my code.
  • I have made corresponding updates to the documentation.
  • I have added/updated unit tests to cover my changes.
  • I have added/updated integration tests to cover my changes.

@@ -28,6 +28,7 @@ const (

serviceURL = "app:4443"
statusURL = "app:8080"
monitoringURL = "app:4269"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: monitoring more feels like prometheus/ metrics stuff. Should we rename to profilerURL or something like that instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely, much better. Addressed, finally!

Two endpoints should be on the profiler port rather than the main
port: `gc_stats` and `live_profiler`. This is done by installing them
on the default mux used by the profiler, rather than a custom mux
passed on to the main server.

Once `live_profiler` is on the internal profiler port, we can remove
the `127.0.0.1` remote-ip restriction to make it easier to use, given
that the default base image is a no-login image.
@agbpatro agbpatro merged commit 4184af1 into teslamotors:main Jan 22, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants