gitlab-org--gitlab-foss/spec
Stan Hu 2db7c5762b Cache Flipper feature flags in L1 and L2 caches
In https://gitlab.com/gitlab-com/gl-infra/production/issues/928, we saw
a significant amount of network traffic and CPU usage due to Redis
checking feature flags via Flipper. Since these flags are hit with every
request, the overhead becomes significant. To alleviate Redis overhead,
we now cache the data in the following way:

* L1: A thread-local memory store for 1 minute
* L2: Redis for 1 hour
2019-07-03 16:22:50 -07:00
..
bin
config
controllers Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce 2019-07-03 11:55:56 +02:00
db Backport the EE schema and migrations to CE 2019-06-17 17:09:05 +02:00
dependencies
factories Show upcoming status for releases 2019-07-03 09:12:15 +00:00
features Merge branch 'limit-amount-of-tests-returned' into 'master' 2019-07-03 21:47:32 +00:00
finders Show upcoming status for releases 2019-07-03 09:12:15 +00:00
fixtures Show upcoming status for releases 2019-07-03 09:12:15 +00:00
frontend Move error_tracking_frontend specs to Jest 2019-07-03 14:13:08 +00:00
graphql Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce 2019-07-03 11:55:56 +02:00
haml_lint/linter
helpers Merge branch '82-add-new-onboarding-to-flipper-a-b-testing' into 'master' 2019-07-01 21:48:03 +00:00
initializers Remove ignored circuit_breaker columns 2019-06-28 10:30:40 +02:00
javascripts Move error_tracking_frontend specs to Jest 2019-07-03 14:13:08 +00:00
lib Cache Flipper feature flags in L1 and L2 caches 2019-07-03 16:22:50 -07:00
mailers Remove group in notification email subject 2019-07-01 16:23:11 +08:00
migrations Change occurrence of Sidekiq::Testing.inline! 2019-07-03 20:02:17 +00:00
models Fix order-dependent spec failure in appearance_spec.rb 2019-07-03 11:27:16 -07:00
policies Merge branch '62826-graphql-emoji-mutations' into 'master' 2019-06-28 07:48:29 +00:00
presenters GraphQL mutations for add, remove and toggle emoji 2019-06-28 12:03:33 +12:00
rack_servers
requests Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce 2019-07-03 11:55:56 +02:00
routing Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq 2019-07-03 11:55:42 +02:00
rubocop Add a cop to ensure we authorize GraphQL types 2019-06-21 13:00:50 +02:00
serializers Limit amount of JUnit tests returned 2019-07-03 22:27:14 +02:00
services Merge branch 'issue/55953' into 'master' 2019-07-03 12:20:09 +00:00
sidekiq/cron
support Merge branch 'limit-amount-of-tests-returned' into 'master' 2019-07-03 21:47:32 +00:00
tasks Merge branch 'test_schema_version_check_directly' into 'master' 2019-07-01 13:18:54 +00:00
uploaders Fix order-dependent spec failure in appearance_spec.rb 2019-07-03 11:27:16 -07:00
validators Fix color validation regex 2019-06-25 09:06:26 +08:00
views Replace 'JIRA' with 'Jira' 2019-06-28 13:25:56 +00:00
workers Includes logic to persist namespace statistics 2019-07-02 14:44:39 +00:00
factories_spec.rb
fast_spec_helper.rb Backport gitlab.yml.example from EE 2019-06-20 14:51:49 +02:00
rails_helper.rb
rake_helper.rb
simplecov_env.rb
spec_helper.rb Add a memory cache local to the thread to reduce Redis load 2019-07-01 22:23:01 -07:00