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

Add docker compose setup for encoder + add pprof config #724

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dmanc
Copy link
Contributor

@dmanc dmanc commented Aug 23, 2024

Why are these changes needed?

Adds docker compose setup for the encoder. In addition, added pprof endpoint to the encoder server so we can analyze the CPU usage at runtime.

Checks

  • I've made sure the lint is passing in this PR.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@dmanc dmanc marked this pull request as ready for review August 23, 2024 23:45
@dmanc dmanc requested a review from jianoaix August 23, 2024 23:45
@@ -28,6 +28,14 @@ func NewEncoderGRPCServer(config Config, _logger logging.Logger) (*EncoderGRPCSe
logger.Info("Enabled metrics for Encoder", "socket", httpSocket)
}

// Start pprof server
pprofProfiler := encoder.NewPprofProfiler(config.PprofConfig.HTTPPort, logger)
if config.PprofConfig.EnablePprof {
Copy link
Contributor

Choose a reason for hiding this comment

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

Did we get some understanding of the impact of enabling pprof from the test?

Copy link
Contributor

Choose a reason for hiding this comment

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

Does this file fit at the top level?

Copy link
Contributor

Choose a reason for hiding this comment

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

Should grafana be placed under some top-level directory? Maybe tools?

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