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

Resize CPU with custom cpu share #840

Conversation

santhosh-sloka
Copy link
Contributor

@santhosh-sloka santhosh-sloka commented Aug 19, 2024

What this PR does / why we need it:

The code will help successful CPU resize Operation by preserving the custom CPU share deployed by the customer.

Which issue(s) this PR fixes(unless minor typo change ,better to have an issue opened):

https://github.ibm.com/zvc/planning/issues/18693

Special notes for your reviewer:

There is a dependent PR for this in icic-dev repo, " https://github.ibm.com/zvc/icic-dev/pull/6088 " both of the PR's should be merged together

Results are attached here :

https://github.ibm.com/zvc/planning/issues/18693#issuecomment-88412796
https://github.ibm.com/zvc/planning/issues/18693#issuecomment-88412883
https://github.ibm.com/zvc/planning/issues/18693#issuecomment-88499911 << resize with VM shutdown

[optional] which components (compute, zvm/kvm etc)

zvm

[optional] backward incompatible change

[optional] security impact

[optional] open source package impact

--signed-off : [email protected] ( [email protected] )

@santhosh-sloka santhosh-sloka force-pushed the cpu_resize_with_share_enhancement branch 3 times, most recently from da880af to 336e562 Compare August 19, 2024 16:37
@santhosh-sloka
Copy link
Contributor Author

@jichenjc , @bjhuangr , @SeanHQF - Please help review the PR, thanks..

Signed-off-by: santhosh-sloka <[email protected]>
@santhosh-sloka santhosh-sloka force-pushed the cpu_resize_with_share_enhancement branch from 336e562 to b542e9f Compare August 19, 2024 19:27
@@ -1005,7 +1005,7 @@ def guest_create(self, userid, vcpus, memory, disk_list=None,
rdomain, pcif)

@check_guest_exist()
def guest_live_resize_cpus(self, userid, cpu_cnt):
def guest_live_resize_cpus(self, userid, cpu_cnt, cpu_share=''):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update feilong doc accoordingly for the new parameter

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure @bjhuangr , will update the feilong doc as well

@bjhuangr
Copy link
Contributor

@santhosh-sloka please update the doc in another PR

@bjhuangr bjhuangr merged commit c09893f into openmainframeproject:master Aug 21, 2024
2 checks passed
@santhosh-sloka
Copy link
Contributor Author

@santhosh-sloka please update the doc in another PR

sure @bjhuangr ,Thanks i am working on it, will update the doc and raise the new PR soon

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