gitlab-org--gitlab-foss/spec/requests/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
..
v3 Allow password authentication to be disabled entirely 2017-11-23 13:16:14 +00:00
access_requests_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
award_emoji_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
boards_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
branches_spec.rb Get Project Branch API shows an helpful error message on invalid refname 2017-10-18 09:45:27 +02:00
broadcast_messages_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
circuit_breakers_spec.rb Move the circuitbreaker check out in a separate process 2017-12-08 09:11:39 +01:00
commit_statuses_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
commits_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
deploy_keys_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
deployments_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
doorkeeper_access_spec.rb Add sudo API scope 2017-11-02 11:39:03 +01:00
environments_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
events_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
features_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
files_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
group_milestones_spec.rb Change all `:empty_project` to `:project` 2017-08-02 17:47:31 -04:00
group_variables_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
groups_spec.rb Optimize API /groups/:id/projects by preloading associations 2017-12-01 18:32:12 +01:00
helpers_spec.rb Moved Exceptions to Gitlab::Auth 2017-11-17 10:02:11 +01:00
internal_spec.rb SSHUploadPack over Gitaly is now OptOut 2017-11-29 08:21:41 +01:00
issues_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
jobs_spec.rb Reduce changes 2017-11-07 22:57:58 +09:00
keys_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
labels_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
lint_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
members_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
merge_request_diffs_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
merge_requests_spec.rb Improve output for extra queries in specs 2017-11-22 15:08:55 +00:00
namespaces_spec.rb Introduce :read_namespace access policy for namespace and group 2017-11-23 17:44:05 +01:00
notes_spec.rb support ordering of project notes in notes api 2017-11-29 16:22:22 +00:00
notification_settings_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
oauth_tokens_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
pages_domains_spec.rb Add administrative endpoint to list all pages domains 2017-11-13 16:05:44 +00:00
pipeline_schedules_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
pipelines_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
project_hooks_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
project_milestones_spec.rb Change all `:empty_project` to `:project` 2017-08-02 17:47:31 -04:00
project_snippets_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
projects_spec.rb Adds Rubocop rule for line break after guard clause 2017-11-16 17:58:29 +01:00
protected_branches_spec.rb CE backport of ProtectedBranches API changes 2017-12-07 11:58:50 +00:00
repositories_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
runner_spec.rb Remove update artifacts test (it should not be needed) 2017-12-03 12:05:24 +01:00
runners_spec.rb Refactorize jobs finding logic 2017-11-28 00:36:50 +01:00
services_spec.rb Fix acceptance of username for Mattermost service update via API 2017-11-08 19:48:19 +00:00
settings_spec.rb Move the circuitbreaker check out in a separate process 2017-12-08 09:11:39 +01:00
sidekiq_metrics_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
snippets_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
system_hooks_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
tags_spec.rb Add tests for the unmodified header 2017-08-28 17:10:34 +02:00
templates_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
todos_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
triggers_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
users_spec.rb Skip confirmation user api 2017-11-21 15:47:58 +00:00
variables_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
version_spec.rb Introduce have_gitlab_http_status 2017-07-15 01:43:26 +08:00
wikis_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00