Skip to content

Add a Temporary DCDO Flag for Unicorn-Specific Middleware - #50886

Merged
Hamms merged 1 commit into
stagingfrom
add-dcdo-flag-for-unicorn-middleware
Mar 30, 2023
Merged

Add a Temporary DCDO Flag for Unicorn-Specific Middleware#50886
Hamms merged 1 commit into
stagingfrom
add-dcdo-flag-for-unicorn-middleware

Conversation

@Hamms

@Hamms Hamms commented Mar 22, 2023

Copy link
Copy Markdown
Contributor

So we can evaluate whether or not we still benefit from it without needing a new build.

Links

See thread at https://codedotorg.slack.com/archives/C03CK49G9/p1679344334036199 for more context

Testing story

Tested locally with a puts statement to verify that this block can successfully be turned on and off.

Follow-up work

Once this is in production, we should at some point prior to a daily peak flip this flag and restart the web application services so we can check the effects on frontend memory usage.

So we can evaluate whether or not we still benefit from it without needing a new build.

See thread at https://codedotorg.slack.com/archives/C03CK49G9/p1679344334036199 for more context
@Hamms
Hamms marked this pull request as ready for review March 22, 2023 19:12
@Hamms
Hamms requested a review from a team March 22, 2023 19:12
@Hamms Hamms added the Ruby Update Everything related to work to update the version of Ruby our codebase runs on label Mar 22, 2023
Comment thread dashboard/config.ru
# evaluate whether or not this still has a performance impact now that we're no
# longer using unicorn.
# TODO: either remove the flag or this entire block, depending on the results
unless DCDO.get('oobgc_unicorn_middleware_disabled', false)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we typically use Gatekeeper for boolean (“feature flag”) decisions, and DCDO more for configuration settings that have numeric or string datatypes? This should work either way.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We typically use Gatekeeper for the more advanced query logic it provides, which allows us to conditionally enable or disable things based on request parameters. It's also generally a lot more complex; DCDO is the simple option, and is more applicable for these kind of global config options

@Hamms
Hamms merged commit d3197a7 into staging Mar 30, 2023
@Hamms
Hamms deleted the add-dcdo-flag-for-unicorn-middleware branch March 30, 2023 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ruby Update Everything related to work to update the version of Ruby our codebase runs on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants