How to test resource based testcases on rancher server console?

I have to test scenarios related to memory reserve, CPU reserve etc like :slight_smile:

Service that is over the CPU and Mem reserve
Service with no reserve after CPU and Mem are maxed out
Service to fill host/cpu, then add another service without reserve
Service to fill host/cpu, then add another service with mem reserve
Service to fill host/cpu, then add another service with CPU reserve
Service with sidekicks that is under mem reserve
Service with sidekicks that is over mem reserve
Service with sidekicks that is under CPU reserve
Service with sidekicks that is over CPU reserve
Service that uses only sidekick reserve that is under mem
Service that uses only sidekick reserve that is over mem
Service that uses only sidekick reserve that is under CPU
Service that uses only sidekick reserve that is over CPU
Container under reserve
Container over reserve

How to test them ?

Here’s the documentation on how to set those fields: https://docs.rancher.com/rancher/v1.6/en/rancher-services/scheduler/#scheduling-with-resource-constraints

You’d just have to iterate through your different scenarios to see if the behavior is as expected. You can manually edit the CPU and memory a host has available for scheduling by clicking “Edit Host” on the Infrastructure > Hosts page. If you lower the values, it might make your testing easier.