gitlab-org--gitlab-foss/lib
Bob Van Landuyt f1ae1e39ce Move the circuitbreaker check out in a separate process
Moving the check out of the general requests, makes sure we don't have
any slowdown in the regular requests.

To keep the process performing this checks small, the check is still
performed inside a unicorn. But that is called from a process running
on the same server.

Because the checks are now done outside normal request, we can have a
simpler failure strategy:

The check is now performed in the background every
`circuitbreaker_check_interval`. Failures are logged in redis. The
failures are reset when the check succeeds. Per check we will try
`circuitbreaker_access_retries` times within
`circuitbreaker_storage_timeout` seconds.

When the number of failures exceeds
`circuitbreaker_failure_count_threshold`, we will block access to the
storage.

After `failure_reset_time` of no checks, we will clear the stored
failures. This could happen when the process that performs the checks
is not running.
2017-12-08 09:11:39 +01:00
..
api Move the circuitbreaker check out in a separate process 2017-12-08 09:11:39 +01:00
assets
backup Remove Rugged::Repository#empty? 2017-12-07 15:33:30 +00:00
banzai fix the missing reference to #references_per_project 2017-12-07 10:35:56 -05:00
bitbucket
constraints
container_registry
declarative_policy Adds Rubocop rule for line break after guard clause 2017-11-16 17:58:29 +01:00
generators/rails/post_deployment_migration
gitlab Move the circuitbreaker check out in a separate process 2017-12-08 09:11:39 +01:00
google_api Refactor GCP Client#user_agent_header to use #tap 2017-12-04 13:43:45 +01:00
haml_lint Adds Rubocop rule for line break after guard clause 2017-11-16 17:58:29 +01:00
json_web_token
mattermost
microsoft_teams
omni_auth/strategies
peek
rouge/formatters Add support of Mermaid 2017-11-22 14:12:04 +11:00
rspec_flaky
support
system_check Adds Rubocop rule for line break after guard clause 2017-11-16 17:58:29 +01:00
tasks Merge branch 'hashed-storage-attachments-migration-path' into 'master' 2017-11-28 12:46:39 +00:00
additional_email_headers_interceptor.rb
after_commit_queue.rb Consistently schedule Sidekiq jobs 2017-12-05 11:59:39 +01:00
banzai.rb
declarative_policy.rb Adds Rubocop rule for line break after guard clause 2017-11-16 17:58:29 +01:00
disable_email_interceptor.rb
email_template_interceptor.rb
event_filter.rb
expand_variables.rb
extracts_path.rb
feature.rb Cache feature names in RequestStore 2017-11-07 22:28:57 +01:00
file_size_validator.rb Adds Rubocop rule for line break after guard clause 2017-11-16 17:58:29 +01:00
gitlab.rb
gt_one_coercion.rb
milestone_array.rb
repository_cache.rb
static_model.rb
system_check.rb
unfold_form.rb
uploaded_file.rb
version_check.rb