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 --use-special-header to gateway benchmark (PRIME-651) #1136

Conversation

vdavid
Copy link
Contributor

@vdavid vdavid commented Dec 16, 2024

Helps with https://linear.app/sourcegraph/issue/PRIME-651/look-into-cloudflare-settings-for-gateway-vs-dotcom-streaming.

  • Uses the benchmarking endpoints that were introduced in feat/gateway: Add src gateway benchmark command #1124 and its cousin PRs to sg/sg
  • Adds a flag that sets the special header cody-core-gc-test that Security enabled for us which disables WAF (Web Application Firewall) headers for the request that contains it.

The goal is to run this on a few dev machines to learn more about how Cloudflare might affect latency.

Created this PR to store and share the code we used for this particular benchmarking.

Test plan

I'm only merging this into my other branch with PR #1138.

@vdavid vdavid requested a review from slimsag December 16, 2024 12:18
@vdavid vdavid force-pushed the dv/gateway-benchmark-use-cody-core-gc-test-header branch from dcbc1ad to 05795e8 Compare December 19, 2024 13:15
@vdavid vdavid changed the base branch from main to dv/gateway-benchmark-stream December 19, 2024 15:04
@vdavid vdavid marked this pull request as ready for review December 20, 2024 09:11
@vdavid vdavid requested a review from a team as a code owner December 20, 2024 09:11
@vdavid vdavid merged commit d580f23 into dv/gateway-benchmark-stream Dec 20, 2024
9 of 10 checks passed
@vdavid vdavid deleted the dv/gateway-benchmark-use-cody-core-gc-test-header branch December 20, 2024 09:11
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