Skip to content
Branch: master
Find file History
SamSaffron PERF: ensure we warm up schema cache in the entire multisite
This makes sure that all processes that fork off the master have a fully
operation schema cache.

In Rails 6, schema cache is now bolted to the connection pool. This change
ensures the cache on all pools is fully populated prior to forking.

The bolting of cache to connection pool does lead to some strange cases
where a connection can "steal" the cache from another connection, which
can cause stuff to possibly hang or deadlock. This change minimizes the risk
of this happening cause it is already primed.

We make a STRONG assumption that the schema is always the same on all sites
when we spin up a multisite cluster.
Latest commit e0a403e Sep 16, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
cloud/cloud66 DEV: enable frozen string literal on all files May 13, 2019
environments DEV: Allow custom hosts in development mode Sep 12, 2019
initializers Allow CORS combined with HTTP Auth Sep 9, 2019
locales FIX: Missing translation Sep 11, 2019
application.rb DEV: Upgrade Discourse to Rails 6 (#8083) Sep 12, 2019
boot.rb DEV: Remove logging when redis is terminated Jun 21, 2019
cdn.yml.sample Initial release of Discourse Feb 5, 2013
database.yml DEV: Make setting up of multisite DB in test env clearer. Mar 21, 2019
deploy.rb.sample enough with the malloc limit, not needed May 25, 2016
discourse.config.sample enough with the malloc limit, not needed May 25, 2016
discourse.pill.sample Improve bluepill sample config. Jan 31, 2014
discourse_defaults.conf FEATURE: improve performance of anonymous cache Sep 4, 2019
environment.rb DEV: enable frozen string literal on all files May 13, 2019
logrotate.conf Replace Clockwork with Sidetiq Aug 14, 2013
multisite.yml.production-sample warns sysadmin to rebake all the posts Aug 1, 2013
nginx.global.conf Address @Supermathie's concerns in PR1430 Sep 30, 2013
nginx.sample.conf FIX: Have nginx always pass `/uploads/short-url` requests to app. May 29, 2019
projections.json Instead of `.js.handlebars` use `.hbs` for handlebars templates Sep 26, 2014
puma.rb DEV: enable frozen string literal on all files May 13, 2019
routes.rb FEATURE: Adds a pop up that shows a more detailed score for reviewabl… Sep 4, 2019
sidekiq.yml FEATURE: introduce ultra_low priority queue Jan 17, 2019
site_settings.yml FIX: Improve protection against problematic usernames (#8097) Sep 13, 2019
spring.rb DEV: enable frozen string literal on all files May 13, 2019
thin.yml.sample Add sample Capistrano deployment files May 3, 2013
unicorn.conf.rb PERF: ensure we warm up schema cache in the entire multisite Sep 16, 2019
unicorn_launcher FIX: Increase timeout when trying to reload unicorn. Dec 4, 2018
unicorn_upstart.conf enough with the malloc limit, not needed May 25, 2016
You can’t perform that action at this time.