gitlab-org--gitlab-foss/app/models
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
..
blob_viewer move lib/ci/gitlab_ci_yaml_processor.rb into lib/gitlab/ci/yaml_processor.rb 2017-09-12 22:32:02 +03:00
ci Change feature flag to ci_disable_validates_dependencies to enable it as default 2017-12-07 23:17:46 +09:00
clusters Merge branch '35616-move-k8-to-cluster-page' into cluster-page-with-list-clusters 2017-12-05 13:29:41 +01:00
concerns Allow commenting on individual commits inside an MR 2017-12-07 09:01:19 -05:00
conversational_development_index
cycle_analytics
diff_viewer
hooks
issue
members
merge_request
network Detect n+1 issues involving Gitaly 2017-09-19 10:55:37 +00:00
project_services Check diff between KubernetesService and Platforms::Kubernetes. Synchronize again. 2017-11-28 20:47:59 +09:00
protected_branch
protected_tag Deduplicate protected ref human_access_levels 2017-11-24 13:47:03 +00:00
storage Refactor Hashed Storage migration to add additional migration steps 2017-11-23 14:19:36 +01:00
.gitkeep
ability.rb
abuse_report.rb
appearance.rb Add custom brand text on new project pages 2017-12-04 17:22:59 +01:00
application_setting.rb Move the circuitbreaker check out in a separate process 2017-12-08 09:11:39 +01:00
audit_event.rb
award_emoji.rb
blob.rb Batchload blobs for diff generation 2017-11-21 13:53:26 +01:00
board.rb
broadcast_message.rb
chat_name.rb
chat_team.rb
commit.rb add support for the commit reference filter 2017-12-07 09:01:37 -05:00
commit_collection.rb Optimise getting the pipeline status of commits 2017-11-16 16:01:14 +01:00
commit_range.rb Fix link text from group context 2017-11-23 12:59:14 +01:00
commit_status.rb Fail jobs if its dependency is missing 2017-12-06 15:53:59 +09:00
compare.rb
container_repository.rb
cycle_analytics.rb
dashboard_milestone.rb
deploy_key.rb created services for keys 2017-09-15 15:35:24 +00:00
deploy_keys_project.rb
deployment.rb
diff_discussion.rb Allow commenting on individual commits inside an MR 2017-12-07 09:01:19 -05:00
diff_note.rb Allow commenting on individual commits inside an MR 2017-12-07 09:01:19 -05:00
directly_addressed_user.rb
discussion.rb Allow commenting on individual commits inside an MR 2017-12-07 09:01:19 -05:00
discussion_note.rb
email.rb Use fuzzy search with minimum length of 3 characters where appropriate 2017-11-27 11:29:40 +01:00
environment.rb Replce kubernetes_service and deployment_service to deployment_platform 2017-11-28 20:47:59 +09:00
epic.rb Refactor banzai to support referencing from group context 2017-12-06 19:16:22 +01:00
event.rb Remove redundant WHERE from event queries 2017-09-20 13:40:25 +02:00
event_collection.rb
external_issue.rb Fix link text from group context 2017-11-23 12:59:14 +01:00
fork_network.rb Unlink a project from a fork network when it's source was deleted. 2017-11-03 12:17:59 +01:00
fork_network_member.rb Delete the fork network when removing the last membership 2017-11-17 12:58:15 +01:00
forked_project_link.rb
generic_commit_status.rb
global_label.rb
global_milestone.rb Move total time spend calculation to milestoneish 2017-11-11 16:47:39 +02:00
gpg_key.rb Invalidate GpgSignatures associated to GpgKeySubkeys when revoking the GpgKey 2017-10-05 08:26:02 -05:00
gpg_key_subkey.rb Remove no longer required methods 2017-10-05 08:26:02 -05:00
gpg_signature.rb Fix error with GPG signature updater when commit was deleted 2017-10-07 10:47:53 -05:00
group.rb Support uploads for groups 2017-12-07 12:27:52 +01:00
group_custom_attribute.rb Support custom attributes on groups 2017-11-06 10:51:50 +01:00
group_label.rb
group_milestone.rb
guest.rb
identity.rb Changing OAuth lookup to be case insensitive 2017-11-17 14:24:25 +00:00
individual_note_discussion.rb
instance_configuration.rb Added ssh fingerprint, gitlab ci and pages information in an instance configuration page 2017-10-25 23:51:26 +03:00
issue.rb Throttle the number of UPDATEs triggered by touch 2017-12-06 15:59:37 +01:00
issue_assignee.rb
issue_collection.rb
key.rb Consistently schedule Sidekiq jobs 2017-12-05 11:59:39 +01:00
label.rb Fix link text from group context 2017-11-23 12:59:14 +01:00
label_link.rb
label_priority.rb
legacy_diff_discussion.rb Commenting on image diffs 2017-10-07 04:25:17 +00:00
legacy_diff_note.rb
lfs_object.rb Handle forks in Gitlab::Checks::LfsIntegrity 2017-11-09 13:44:20 +00:00
lfs_objects_project.rb
list.rb
member.rb Consistently schedule Sidekiq jobs 2017-12-05 11:59:39 +01:00
merge_request.rb adding view and feature specs 2017-12-07 09:06:59 -05:00
merge_request_diff.rb Remove serialised diff and commit columns 2017-11-28 16:13:40 +00:00
merge_request_diff_commit.rb Handle large values on MergeRequestDiffCommit dates 2017-10-30 21:13:39 -03:00
merge_request_diff_file.rb
merge_requests_closing_issues.rb
milestone.rb [CE-Backport] Fix board filter when milestone is predefined 2017-12-05 15:34:31 -02:00
namespace.rb Cache the forks in a namespace in the RequestStore 2017-12-04 17:43:48 +01:00
note.rb cache the Note#commit method 2017-12-07 09:02:55 -05:00
notification_recipient.rb
notification_setting.rb
oauth_access_grant.rb
oauth_access_token.rb Update specs for sudo behavior 2017-11-02 11:39:03 +01:00
out_of_context_discussion.rb
pages_domain.rb Adds Rubocop rule for line break after guard clause 2017-11-16 17:58:29 +01:00
personal_access_token.rb Fix new personal access token showing up in a flash message 2017-12-07 16:22:37 -06:00
personal_snippet.rb
project.rb Remove Rugged::Repository#empty? 2017-12-07 15:33:30 +00:00
project_authorization.rb
project_auto_devops.rb Add warning message if domain or cluster are not configured 2017-09-19 15:32:31 +02:00
project_custom_attribute.rb Support custom attributes on projects 2017-11-06 10:51:46 +01:00
project_feature.rb Fix project feature being deleted when updating project with invalid visibility level 2017-09-12 18:10:34 -03:00
project_group_link.rb
project_import_data.rb
project_label.rb
project_snippet.rb
project_statistics.rb Revert "Rename job_archive|metadata to artifacts_archive|metadata" 2017-12-03 12:04:49 +01:00
project_team.rb Resolve "Display member role per project" 2017-12-07 09:11:41 +00:00
project_wiki.rb Resolve "Performance issues when loading large number of wiki pages" 2017-11-17 11:48:32 +00:00
protectable_dropdown.rb
protected_branch.rb Only load branch names for protected branch checks 2017-11-29 16:54:54 +01:00
protected_ref_matcher.rb
protected_tag.rb Only load branch names for protected branch checks 2017-11-29 16:54:54 +01:00
push_event.rb Remove redundant WHERE from event queries 2017-09-20 13:40:25 +02:00
push_event_payload.rb
readme_blob.rb
redirect_route.rb
release.rb
repository.rb Remove Rugged::Repository#empty? 2017-12-07 15:33:30 +00:00
route.rb
security_event.rb
sent_notification.rb Don't show an "Unsubscribe" link in snippet comment notifications 2017-10-09 15:03:05 +02:00
service.rb Consistently schedule Sidekiq jobs 2017-12-05 11:59:39 +01:00
snippet.rb Use fuzzy search with minimum length of 3 characters where appropriate 2017-11-27 11:29:40 +01:00
snippet_blob.rb
spam_log.rb
subscription.rb
system_note_metadata.rb add the missing spec 2017-11-20 13:00:35 -05:00
timelog.rb
todo.rb
tree.rb
trending_project.rb
u2f_registration.rb
upload.rb
user.rb Resolve "Display member role per project" 2017-12-07 09:11:41 +00:00
user_agent_detail.rb
user_custom_attribute.rb Support custom attributes on users 2017-09-28 16:49:42 +00:00
user_synced_attributes_metadata.rb
users_star_project.rb
wiki_directory.rb
wiki_page.rb Resolve "Performance issues when loading large number of wiki pages" 2017-11-17 11:48:32 +00:00