cinder/releasenotes/notes/tpool-size-11121f78df24db39.yaml
Gorka Eguileor e570436d1c Allow configuring tpool size
The RBD driver and almost all backup drivers rely heavily on eventlet's
tpool, which has a default of 20 threads, which will be too low.

Currently the only way to change this is using the environmental
variable EVENTLET_THREADPOOL_SIZE, which isn't very clean for the
openstack services.

This patch adds the possibility of setting specific values for each
backend and for the backup service, and increases the default for the
backup service from 20 threads to 60.

The backup service can be configured under [DEFAULT] section with option
backup_native_threads_pool_size, and the backends under their specific
sections with backend_native_threads_pool_size.

Change-Id: I5d7c1e8d7f1c6592ded1f74eea42d76ab523df92
Closes-Bug: #1754354
2018-03-08 15:59:29 +01:00

16 lines
771 B
YAML

---
features:
- Adds support to configure the size of the native thread pool used by the
cinder volume and backup services. For the backup we use
`backup_native_threads_pool_size` in the `[DEFAULT]` section, and for the
backends we use `backend_native_threads_pool_size` in the driver section.
fixes:
- Fixes concurrency issue on backups, where only 20 native threads could be
concurrently be executed. Now default will be 60, and can be changed with
`backup_native_threads_pool_size`.
- RBD driver can have bottlenecks if too many slow operations are happening
at the same time (for example many huge volume deletions), we can now use
the `backend_native_threads_pool_size` option in the RBD driver section to
resolve the issue.