-
Notifications
You must be signed in to change notification settings - Fork 341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OpenStack] VM Import Controller uses too much memory during QCOW2 conversion phase #6674
Comments
- Create the volume image using RAW disk format instead of QCOW2, so no conversion is required after downloading. This will reduce memory consumption. - Fix a variable name shadowing issue. - Improve logging. Related to: harvester/harvester#6674 Signed-off-by: Volker Theile <[email protected]>
- Create the volume image using RAW disk format instead of QCOW2, so no conversion is required after downloading. This will reduce memory consumption. - Download and write the image file in chunks (32k by default), so the whole file doesn't need to be downloaded completely and stored in memory before it is written to disk. - Fix a variable name shadowing issue. - Improve logging. Related to: harvester/harvester#6674 Signed-off-by: Volker Theile <[email protected]>
- Create the volume image using RAW disk format instead of QCOW2, so no conversion is required after downloading. This will reduce memory consumption. - Download and write the image file in chunks (32KiB by default), so the whole file doesn't need to be downloaded completely and stored in memory before it is written to disk. - Fix a variable name shadowing issue. - Improve logging. Related to: harvester/harvester#6674 Signed-off-by: Volker Theile <[email protected]>
Pre Ready-For-Testing Checklist
|
Automation e2e test issue: harvester/tests#1558 |
- Create the volume image using RAW disk format instead of QCOW2, so no conversion is required after downloading. This will reduce memory consumption. - Download and write the image file in chunks (32KiB by default), so the whole file doesn't need to be downloaded completely and stored in memory before it is written to disk. - Fix a variable name shadowing issue. - Improve logging. Related to: harvester/harvester#6674 Signed-off-by: Volker Theile <[email protected]>
- Create the volume image using RAW disk format instead of QCOW2, so no conversion is required after downloading. This will reduce memory consumption. - Download and write the image file in chunks (32KiB by default), so the whole file doesn't need to be downloaded completely and stored in memory before it is written to disk. - Fix a variable name shadowing issue. - Improve logging. Related to: harvester/harvester#6674 Signed-off-by: Volker Theile <[email protected]>
- Create the volume image using RAW disk format instead of QCOW2, so no conversion is required after downloading. This will reduce memory consumption. - Download and write the image file in chunks (32KiB by default), so the whole file doesn't need to be downloaded completely and stored in memory before it is written to disk. - Fix a variable name shadowing issue. - Improve logging. Related to: harvester/harvester#6674 Signed-off-by: Volker Theile <[email protected]>
After successful creation of the image in OpenStack, VM Import Controller initiates the download of the image in Harvester.
It seems to happen in two steps:
qcow2-img convert
to RAW.Seems to be happening here.
This results in memory usage proportional to the QCOW2 image. More exactly, the
qcow2-img convert
command seems also to use memory, causing the total memory usage to reach : 2x , so for an image of 500Gi, VM Import Controller would need 1TiB of RAM!!The first step can definitely be avoided.
The text was updated successfully, but these errors were encountered: