gitlab-org--gitlab-foss/lib/api
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
..
helpers Added default order to UserFinder 2017-12-04 09:49:53 +00:00
v3
access_requests.rb
api.rb
api_guard.rb
award_emoji.rb
boards.rb
branches.rb
broadcast_messages.rb
circuit_breakers.rb Move the circuitbreaker check out in a separate process 2017-12-08 09:11:39 +01:00
commit_statuses.rb
commits.rb
custom_attributes_endpoints.rb
deploy_keys.rb
deployments.rb
entities.rb Use relative _path helper URLs in the GitLab UI 2017-12-07 11:19:37 -06:00
environments.rb
events.rb
features.rb
files.rb
group_milestones.rb
group_variables.rb
groups.rb
helpers.rb
internal.rb
issues.rb
job_artifacts.rb
jobs.rb
keys.rb
labels.rb
lint.rb
members.rb
merge_request_diffs.rb
merge_requests.rb
milestone_responses.rb
namespaces.rb
notes.rb
notification_settings.rb
pages_domains.rb
pagination_params.rb
pipeline_schedules.rb
pipelines.rb
project_hooks.rb
project_milestones.rb
project_snippets.rb
projects.rb The API isn't using the appropriate services for managing forks 2017-12-07 08:44:55 +00:00
projects_relation_builder.rb
protected_branches.rb CE backport of ProtectedBranches API changes 2017-12-07 11:58:50 +00:00
repositories.rb
runner.rb
runners.rb
scope.rb
services.rb
settings.rb
sidekiq_metrics.rb
snippets.rb
subscriptions.rb
system_hooks.rb
tags.rb
templates.rb
time_tracking_endpoints.rb
todos.rb
triggers.rb
users.rb Added default order to UserFinder 2017-12-04 09:49:53 +00:00
variables.rb
version.rb
wikis.rb