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 express, pre-express scripts to high scale script list #18536

Merged
merged 1 commit into from Oct 20, 2017

Conversation

jeremydstone
Copy link

Per @tanyaparker, adding these scripts to our list of high scale scripts for scale mode switches.

@@ -31,6 +31,8 @@ def self.scale_mode_scripts
coursed
coursee
coursef
express
pre-express
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this supposed to include all of our Hour of Code tutorials or did we exclude our high ticket Hour of Code tutorials on purpose?

High traffic tutorials:

  • mc
  • minecraft
  • flappy
  • starwars
  • starwarsblocks
  • frozen
  • hourofcode

Not so high traffic tutorials that are missing from the list:

  • gumball
  • sports
  • basketball
  • text-compression
  • hoc-encryption

Copy link
Author

Choose a reason for hiding this comment

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

@tanyaparker the other scripts come from a different list, cached_scripts. That list and this one (that I added express and pre-express to) are combined here:

  def self.scale_mode_scripts
    cached_scripts + %w(
      20-hour
      course1
      ...

(https://github.com/code-dot-org/code-dot-org/blob/staging/lib/cdo/script_config.rb#L22)

cached_scripts comes from CACHED_SCRIPTS_MAP here: https://github.com/code-dot-org/code-dot-org/blob/staging/cookbooks/cdo-varnish/libraries/http_cache.rb#L19

That contains all the scripts you were asking about except text-compression and hoc-compression. I suspect because those are not used at high scale during HOC. Since we haven't marked those two as scale scripts in the past I think we're OK on that.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good!

@jeremydstone jeremydstone merged commit 2d6e0ba into staging Oct 20, 2017
@jeremydstone jeremydstone deleted the add_express_scripts_to_scale branch October 20, 2017 21:28
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.

None yet

3 participants