Skip to content
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

Fixing the octavia-diskimage-retrofit #240

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pedrofragola
Copy link

The current configuration uses only 1 core CPU, and to be able to convert the images it's necessary to have at least 4 cores.

The current configuration is using only 1 core cpu, and to be able to  convert the images
it's necessary to have at least 4 cores.
@dosaboy
Copy link
Member

dosaboy commented Sep 17, 2024

@pedrofragola ive not personally had issues with creating amphora images using the current constraints. When you say "convert" are you referring to qcow2 -> raw? Do you mind providing some context on why 4 cores are necessary?

@pedrofragola
Copy link
Author

Hey @dosaboy , in my lab, the CPU idle was 0 during the creation of the amphora image, and with the load of the VM I lost the connection to the VM a few times.
It is possible to create the VM with only 1 core, but this takes longer and the VM becomes overloaded, perhaps add at least 2 cores?

Tests from my stsstack lab using 1 core:

juju run-action --wait octavia-diskimage-retrofit/0 retrofit-image

procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
2 1 0 117880 110072 2282536 0 0 314 2917 923 3092 19 3 68 9 0
0 1 0 117872 110072 2282536 0 0 0 0 891 1570 1 1 0 98 0
0 1 0 117872 110072 2282536 0 0 0 24 862 1563 1 0 0 99 0
1 0 0 120392 110076 2282576 0 0 0 44 1288 39987 36 21 0 42 0
1 0 0 122120 109828 2282904 0 0 23932 1064 1752 28862 66 15 0 18 0
0 1 0 118088 109832 2286900 0 0 1444 2724 1173 9765 5 8 0 87 0
0 1 0 118088 109832 2286884 0 0 0 0 907 1592 2 0 0 98 0
1 0 0 114080 109848 2290936 0 0 12 4808 1226 13894 23 4 0 73 0
1 0 0 111048 109856 2291976 0 0 0 1596 1330 6977 92 4 0 4 0
0 0 0 106008 109856 2296976 0 0 4820 0 1415 21259 83 12 1 3 1
1 1 0 119568 109392 2281820 0 0 1008 52844 1109 11884 9 7 23 60 0
0 0 0 119308 109416 2281504 0 0 40 1260 1255 42076 44 17 29 10 0
1 0 0 119276 109420 2281524 0 0 4 0 1256 3903 96 1 3 0 0
0 0 0 120288 109184 2281416 0 0 17636 0 1539 16683 60 13 19 7 0
1 1 0 125036 108904 2276876 0 0 1812 100304 1130 10387 24 6 1 68 0
0 1 0 125068 108904 2276876 0 0 0 4 922 1966 1 1 0 98 0
1 0 0 123712 108920 2279416 0 0 516 2076 1333 14315 53 10 0 37 0
1 0 0 123744 108920 2279416 0 0 0 0 1361 2296 97 3 0 0 0
3 0 0 135156 108564 2268432 0 0 2416 0 1336 8277 71 7 20 2 0
1 0 0 135060 108564 2268432 0 0 0 0 1286 3176 93 2 5 0 0

PID PPID CMD %MEM %CPU
57552 56695 qemu-img convert -c -O qcow 0.2 91.4
9706 9701 /var/lib/juju/tools/machine 1.6 0.8
49358 1 /usr/bin/python3 /usr/bin/g 2.6 0.5
18 2 [kauditd] 0.0 0.4
56577 9706 /var/lib/juju/agents/unit-o 1.1 0.4
42275 1 /usr/bin/mysqlrouter -c /va 0.2 0.3
49517 49358 /usr/bin/python3 /usr/bin/g 2.5 0.3
1 0 /sbin/init 0.3 0.2
687 1 /usr/lib/snapd/snapd 0.5 0.1

After adding 4 cores the creation of the VM was faster and the VM was not overloaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants