]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Enhance deletion efficiency when backup init host
authorwanghao <wanghao749@huawei.com>
Tue, 28 Jul 2015 08:30:39 +0000 (16:30 +0800)
committerwanghao <wanghao749@huawei.com>
Tue, 4 Aug 2015 03:19:00 +0000 (11:19 +0800)
commitc81249107ffd5fc8fed2c6438b9521892789363f
treeb7f6d9407b0f4b9d7c5c21181bd9091f4402eb8f
parent371ab03b4170f39d40ee73831c77aef4a6c6c238
Enhance deletion efficiency when backup init host

Now in backup init host, if the status of backup is 'deleting', cinder
will delete those backups sequentially. So if the deletion process is
slow, the backup service thread will be blocked.

Similar to volume deletion, the threadpool could be used to
offload all the pending backup delete operations.

Add CONF.backup_service_inithost_offload to specify if using threadpool.

DocImpact
Implements: blueprint enhance-deletion-efficiency-when-backup-init-host

Change-Id: If9d9e454cdd48669db6e4b8d96f340bbb6f99fad
cinder/backup/manager.py
cinder/manager.py
cinder/tests/unit/test_backup.py
cinder/volume/manager.py