Hi all, i was wondering if we are able to add hot plugin feature for vmi(virt-launcher pod) which in burstable or besteffort Qos group, lately i been working on a project use kubevirt i did some code modification to implement cpu and memory hot plugin for burstable or besteffort Qos group, I`m thinking about to contribute this feature to community but I`m not sure this feature is necessary
--
You received this message because you are subscribed to the Google Groups "kubevirt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubevirt-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubevirt-dev/c84ece97-d4d0-435a-9df9-a20aa4496b8en%40googlegroups.com.
hi, fdeutsch, thank you for the reply :)
For Expand cpu/memory on fly, i think few step need to be done
- virt-launcher has to be adjust to allow cpu and memory hot plugin by doing so we need ensure cpu tag of libvirt xml should be something like "<vcpu placement='static' current='2'>128</vcpu>" and some cpu numa cell setting needs to be add into xml to support memory hot plugin like "<cell id='0' cpus='0-127' memory='4194304' unit='KiB'/>" also add a new tag "<maxMemory slots='16' unit='KiB'>134217728</maxMemory>"
- Add a new socket file in virt-launcher and setup with restful api service over it for hot plugin cpu and memory
- A crd called LiveResizer should be created with property of TargetVMI,CPU,Memory
- (option 1)Add crd LiveResizer controller to virt-handler to watch crd LiveResizer life cycle and interfacing with virt-launcher new created socket and update vm and vmi object after resource modification
- (option 2)Create a new project to control LiveResizer object and interfacing with virt-launcher new created socket and update vm and vmi object after resource modification
For resource shrink i think it`s to risk to shrink resource on fly, so i think may be we don't have to support shrink resource on fly.
--On Thursday, July 14, 2022 at 3:03:53 PM UTC+8 fdeu...@redhat.com wrote:Hey!That's interesting-In general I think that we are waiting on https://github.com/kubernetes/kubernetes/pull/102884 in order to implement cpu +mem hotplug.Your idea to do this when a VM is burstable … is interesting.How do you decide when to expand cpu/memory and when to shrink it again?Greetings- fabianOn Thu, Jul 14, 2022 at 8:57 AM 杨晨君 <simo...@gmail.com> wrote:Hi all, i was wondering if we are able to add hot plugin feature for vmi(virt-launcher pod) which in burstable or besteffort Qos group, lately i been working on a project use kubevirt i did some code modification to implement cpu and memory hot plugin for burstable or besteffort Qos group, I`m thinking about to contribute this feature to community but I`m not sure this feature is necessary--
You received this message because you are subscribed to the Google Groups "kubevirt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubevirt-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubevirt-dev/c84ece97-d4d0-435a-9df9-a20aa4496b8en%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "kubevirt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubevirt-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubevirt-dev/2ff42cf5-9004-4361-9cb8-3beb6a84a717n%40googlegroups.com.
This use-case more like openstack feature resource overcommit,we give an overcommit rate for cpu and memory then administrator is responsible for handling this rate.I totally agree with you, oom might be occur if vm don't return memory back, but we can add a feature like shrink the resource when vmi is shutoff.For sure with https://github.com/kubernetes/kubernetes/pull/102884 feature vmi resource grow and shrink will be more safe, I think waiting for this feature cloud be best choice without much to risk,
still thank you for updating me fdeutsch,
it`s good to know you guys got a plan on this feature, please let me know if anything I can do for the community :)
To view this discussion on the web visit https://groups.google.com/d/msgid/kubevirt-dev/9c6852ac-323d-4cd0-bdc2-949e1666431an%40googlegroups.com.
Hey folks,
I was also thinking on implementation of this.
I think that cpu/memory hotplug can be done the same way we doing for
volumes hotplug. By running additional empty pod (for resources reservation
on the node) and updating cgroup resources of vm container to hotplug them
into vm?
What do you think about this, will it work?
Good news,Today https://github.com/kubernetes/kubernetes/pull/102884 is get merged 🎉🎉🎉Now we can think about implementation of this the propper way.
--
You received this message because you are subscribed to the Google Groups "kubevirt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubevirt-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubevirt-dev/CAGO-sgMPOJFpXe1KkHrdbUQyFpeoeCqAw7_z4PB%2BewC6Cd3m4w%40mail.gmail.com.
Good news,Today https://github.com/kubernetes/kubernetes/pull/102884 is get merged 🎉🎉🎉Now we can think about implementation of this the propper way.
--
You received this message because you are subscribed to the Google Groups "kubevirt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubevirt-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubevirt-dev/CAGO-sgMPOJFpXe1KkHrdbUQyFpeoeCqAw7_z4PB%2BewC6Cd3m4w%40mail.gmail.com.