Add new circuitbreaker properties to application_settings
This commit is contained in:
parent
c1ed00e81d
commit
08033d3d24
3 changed files with 25 additions and 1 deletions
6
changelogs/unreleased/bvl-circuitbreaker-backoff.yml
Normal file
6
changelogs/unreleased/bvl-circuitbreaker-backoff.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: Make the circuitbreaker more robust by adding higher thresholds, and multiple
|
||||
access attempts.
|
||||
merge_request: 14933
|
||||
author:
|
||||
type: fixed
|
|
@ -0,0 +1,16 @@
|
|||
class AddNewCircuitbreakerSettingsToApplicationSettings < ActiveRecord::Migration
|
||||
include Gitlab::Database::MigrationHelpers
|
||||
|
||||
DOWNTIME = false
|
||||
|
||||
def change
|
||||
add_column :application_settings,
|
||||
:circuitbreaker_access_retries,
|
||||
:integer,
|
||||
default: 3
|
||||
add_column :application_settings,
|
||||
:circuitbreaker_backoff_threshold,
|
||||
:integer,
|
||||
default: 80
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20171012101043) do
|
||||
ActiveRecord::Schema.define(version: 20171017145932) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -138,6 +138,8 @@ ActiveRecord::Schema.define(version: 20171012101043) do
|
|||
t.integer "circuitbreaker_failure_wait_time", default: 30
|
||||
t.integer "circuitbreaker_failure_reset_time", default: 1800
|
||||
t.integer "circuitbreaker_storage_timeout", default: 30
|
||||
t.integer "circuitbreaker_access_retries", default: 3
|
||||
t.integer "circuitbreaker_backoff_threshold", default: 80
|
||||
end
|
||||
|
||||
create_table "audit_events", force: :cascade do |t|
|
||||
|
|
Loading…
Reference in a new issue