gitlab-org--gitlab-foss/lib
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
..
api Add Grafana to Admin > Monitoring menu when enabled 2019-07-03 16:09:51 +00:00
assets
backup
banzai Merge branch 'asciidoc-syntax-highlighting' into 'master' 2019-07-03 13:03:08 +00:00
bitbucket
bitbucket_server Fix typos in the whole gitlab-ce project 2019-05-20 14:11:44 +00:00
constraints
container_registry
declarative_policy Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
feature Add GetCommitSignatures feature flag 2019-06-28 13:44:01 -03:00
flowdock
generators/rails/post_deployment_migration
gitaly Add Gitaly data to the usage ping 2019-06-20 15:26:56 +02:00
gitlab Cache PerformanceBar.allowed_user_ids list locally and in Redis 2019-07-03 18:47:30 +02:00
google_api
json_web_token
mattermost Remove Content-Type override for Mattermost OAuth login 2019-05-16 13:57:55 -04:00
microsoft_teams
object_storage
omni_auth/strategies
peek Add Redis call details in Peek performance bar 2019-07-02 21:55:34 -07:00
quality Revert "Merge branch 'revert-04c3c6dd' into 'master'" 2019-05-22 21:47:32 +02:00
rouge
rspec_flaky
safe_zip
sentry
serializers
support Replace Unicorn with web server in the init.d script [ci skip] 2019-05-17 17:00:29 +00:00
system_check Sanitize LDAP output in Rake tasks 2019-06-21 05:49:56 -05:00
tasks Prefer offline install for yarn 2019-07-02 16:29:47 +02:00
after_commit_queue.rb Refactor inside_transaction? to Gitlab::Database 2019-06-25 09:15:35 +00:00
backup.rb
banzai.rb
carrier_wave_string_file.rb
declarative_policy.rb
event_filter.rb
expand_variables.rb
extracts_path.rb Validate refs used in controllers don't have spaces 2019-04-14 15:26:25 -07:00
feature.rb Cache Flipper feature flags in L1 and L2 caches 2019-07-03 16:22:50 -07:00
file_size_validator.rb
forever.rb
gitlab.rb Add Gitlab.ee method 2019-06-26 11:29:41 -05:00
gt_one_coercion.rb
milestone_array.rb
mysql_zero_date.rb
static_model.rb
system_check.rb
uploaded_file.rb
version_check.rb