Comments (5)
Very good catch and the cause why my branch is failing after rebase :)
For dev purpose will hardcode some values there until You will provide PR with correct resolution.
from virtlet.
Committed fix is temporary workaround
from virtlet.
Want to share my considerations re cpu resource management:
So for resource management k8s have
- optional settings for CFS (Completely Fair Scheduler):
- quotaPeriod
- cpuPeriod
These put limits for i/o bandwidth limits, not cpu resource usage itself.
- and sharesPerCPU - relative value to set weighted share of available cpu resources for VM
which is set by default=2 (1 cpu = 1024)
So, then, for example nova has cpu overcommitment ratio set as 16:1 => VMsPerHost = vCPUs*16
But for virtlet wihout setting sharesPerCPU directly it would be as 512:1, which is obviously is not acceptable at all.
There could be added limits per namespace, then default will be set to limit if there is no request for pod, but we can't rely on that. Such low default is probably unexpectable for us, to have the same ratio
we need to have 64. Probably, we need to try to propose having kubelet option for that, WDYT?
So for now I'm going to prepare patch which will set all available vCPUs for each VM with defined CPU Tuning tag with specified shares. As long as nothing is set, cpu time will be, obviously, spreaded equally among VMs, there will be problems if we start to set "requests" for cpu for some of VMs and use defaults for others, and ofcource if we overload the host by amount of created VMs, but for now it's POC, right? :) Do you agree with that?
from virtlet.
Sorry for not answering earlier - idea looks great and I like your implementation of it :)
from virtlet.
As it's already merged - closing.
from virtlet.
Related Issues (20)
- missing link #0 in the container network namespace (Virtlet pod restarted?)
- Virtlet considered VFs with vfio-pci driver as a disk device
- Virtlet pod CrashLoopBackOff HOT 2
- sed: couldn't edit /etc/systemd/system/dockershim.service.d/kubelet.service.d: not a regular file HOT 1
- How to expose service hosted in VM HOT 2
- How to access persistent volume from guest Windows VM HOT 6
- Istio mesh integration HOT 5
- Error trying example ubuntu-vm-rbd-block-pv HOT 2
- Is virtlet support QAT device? HOT 1
- Frequent reset and running libvirt container result in error HOT 2
- How to build virtlet from the source code? HOT 3
- virtlet manager provider HOT 1
- cirros-vm creation fails.
- The official source code can not pass the ci/circleci: test HOT 3
- Is Virtlet still maintained HOT 1
- Whether virtlet support windows vm HOT 1
- "RunContainerError" while start basic pod "cirros-vm" HOT 1
- Please add Cloud-hypervisor (Rust-Vmm) for light weight Virtual Machines HOT 5
- Documentation website is down
- Regarding whether the project will continue to be maintained
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from virtlet.