gitlab-org--gitlab-foss/spec/lib/gitlab/git
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
..
conflict Create a Gitlab::Git submodule for conlict-related files 2017-10-12 22:03:15 -03:00
storage Move the circuitbreaker check out in a separate process 2017-12-08 09:11:39 +01:00
attributes_spec.rb Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
blame_spec.rb Replaces `tag: true` into `:tag` in the specs 2017-10-07 13:57:54 +02:00
blob_snippet_spec.rb
blob_spec.rb Detect changes to LFS pointers for pruning and integrity check 2017-11-01 16:41:05 +00:00
branch_spec.rb Fetch the merged branches at once 2017-10-27 15:55:08 +00:00
commit_spec.rb Migrate Gitlab::Git::Commit.shas_with_signatures 2017-12-05 14:43:46 +01:00
compare_spec.rb Make gl_repository a G::G::Repository attribute 2017-08-23 10:45:20 +02:00
diff_collection_spec.rb Adds Rubocop rule for line break after guard clause 2017-11-16 17:58:29 +01:00
diff_spec.rb Revert "Increase diff limits to 100 KB for collapse and 200 KB overall" 2017-10-02 13:54:40 +01:00
env_spec.rb Add Gitlab::Git::Env.to_env_hash 2017-10-16 13:19:44 +02:00
gitmodules_parser_spec.rb repository: index submodules by path 2017-06-16 14:37:13 -04:00
hook_spec.rb Add username as GL_USERNAME in hooks (http) 2017-09-29 18:12:03 -04:00
hooks_service_spec.rb Fix the incorrect value being used to set GL_USERNAME on hooks 2017-10-25 14:01:57 -03:00
index_spec.rb Make gl_repository a G::G::Repository attribute 2017-08-23 10:45:20 +02:00
lfs_changes_spec.rb Gitlab::Git::RevList and LfsChanges use lazy popen 2017-11-06 10:20:14 +00:00
popen_spec.rb Gitlab::Git::Popen can lazily hand output to a block 2017-11-06 10:20:13 +00:00
remote_repository_spec.rb Remove Rugged::Repository#empty? 2017-12-07 15:33:30 +00:00
repository_spec.rb Remove Rugged::Repository#empty? 2017-12-07 15:33:30 +00:00
rev_list_spec.rb Gitlab::Git::RevList and LfsChanges use lazy popen 2017-11-06 10:20:14 +00:00
tag_spec.rb Replaces `tag: true` into `:tag` in the specs 2017-10-07 13:57:54 +02:00
tree_spec.rb Implement fix for n+1 issue on `flatten_tree` helper 2017-09-06 17:47:25 -03:00
user_spec.rb Fix encoding bugs in Gitlab::Git::User 2017-11-23 10:48:57 +00:00
util_spec.rb