diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-10-17 17:38:40 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-10-23 11:39:00 +0300 |
commit | 08033d3d24dca65350d0b3c6a1045a511219c9c3 (patch) | |
tree | fd92e89c6afd1d21f91a2071fc491ccd980f88f5 /db | |
parent | c1ed00e81df21365bd783da8cb40957e474ed35d (diff) | |
download | gitlab-ce-08033d3d24dca65350d0b3c6a1045a511219c9c3.tar.gz |
Add new circuitbreaker properties to application_settings
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20171017145932_add_new_circuitbreaker_settings_to_application_settings.rb | 16 | ||||
-rw-r--r-- | db/schema.rb | 4 |
2 files changed, 19 insertions, 1 deletions
diff --git a/db/migrate/20171017145932_add_new_circuitbreaker_settings_to_application_settings.rb b/db/migrate/20171017145932_add_new_circuitbreaker_settings_to_application_settings.rb new file mode 100644 index 00000000000..07eb25c0b0f --- /dev/null +++ b/db/migrate/20171017145932_add_new_circuitbreaker_settings_to_application_settings.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index c2c04873d4d..530f08022be 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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| |