Commit b8e3b435 authored by Vladimir Shushlin's avatar Vladimir Shushlin

Run pages background migration slower

We're afraid of performance impact on self-managed instances
parent 8eb2cef0
...@@ -6,8 +6,8 @@ class ScheduleMigratePagesToZipStorage < ActiveRecord::Migration[6.0] ...@@ -6,8 +6,8 @@ class ScheduleMigratePagesToZipStorage < ActiveRecord::Migration[6.0]
DOWNTIME = false DOWNTIME = false
MIGRATION = 'MigratePagesToZipStorage' MIGRATION = 'MigratePagesToZipStorage'
BATCH_SIZE = 100 BATCH_SIZE = 10
BATCH_TIME = 6.minutes BATCH_TIME = 5.minutes
disable_ddl_transaction! disable_ddl_transaction!
......
...@@ -38,7 +38,7 @@ RSpec.describe ScheduleMigratePagesToZipStorage, :sidekiq_might_not_need_inline, ...@@ -38,7 +38,7 @@ RSpec.describe ScheduleMigratePagesToZipStorage, :sidekiq_might_not_need_inline,
migrate! migrate!
expect(migration_name).to be_scheduled_delayed_migration(6.minutes, first_id, last_id) expect(migration_name).to be_scheduled_delayed_migration(5.minutes, first_id, last_id)
expect(BackgroundMigrationWorker.jobs.size).to eq(1) expect(BackgroundMigrationWorker.jobs.size).to eq(1)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment