Had some questions about Host Resource Limits when there are no explicit reservations.
If I have a host with 8gig memory and no containers. Then I set the rancher host Resource Limit to 7 gigs.
So 7 gigs is available.
Then I add 4 java containers in a stack with no mem_reservation: limits specified.
Question 1) Does the schedule require the reservations to be set for each container for it to apply any limits for the host?
Question 2) What happens if the 4 containers start up and use 7 gigs of the memory and I start a new container with no reservation? Will the new container be limited by the scheduler when there are no specified container reservations?
Any there any best practices for setting reservations for java services w/ jvms? Do you need to set the java opts to match the container reservation so jvm has enough memory?
Thanks!