-
- Downloads
Implement backoff for the circuitbreaker
The circuitbreaker now has 2 failure modes: - Backing off: This will raise the `Gitlab::Git::Storage::Failing` exception. Access to the shard is blocked temporarily. - Circuit broken: This will raise the `Gitlab::Git::Storage::CircuitBroken` exception. Access to the shard will be blocked until the failures are reset.
parent
1881d4f8
No related branches found
No related tags found
Showing
- app/helpers/storage_health_helper.rb 2 additions, 3 deletionsapp/helpers/storage_health_helper.rb
- lib/gitlab/git/storage.rb 1 addition, 0 deletionslib/gitlab/git/storage.rb
- lib/gitlab/git/storage/circuit_breaker.rb 19 additions, 9 deletionslib/gitlab/git/storage/circuit_breaker.rb
- lib/gitlab/git/storage/circuit_breaker_settings.rb 8 additions, 0 deletionslib/gitlab/git/storage/circuit_breaker_settings.rb
- lib/gitlab/git/storage/null_circuit_breaker.rb 4 additions, 0 deletionslib/gitlab/git/storage/null_circuit_breaker.rb
- spec/lib/gitlab/git/storage/circuit_breaker_spec.rb 93 additions, 166 deletionsspec/lib/gitlab/git/storage/circuit_breaker_spec.rb
- spec/lib/gitlab/git/storage/null_circuit_breaker_spec.rb 1 addition, 12 deletionsspec/lib/gitlab/git/storage/null_circuit_breaker_spec.rb
Please register or sign in to comment