-
Notifications
You must be signed in to change notification settings - Fork 34
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
Algorithm for RH limit checks #2676
Comments
Yes, current algorithm is not flexible. For example, if Resource Host has weak CPU, but huge RAM and Disk, limit check will prevent using RAM and Disk fully, because CPU quota will be exhausted quickly by new containers. Same could be with RAM and Disk: Resource Host may have strong CPU but small RAM or Disk storage. From CPU, RAM and Disk, most volatile resource is CPU, after that goes RAM. And Disk is resource which requires exact measuring. So, I think for the beginning, we should skip checking CPU limits. Also, limit check values may vary depending on ratio of RAM to DISK and vice-a-versa. I.e. if Resource Host has small RAM but huge Disk, RAM volatility factor might be lower. |
@lbthomsen @niclash your comments are requested |
I think that the underlying issue is that CPU is considered "reserved" rather than measured, per container. And users can't select whether they want to "reserve" CPU or is ok to use "shared" CPU. If we treat the containers a "reserved", then utilization will probably look dismal as many containers will use very little CPU. So, in the short term, I recommend; |
a. The algo considers RAM as reserved already, so done what about the other resources, disk? do we use them in calculations? @niclash |
We need to improve the algorithm used for RH limit checks.
Current implementation is too restrictive.
For details on the current algo, see https://github.com/subutai-io/peer-os/wiki/RH-checking-algorithm
The text was updated successfully, but these errors were encountered: