Problem
Allocation is unable to place due to Resource exhausted. Dimension disk exhausted on x node
Here is an example of what it may look like:
Failed to place 1 allocation(s):
* Job "example-job" (Task Group "web" count: 1)
* No nodes are available to place allocation:
- Dimension "disk" exhausted on 1 nodes
Cause
The likely cause of this issue is insufficient disk space on the host, specifically in the
alloc/data
partition or the /var
directory, which is typically used for the ephemeral disk by default.
Solutions:
By default, Nomad reserves 300MB of ephemeral disk space for each job placement. You can adjust this allocation using the
ephemeral_disk
stanza in your job configuration. Keep in mind that all tasks within the same group share the same ephemeral disk space. It is not recommended to reduce the allocation below 300MB, as this space is essential for data migration and logging. Additionally, dead allocations that have not yet been garbage-collected will count against the 300MB reservation.
Additional Information
The ephemeral_disk
stanza describes the ephemeral disk requirements of the group. Ephemeral disks can be marked as sticky and support live data migration. Additional references below: