open-nomad/nomad
Danielle Lancashire 38562afbc1 evalbroker: No new enqueues when disabled
Currently when an evalbroker is disabled, it still recieves delayed
enqueues via log application in the fsm. This causes an ever growing
heap of evaluations that will never be drained, and can cause memory
issues in larger clusters, or when left running for an extended period
of time without a leader election.

This commit prevents the enqueuing of evaluations while we are
disabled, and relies on the leader restoreEvals routine to handle
reconciling state during a leadership transition.

Existing dequeues during an Enabled->Disabled broker state transition are
handled by the enqueueLocked function dropping evals.
2019-05-14 13:59:10 +02:00
..
deploymentwatcher review fixes 2018-11-08 09:48:36 -08:00
drainer fixing tests 2018-10-04 14:26:19 -07:00
mock goimports 2019-01-22 15:44:31 -08:00
state Return error when preempted/stopped alloc doesn't exist during denormalization 2019-04-24 12:36:07 -07:00
structs Merge pull request #5665 from hashicorp/b-empty-datacenters 2019-05-13 10:23:26 -07:00
types
acl.go clear the token 2017-10-23 15:11:13 -07:00
acl_endpoint.go server 2018-09-15 16:23:13 -07:00
acl_endpoint_test.go non-Existent -> nonexistent 2018-03-12 11:59:33 -07:00
acl_test.go Add testing interfaces 2018-02-15 13:59:00 -08:00
alloc_endpoint.go allocs: Add nomad alloc stop 2019-04-23 12:50:23 +02:00
alloc_endpoint_test.go allocs: Add nomad alloc stop 2019-04-23 12:50:23 +02:00
autopilot.go goimports 2019-01-22 15:44:31 -08:00
autopilot_test.go Add testing interfaces 2018-02-15 13:59:00 -08:00
blocked_evals.go test: fix race around block eval chans 2018-12-19 15:48:02 -08:00
blocked_evals_test.go Handle new eval being the duplicate properly 2018-11-12 16:02:23 -08:00
client_alloc_endpoint.go server: server forwarding logic for nomad exec endpoint 2019-05-09 16:49:08 -04:00
client_alloc_endpoint_test.go server: server forwarding logic for nomad exec endpoint 2019-05-09 16:49:08 -04:00
client_fs_endpoint.go server: server forwarding logic for nomad exec endpoint 2019-05-09 16:49:08 -04:00
client_fs_endpoint_test.go convert all config durations to strings in tests 2018-11-13 10:21:40 -05:00
client_rpc.go server 2018-09-15 16:23:13 -07:00
client_rpc_test.go tests: fix usages of TestClient cleanup and mock driver 2018-10-29 14:21:05 -07:00
client_stats_endpoint.go server 2018-09-15 16:23:13 -07:00
client_stats_endpoint_test.go fix tests that fail as a result of async client startup 2018-12-20 00:53:44 -05:00
config.go goimports until make check is happy 2019-01-23 06:27:14 -08:00
core_sched.go Fix panic on failure 2019-01-08 12:19:44 -05:00
core_sched_test.go Don't GC running but desired stop allocations 2018-12-05 13:01:12 -08:00
deployment_endpoint.go server 2018-09-15 16:23:13 -07:00
deployment_endpoint_test.go Fix tests 2018-05-07 14:50:01 -05:00
deployment_watcher_shims.go Fix typos 2018-05-07 14:50:01 -05:00
drainer_int_test.go tests: fix usages of TestClient cleanup and mock driver 2018-10-29 14:21:05 -07:00
drainer_shims.go Drain complete 2018-05-10 17:22:06 -07:00
endpoints_oss.go Helper to populate RPC server endpoints 2018-02-15 13:59:00 -08:00
eval_broker.go evalbroker: No new enqueues when disabled 2019-05-14 13:59:10 +02:00
eval_broker_test.go Address some code review comments 2018-03-14 16:10:32 -05:00
eval_endpoint.go Update nomad/eval_endpoint.go 2019-03-05 15:19:07 -08:00
eval_endpoint_test.go Update nomad/eval_endpoint_test.go 2019-03-05 15:19:15 -08:00
fsm.go Remove allowPlanOptimization from schedulers 2019-04-23 09:18:02 -07:00
fsm_not_ent.go sync 2017-10-13 14:36:02 -07:00
fsm_registry_oss.go Sync namespace changes 2017-09-07 17:04:21 -07:00
fsm_test.go Rename to match system scheduler config. 2019-05-03 14:06:12 -05:00
heartbeat.go goimports 2019-01-22 15:44:31 -08:00
heartbeat_test.go goimports 2019-01-22 15:44:31 -08:00
job_endpoint.go Remove allowPlanOptimization from schedulers 2019-04-23 09:18:02 -07:00
job_endpoint_oss.go sync 2017-09-19 10:08:23 -05:00
job_endpoint_test.go Update nomad/job_endpoint_test.go 2019-04-10 10:34:10 -05:00
leader.go Rename to match system scheduler config. 2019-05-03 14:06:12 -05:00
leader_oss.go sync acls 2017-09-13 11:38:29 -07:00
leader_test.go Set NextEval when making failed-follow-up evals 2019-02-20 16:07:11 -08:00
merge.go
node_endpoint.go goimports 2019-01-22 15:44:31 -08:00
node_endpoint_test.go goimports 2019-01-22 15:44:31 -08:00
operator_endpoint.go Add code for plan normalization 2019-04-23 09:18:01 -07:00
operator_endpoint_test.go ensure tests run a 0.9 server 2019-01-29 16:19:45 -06:00
periodic.go fix more cases of logging arity errors 2019-01-09 09:22:47 -05:00
periodic_endpoint.go goimports 2019-01-22 15:44:31 -08:00
periodic_endpoint_test.go test: fix race and nil panic in nomad/ tests 2018-12-19 15:48:02 -08:00
periodic_test.go server 2018-09-15 16:23:13 -07:00
plan_apply.go Add comments to functions, and use require instead of assert 2019-04-23 09:57:21 -07:00
plan_apply_not_ent.go sync 2017-10-13 14:36:02 -07:00
plan_apply_pool.go Log reason a plan gets rejected per node. 2017-07-13 17:14:02 -07:00
plan_apply_pool_test.go Enable more linters 2017-09-26 15:26:33 -07:00
plan_apply_test.go Change min version required for plan optimization 2019-04-24 12:36:07 -07:00
plan_endpoint.go goimports 2019-01-22 15:44:31 -08:00
plan_endpoint_test.go goimports 2019-01-22 15:44:31 -08:00
plan_normalization_test.go Add comments to functions, and use require instead of assert 2019-04-23 09:57:21 -07:00
plan_queue.go goimports 2019-01-22 15:44:31 -08:00
plan_queue_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
raft_rpc.go Refactor 2018-02-15 13:59:00 -08:00
regions_endpoint.go server 2018-09-15 16:23:13 -07:00
regions_endpoint_test.go goimports 2019-01-22 15:44:31 -08:00
rpc.go some changes for more idiomatic code 2018-12-12 23:11:17 +00:00
rpc_test.go fix rpc test 2018-09-19 10:17:54 -07:00
search_endpoint.go server 2018-09-15 16:23:13 -07:00
search_endpoint_oss.go sync 2017-10-13 14:36:02 -07:00
search_endpoint_test.go Add testing interfaces 2018-02-15 13:59:00 -08:00
serf.go do not bootstrap with non voters 2018-09-19 17:17:39 -07:00
serf_test.go do not bootstrap with non voters 2018-09-19 17:17:39 -07:00
server.go Merge pull request #5632 from hashicorp/f-nomad-exec-parts-01-base 2019-05-09 18:09:27 -04:00
server_setup_oss.go server 2018-09-15 16:23:13 -07:00
server_test.go server 2018-09-15 16:23:13 -07:00
stats_fetcher.go server 2018-09-15 16:23:13 -07:00
stats_fetcher_test.go Add testing interfaces 2018-02-15 13:59:00 -08:00
status_endpoint.go server 2018-09-15 16:23:13 -07:00
status_endpoint_test.go goimports 2019-01-22 15:44:31 -08:00
system_endpoint.go server 2018-09-15 16:23:13 -07:00
system_endpoint_test.go goimports 2019-01-22 15:44:31 -08:00
testing.go goimports until make check is happy 2019-01-23 06:27:14 -08:00
timetable.go
timetable_test.go Include google compare library 2017-09-01 16:42:09 -07:00
util.go Change min version required for plan optimization 2019-04-24 12:36:07 -07:00
util_test.go Add tests for plan normalization 2019-04-23 09:18:01 -07:00
vault.go server vault client: use two vault clients, one with namespace, one without for /sys calls 2019-04-10 10:34:10 -05:00
vault_test.go server vault client: use two vault clients, one with namespace, one without for /sys calls 2019-04-10 10:34:10 -05:00
vault_testing.go reconcile interface 2018-11-20 17:10:55 -05:00
worker.go Remove allowPlanOptimization from schedulers 2019-04-23 09:18:02 -07:00
worker_test.go Change min version required for plan optimization 2019-04-24 12:36:07 -07:00