DCA · Question #36
What is the difference between a resource limit and a resource reservation when scheduling services?
The correct answer is D. A resource limit is hard limit for your service, while a reservation is used to find a host with. A resource limit sets a hard upper boundary for resource consumption, whereas a resource reservation guarantees a minimum amount of resources for a service, influencing host scheduling.
Question
What is the difference between a resource limit and a resource reservation when scheduling services?
Options
- AA resource limit and a resource reservation can be used interchangeably.
- BA resource limit is a soft limit for your service, while a reservation is hard limit and the docker
- CA resource limit is used to find a host with adequate resources for scheduling a hard limit for your
- DA resource limit is hard limit for your service, while a reservation is used to find a host with
How the community answered
(50 responses)- A4% (2)
- B6% (3)
- C2% (1)
- D88% (44)
Why each option
A resource limit sets a hard upper boundary for resource consumption, whereas a resource reservation guarantees a minimum amount of resources for a service, influencing host scheduling.
Resource limits and reservations are distinct concepts with different operational purposes and are not interchangeable in Docker Swarm scheduling.
This statement incorrectly defines limits as soft and reservations as hard; limits are typically hard caps on consumption, while reservations are guarantees for scheduling.
This option incorrectly merges parts of both definitions and mischaracterizes the nature of a resource limit in the context of scheduling.
A resource limit specifies the maximum amount of a resource (like CPU or memory) that a container can consume; if it tries to exceed this, it may be throttled or terminated. Conversely, a resource reservation defines the minimum guaranteed amount of a resource for the container and is primarily used by the Docker Swarm scheduler to find a host with adequate available resources to place the service.
Concept tested: Docker Swarm service resource management
Source: https://docs.docker.com/engine/swarm/services/#resource-limits-and-reservations
Topics
Community Discussion
No community discussion yet for this question.