cinder-volume can't be inited with large number of volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
Serhii Rusin |
Bug Description
the initialization of cinder-volume process has a performance issue when there a large number of volume in the backend.
With our production test, if there are one hundred thousand volumes in one backend, it will cost more than 4G memory during the process initialization. And the process will be always down because of the timeout.
We fount that the problem may be happened here:
https:/
It firstly get all the volumes from the db, and then calculate and check them one by one.
Is it possible taht we can calculate it with the SQL command at one step to avoid memory occupancy.
Then make the "ensure_export" action be an asynchronous operation to avoid blocking the process?
Changed in cinder: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in cinder: | |
assignee: | nobody → Dinesh Bhor (dinesh-bhor) |
Changed in cinder: | |
assignee: | nobody → Serhii Rusin (serhii-rusin) |
Dinesh, are you still working on this? Any ideas for a solution.