docs: add documentation on ephemeral disk and logs (#15829)

This commit is contained in:
Mike Nomitch
2023-05-17 13:58:11 -07:00
committed by GitHub
parent 22f5217b85
commit 3db97acf8a
2 changed files with 9 additions and 0 deletions

View File

@@ -30,6 +30,9 @@ job "docs" {
The ephemeral disk can be referenced under `alloc/data/`. More information can
be found in the [filesystem internals][].
Each job's logs will be written to ephemeral disk space. See the [logs
documentation][] for more information.
## `ephemeral_disk` Parameters
- `migrate` `(bool: false)` - This specifies that the Nomad client should make a
@@ -67,3 +70,4 @@ ephemeral_disk {
[resources]: /nomad/docs/job-specification/resources 'Nomad resources Job Specification'
[filesystem internals]: /nomad/docs/concepts/filesystem#templates-artifacts-and-dispatch-payloads 'Filesystem internals documentation'
[logs documentation]: /nomad/docs/job-specification/logs 'Nomad logs Job Specification'

View File

@@ -38,6 +38,10 @@ job "docs" {
}
```
Each job's logs will be written to ephemeral disk space. If you increase the total
amount of logs on disk, you may want to increase ephemeral disk size as well. See
the [ephemeral disk documentation][] for more information.
For information on how to interact with logs after they have been configured,
please see the [`nomad alloc logs`][logs-command] command.
@@ -93,3 +97,4 @@ logs {
[logs-command]: /nomad/docs/commands/alloc/logs 'Nomad logs command'
[`disable_log_collection`]: /nomad/docs/drivers/docker#disable_log_collection
[ephemeral disk documentation]: /nomad/docs/job-specification/ephemeral_disk 'Nomad ephemeral disk Job Specification'