open-nomad/nomad/structs
Alex Dadgar 99498da6ed Denormalize jobs in plan and ignore resources of terminal allocs
Denormalize jobs in AppendAllocs:
AppendAlloc was originally only ever called for inplace upgrades and new
allocations. Both these code paths would remove the job from the
allocation. Now we use this to also add fields such as FollowupEvalID
which did not normalize the job. This is only a performance enhancement.

Ignore terminal allocs:
Failed allocations are annotated with the followup Eval ID when one is
created to replace the failed allocation. However, in the plan applier,
when we check if allocations fit, these terminal allocations were not
filtered. This could result in the plan being rejected if the node would
be overcommited if the terminal allocations resources were considered.
2018-09-24 13:53:43 -07:00
..
config Plugin config parsing 2018-08-29 17:06:01 -07:00
batch_future.go drain: refactor batch_future into its own file 2018-04-02 16:40:06 -07:00
batch_future_test.go drain: refactor batch_future into its own file 2018-04-02 16:40:06 -07:00
bitmap.go assign names 2017-07-07 12:03:11 -07:00
bitmap_test.go assign names 2017-07-07 12:03:11 -07:00
diff.go Include affinities in job and task diff, and more test cases 2018-09-04 16:10:11 -05:00
diff_test.go Include affinities in job and task diff, and more test cases 2018-09-04 16:10:11 -05:00
errors.go rpc: only attempt NodeRpc for nodes>=0.8 2018-04-09 11:08:06 -07:00
funcs.go Denormalize jobs in plan and ignore resources of terminal allocs 2018-09-24 13:53:43 -07:00
funcs_test.go Refactor 2018-02-15 13:59:00 -08:00
generate.sh Codecgen full package 2018-04-26 15:24:53 -07:00
network.go Shrink dynamic port range 2017-07-18 13:47:53 -07:00
network_test.go spelling: usage 2018-03-11 19:11:59 +00:00
node.go Fix copying drivers 2018-04-16 15:45:51 -07:00
node_class.go spelling: identifying 2018-03-11 18:15:05 +00:00
node_class_test.go Remove structs import from api 2017-09-29 10:36:08 -07:00
node_test.go fix issue when updating node events 2018-03-21 15:15:26 -04:00
operator.go spelling: configuration 2018-03-11 17:48:04 +00:00
streaming_rpc.go spelling: requested 2018-03-11 18:43:21 +00:00
structs.go Denormalize jobs in plan and ignore resources of terminal allocs 2018-09-24 13:53:43 -07:00
structs_codegen.go Codecgen full package 2018-04-26 15:24:53 -07:00
structs_test.go Fix panic when reschedule policy for allocation can't be looked up 2018-09-05 17:01:02 -05:00