mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
link to resources page
This commit is contained in:
@@ -36,6 +36,10 @@ job "docs" {
|
||||
static = 22
|
||||
}
|
||||
}
|
||||
|
||||
device "nvidia/gpu" {
|
||||
count = 2
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -48,9 +52,12 @@ job "docs" {
|
||||
|
||||
- `memory` `(int: 300)` - Specifies the memory required in MB
|
||||
|
||||
- `network` <code>([Network][]: <required>)</code> - Specifies the network
|
||||
- `network` <code>([Network][]: <optional>)</code> - Specifies the network
|
||||
requirements, including static and dynamic port allocations.
|
||||
|
||||
- `device` <code>([Device][]: <optional>)</code> - Specifies the device
|
||||
requirements. This may be repeated to request multiple device types.
|
||||
|
||||
## `resources` Examples
|
||||
|
||||
The following examples only show the `resources` stanzas. Remember that the
|
||||
@@ -86,4 +93,18 @@ resources {
|
||||
}
|
||||
```
|
||||
|
||||
### Devices
|
||||
|
||||
This example shows a device constraints as specified in the [device][] stanza
|
||||
which require two nvidia GPUs to be made available:
|
||||
|
||||
```hcl
|
||||
resources {
|
||||
device "nvidia/gpu" {
|
||||
count = 2
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
[network]: /docs/job-specification/network.html "Nomad network Job Specification"
|
||||
[device]: /docs/job-specification/device.html "Nomad device Job Specification"
|
||||
|
||||
Reference in New Issue
Block a user