diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-11-05 01:54:24 +0300 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-11-10 20:38:11 +0300 |
commit | b95216aabadb336e4ed8cdc01f69e873f47f10d0 (patch) | |
tree | c139f0dc542e178a83a70e2c49ef187099a1606c /db | |
parent | 9e2964c15a7d387e46e25c83afa478c12a856d77 (diff) |
Allow the Sidekiq queues to throttle and the factor by which to throttle them to be configurable
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20161103191444_add_sidekiq_throttling_to_application_settings.rb | 2 | ||||
-rw-r--r-- | db/schema.rb | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/db/migrate/20161103191444_add_sidekiq_throttling_to_application_settings.rb b/db/migrate/20161103191444_add_sidekiq_throttling_to_application_settings.rb index e2839219fb7..e644a174964 100644 --- a/db/migrate/20161103191444_add_sidekiq_throttling_to_application_settings.rb +++ b/db/migrate/20161103191444_add_sidekiq_throttling_to_application_settings.rb @@ -25,5 +25,7 @@ class AddSidekiqThrottlingToApplicationSettings < ActiveRecord::Migration def change add_column :application_settings, :sidekiq_throttling_enabled, :boolean, default: false + add_column :application_settings, :sidekiq_throttling_queues, :string + add_column :application_settings, :sidekiq_throttling_factor, :decimal end end diff --git a/db/schema.rb b/db/schema.rb index 31d01403508..666b54690c1 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -99,6 +99,8 @@ ActiveRecord::Schema.define(version: 20161106185620) do t.text "shared_runners_text_html" t.text "after_sign_up_text_html" t.boolean "sidekiq_throttling_enabled", default: false + t.string "sidekiq_throttling_queues" + t.decimal "sidekiq_throttling_factor" t.boolean "housekeeping_enabled", default: true, null: false t.boolean "housekeeping_bitmaps_enabled", default: true, null: false t.integer "housekeeping_incremental_repack_period", default: 10, null: false |