open-nomad/nomad/state
Seth Hoenig 3371214431 core: implement system batch scheduler
This PR implements a new "System Batch" scheduler type. Jobs can
make use of this new scheduler by setting their type to 'sysbatch'.

Like the name implies, sysbatch can be thought of as a hybrid between
system and batch jobs - it is for running short lived jobs intended to
run on every compatible node in the cluster.

As with batch jobs, sysbatch jobs can also be periodic and/or parameterized
dispatch jobs. A sysbatch job is considered complete when it has been run
on all compatible nodes until reaching a terminal state (success or failed
on retries).

Feasibility and preemption are governed the same as with system jobs. In
this PR, the update stanza is not yet supported. The update stanza is sill
limited in functionality for the underlying system scheduler, and is
not useful yet for sysbatch jobs. Further work in #4740 will improve
support for the update stanza and deployments.

Closes #2527
2021-08-03 10:30:47 -04:00
..
autopilot.go remove node events for state track changing pr 2020-09-04 10:23:35 -04:00
autopilot_test.go implement MinQuorum 2020-02-16 16:04:59 -06:00
deployment_events_test.go Events/mv structs (#9430) 2020-11-23 14:01:10 -05:00
events.go restored Node.Sanitize() for RPC endpoints 2021-03-26 17:03:15 +00:00
events_test.go Node Drain Metadata (#10250) 2021-05-07 13:58:40 -04:00
iterator.go csi: use node MaxVolumes during scheduling (#7565) 2020-03-31 17:16:47 -04:00
schema.go core: implement system batch scheduler 2021-08-03 10:30:47 -04:00
schema_test.go remove event durability (#9147) 2020-10-22 12:21:03 -04:00
state_changes.go events: Use single eventsFromChanges func (#9281) 2020-11-05 13:06:52 -08:00
state_store.go core: implement system batch scheduler 2021-08-03 10:30:47 -04:00
state_store_oss.go added new policy capabilities for recommendations API 2020-10-28 14:32:16 +00:00
state_store_test.go Node Drain Metadata (#10250) 2021-05-07 13:58:40 -04:00
testing.go tests: use standard library testing.TB 2021-06-09 16:18:45 -07:00