open-nomad/scheduler
Tim Gross 19a2c065f4
System and sysbatch jobs always have zero index (#16030)
Service jobs should have unique allocation Names, derived from the
Job.ID. System jobs do not have unique allocation Names because the index is
intended to indicated the instance out of a desired count size. Because system
jobs do not have an explicit count but the results are based on the targeted
nodes, the index is less informative and this was intentionally omitted from the
original design.

Update docs to make it clear that NOMAD_ALLOC_INDEX is always zero for 
system/sysbatch jobs

Validate that `volume.per_alloc` is incompatible with system/sysbatch jobs.
System and sysbatch jobs always have a `NOMAD_ALLOC_INDEX` of 0. So
interpolation via `per_alloc` will not work as soon as there's more than one
allocation placed. Validate against this on job submission.
2023-02-02 16:18:01 -05:00
..
benchmarks build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
annotate.go build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
annotate_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
context.go scheduler: stopped-yet-running allocs are still running (#10446) 2022-09-13 12:52:47 -07:00
context_test.go build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
device.go Change types of weights on spread/affinity 2019-01-30 12:20:38 -08:00
device_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
feasible.go Allow per_alloc to be used with host volumes (#15780) 2023-01-26 09:14:47 -05:00
feasible_test.go Allow per_alloc to be used with host volumes (#15780) 2023-01-26 09:14:47 -05:00
generic_sched.go renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
generic_sched_test.go System and sysbatch jobs always have zero index (#16030) 2023-02-02 16:18:01 -05:00
preemption.go renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
preemption_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
propertyset.go renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
rank.go core: merge reserved_ports into host_networks (#13651) 2022-07-12 14:40:25 -07:00
rank_test.go core: merge reserved_ports into host_networks (#13651) 2022-07-12 14:40:25 -07:00
reconcile.go scheduler: create placements for non-register MRD (#15325) 2022-11-25 12:45:34 -05:00
reconcile_test.go renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
reconcile_util.go Update alloc after reconnect and enforece client heartbeat order (#15068) 2022-11-04 16:25:11 -04:00
reconcile_util_test.go Update alloc after reconnect and enforece client heartbeat order (#15068) 2022-11-04 16:25:11 -04:00
scheduler.go make version checks specific to region (1.4.x) (#14912) 2022-10-17 16:23:51 -04:00
scheduler_oss.go gofmt all the files 2021-10-01 10:14:28 -04:00
scheduler_sysbatch_test.go System and sysbatch jobs always have zero index (#16030) 2023-02-02 16:18:01 -05:00
scheduler_system.go scheduler: log stack in case of panic (#15303) 2022-11-17 18:59:33 -05:00
scheduler_system_test.go System and sysbatch jobs always have zero index (#16030) 2023-02-02 16:18:01 -05:00
select.go chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00
select_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
spread.go renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
spread_test.go cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
stack.go renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
stack_oss.go chore: ensure consistent file naming for non-enterprise files. 2022-01-13 11:32:16 +01:00
stack_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
testing.go disconnected clients: ensure servers meet minimum required version (#12202) 2022-04-05 17:12:23 -04:00
util.go Add option to expose workload token to task (#15755) 2023-02-02 10:59:14 -08:00
util_test.go Add option to expose workload token to task (#15755) 2023-02-02 10:59:14 -08:00