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

Bake in pprof data from production to optimise hot paths #7

Merged
merged 1 commit into from
Jan 3, 2024
Merged

Conversation

jspc
Copy link
Owner

@jspc jspc commented Jan 3, 2024

This data was collected by setting COLLECT_METRICS=yes on production and then running:

$ while true; do curl http://localhost:6060/debug/pprof/profile?seconds=30 --output profiles/$(date +%s).pprof; sleep 270; done

To gather a chunk of metrics every 5 mins for 30 seconds for a couple of hours. The traffic to the server came in bursts, but included lots of visits to jupyter- which is massively asset heavy and makes loads of calls to /api/v1/auth.

At some point we can start thinking about gathering data from loads of instances over many days with lots of requests; at that point this commit will be useful prep

This data was collected by setting `COLLECT_METRICS=yes` on production and then running:

```bash
$ while true; do curl http://localhost:6060/debug/pprof/profile?seconds=30 --output profiles/$(date +%s).pprof; sleep 270; done
```

To gather a chunk of metrics every 5 mins for 30 seconds for a couple of hours. The traffic to the server came in bursts, but included lots of visits to jupyter- which is massively asset heavy and makes loads of calls to /api/v1/auth.

At some point we can start thinking about gathering data from loads of instances over many days with lots of requests; at that point this commit will be useful prep
@jspc jspc merged commit f906f33 into main Jan 3, 2024
4 checks passed
@jspc jspc deleted the pgo branch January 3, 2024 20:31
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.

1 participant