open-nomad/website/content/docs/job-specification
Tim Gross 1335543731
ephemeral disk: migrate should imply sticky (#16826)
The `ephemeral_disk` block's `migrate` field allows for best-effort migration of
the ephemeral disk data to new nodes. The documentation says the `migrate` field
is only respected if `sticky=true`, but in fact if client ACLs are not set the
data is migrated even if `sticky=false`.

The existing behavior when client ACLs are disabled has existed since the early
implementation, so "fixing" that case now would silently break backwards
compatibility. Additionally, having `migrate` not imply `sticky` seems
nonsensical: it suggests that if we place on a new node we migrate the data but
if we place on the same node, we throw the data away!

Update so that `migrate=true` implies `sticky=true` as follows:

* The failure mode when client ACLs are enabled comes from the server not passing
  along a migration token. Update the server so that the server provides a
  migration token whenever `migrate=true` and not just when `sticky=true` too.
* Update the scheduler so that `migrate` implies `sticky`.
* Update the client so that we check for `migrate || sticky` where appropriate.
* Refactor the E2E tests to move them off the old framework and make the intention
  of the test more clear.
2023-04-07 16:33:45 -04:00
..
hcl2 Add information about template to interpolation page (#10807) 2023-02-10 16:12:11 -05:00
affinity.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
artifact.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
change_script.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
check.mdx Fix broken link, typo, style edits. (#15968) 2023-01-30 15:52:43 -05:00
check_restart.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
connect.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
constraint.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
csi_plugin.mdx Update csi_plugin.mdx (#16584) 2023-03-21 16:16:18 +01:00
device.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
dispatch_payload.mdx docs: dispatch_payload and jobs api docs had some weirdness (#16514) 2023-03-16 09:42:46 -07:00
env.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
ephemeral_disk.mdx ephemeral disk: migrate should imply sticky (#16826) 2023-04-07 16:33:45 -04:00
expose.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
gateway.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
group.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
identity.mdx Workload Identity, Task API, and Dynamic Node Metadata Docs (#16102) 2023-02-09 16:03:43 -08:00
index.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
job.mdx Allow configurable range of Job priorities (#16084) 2023-02-17 09:23:13 -05:00
lifecycle.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
logs.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
meta.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
migrate.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
multiregion.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
network.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
parameterized.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
periodic.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
proxy.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
reschedule.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
resources.mdx docs: remove cores/memory beta label, update driver cpu docs (#16175) 2023-02-14 14:43:07 -06:00
restart.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
scaling.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
service.mdx docs: detail support for Nomad checks in service block. (#16598) 2023-03-22 09:27:58 +01:00
sidecar_service.mdx connect: add meta on ConsulSidecarService (#16705) 2023-03-30 16:09:28 -04:00
sidecar_task.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
spread.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
task.mdx Workload Identity, Task API, and Dynamic Node Metadata Docs (#16102) 2023-02-09 16:03:43 -08:00
template.mdx docs: note that secrets dir is usually mounted noexec (#16363) 2023-03-07 11:57:15 -05:00
update.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
upstreams.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
vault.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
volume.mdx System and sysbatch jobs always have zero index (#16030) 2023-02-02 16:18:01 -05:00
volume_mount.mdx renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00