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

Enable increasing load from switchboard #27236

Merged
merged 1 commit into from
Jun 20, 2024
Merged

Enable increasing load from switchboard #27236

merged 1 commit into from
Jun 20, 2024

Conversation

mxdvl
Copy link
Contributor

@mxdvl mxdvl commented Jun 19, 2024

What is the value of this and can you measure success?

Enable load testing of our system without a deploy.
Part of guardian/dotcom-rendering#11670

What does this change?

Conditinally set the Surrogate-Control based on a switch

Checklist

Co-authored-by: Anna Beddow <[email protected]>
Co-authored-by: Jamie B <[email protected]>
Co-authored-by: George B <[email protected]>
Co-authored-by: Ioanna Kokkini <[email protected]>
Co-authored-by: Daniel Clifton <[email protected]>
Co-authored-by: Dom Lander <[email protected]>
@mxdvl mxdvl requested a review from a team as a code owner June 19, 2024 16:12
Comment on lines +116 to +119
val surrogateMaxAge = cacheTime.surrogateSeconds match {
case Some(age) if LongCacheSwitch.isSwitchedOn => age
case _ => cacheTime.cacheSeconds
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Refactored for readability

@mxdvl mxdvl merged commit 4bb8610 into main Jun 20, 2024
6 checks passed
@mxdvl mxdvl deleted the mob/load-testing branch June 20, 2024 14:34
@prout-bot
Copy link
Collaborator

Seen on ADMIN-PROD (merged by @mxdvl 10 minutes and 59 seconds ago)

@prout-bot
Copy link
Collaborator

Seen on FRONTS-PROD (merged by @mxdvl 11 minutes and 10 seconds ago)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants