Lang Martin
a4472e3d34
core_sched check ServersMeetMinimumVersion, send old node deregister
2019-07-10 13:56:19 -04:00
Lang Martin
8e53c105fc
state_store just one index update, test deletion
2019-07-10 13:56:19 -04:00
Lang Martin
3e2d1f0338
node_endpoint improve error messages
2019-07-10 13:56:19 -04:00
Lang Martin
5a6a947e98
state_store improve error messages
2019-07-10 13:56:19 -04:00
Lang Martin
fd14cedf95
drainer watch_nodes_test batch of 1
2019-07-10 13:56:19 -04:00
Lang Martin
b176066d42
node_endpoint deregister the batch of nodes
2019-07-10 13:56:19 -04:00
Lang Martin
a97407e030
fsm NodeDeregisterRequest is now a batch
2019-07-10 13:56:19 -04:00
Lang Martin
d5ff2834ca
core_sched batch node deregistration requests
2019-07-10 13:56:19 -04:00
Lang Martin
10848841be
util partitionAll for paging
2019-07-10 13:56:19 -04:00
Lang Martin
be2d6853cb
state_store DeleteNode operates on a batch of ids
2019-07-10 13:56:19 -04:00
Lang Martin
77cf037bff
struct NodeDeregisterRequest has a batch of NodeIDs
2019-07-10 13:56:19 -04:00
Preetha Appan
3cb798235d
Missed one revert of backwards compatibility for node drain
2019-07-01 16:46:05 -05:00
Preetha Appan
aa2b4b4e00
Undo removal of node drain compat changes
...
Decided to remove that in 0.10
2019-07-01 15:12:01 -05:00
Preetha Appan
3484f18984
Fix more tests
2019-06-26 16:30:53 -05:00
Preetha Appan
ff1b80dba6
Fix node drain test
2019-06-26 16:12:07 -05:00
Preetha Appan
23319e04d6
Restore accidentally deleted block
2019-06-26 13:59:14 -05:00
Preetha Appan
66fa6a67ec
newline
2019-06-25 19:41:09 -05:00
Preetha Appan
10e7d6df6d
Remove compat code associated with many previous versions of nomad
...
This removes compat code for namespaces (0.7), Drain(0.8) and other
older features from releases older than Nomad 0.7
2019-06-25 19:05:25 -05:00
Chris Baker
59fac48d92
alloc lifecycle: 404 when attempting to stop non-existent allocation
2019-06-20 21:27:22 +00:00
Preetha
586e50d1a4
Merge pull request #5841 from hashicorp/f-raft-snapshot-metrics
...
Raft and state store indexes as metrics
2019-06-19 12:01:03 -05:00
Preetha Appan
dc0ac81609
Change interval of raft stats collection to 10s
2019-06-19 11:58:46 -05:00
Preetha Appan
104d66f10c
Changed name of metric
2019-06-17 15:51:31 -05:00
Chris Baker
e0170e1c67
metrics: add namespace label to allocation metrics
2019-06-17 20:50:26 +00:00
Preetha Appan
c54b4a5b17
Emit metrics with raft commit and apply index and statestore latest index
2019-06-14 16:30:27 -05:00
Jasmine Dahilig
ed9740db10
Merge pull request #5664 from hashicorp/f-http-hcl-region
...
backfill region from hcl for jobUpdate and jobPlan
2019-06-13 12:25:01 -07:00
Jasmine Dahilig
51e141be7a
backfill region from job hcl in jobUpdate and jobPlan endpoints
...
- updated region in job metadata that gets persisted to nomad datastore
- fixed many unrelated unit tests that used an invalid region value
(they previously passed because hcl wasn't getting picked up and
the job would default to global region)
2019-06-13 08:03:16 -07:00
Nick Ethier
1b7fa4fe29
Optional Consul service tags for nomad server and agent services ( #5706 )
...
Optional Consul service tags for nomad server and agent services
2019-06-13 09:00:35 -04:00
Mahmood Ali
e31159bf1f
Prepare for 0.9.4 dev cycle
2019-06-12 18:47:50 +00:00
Nomad Release bot
4803215109
Generate files for 0.9.3 release
2019-06-12 16:11:16 +00:00
Mahmood Ali
07f2c77c44
comment DenormalizeAllocationDiffSlice applies to terminal allocs only
2019-06-12 08:28:43 -04:00
Lang Martin
fe8a4781d8
config merge maintains *HCL string fields used for duration conversion
2019-06-11 16:34:04 -04:00
Mahmood Ali
392f5bac44
Stop updating allocs.Job on stopping or preemption
2019-06-10 18:30:20 -04:00
Mahmood Ali
6c8e329819
test that stopped alloc jobs aren't modified
...
When an alloc is stopped, test that we don't update the job found in
alloc with new job that is no longer relevent for this alloc.
2019-06-10 17:14:26 -04:00
Mahmood Ali
d30c3d10b0
Merge pull request #5747 from hashicorp/b-test-fixes-20190521-1
...
More test fixes
2019-06-05 19:09:18 -04:00
Mahmood Ali
87173111de
Merge pull request #5746 from hashicorp/b-no-updating-inmem-node
...
set node.StatusUpdatedAt in raft
2019-06-05 19:05:21 -04:00
Mahmood Ali
97957fbf75
Prepare for 0.9.3 dev cycle
2019-06-05 14:54:00 +00:00
Nomad Release bot
43bfbf3fcc
Generate files for 0.9.2 release
2019-06-05 11:59:27 +00:00
Michael Schurter
073893f529
nomad: disable service+batch preemption by default
...
Enterprise only.
Disable preemption for service and batch jobs by default.
Maintain backward compatibility in a x.y.Z release. Consider switching
the default for new clusters in the future.
2019-06-04 15:54:50 -07:00
Michael Schurter
a8fc50cc1b
nomad: revert use of SnapshotAfter in planApply
...
Revert plan_apply.go changes from #5411
Since non-Command Raft messages do not update the StateStore index,
SnapshotAfter may unnecessarily block and needlessly fail in idle
clusters where the last Raft message is a non-Command message.
This is trivially reproducible with the dev agent and a job that has 2
tasks, 1 of which fails.
The correct logic would be to SnapshotAfter the previous plan's index to
ensure consistency. New clusters or newly elected leaders will not have
a previous plan, so the index the leader was elected should be used
instead.
2019-06-03 15:34:21 -07:00
Mahmood Ali
a4ead8ff79
remove 0.9.2-rc1 generated code
2019-05-23 11:14:24 -04:00
Nomad Release bot
6d6bc59732
Generate files for 0.9.2-rc1 release
2019-05-22 19:29:30 +00:00
Lang Martin
d46613ff44
structs check TaskGroup.Update for nil
2019-05-22 12:34:57 -04:00
Lang Martin
10a3fd61b0
comment replace COMPAT 0.7.0 for job.Update with more current info
2019-05-22 12:34:57 -04:00
Lang Martin
67ebcc47dd
structs comment todo DeploymentStatus & DeploymentStatusDescription
2019-05-22 12:34:57 -04:00
Lang Martin
21bf9fdf90
structs job warnings for taskgroup with mixed auto_promote settings
2019-05-22 12:34:57 -04:00
Lang Martin
0f6f543a5f
deployment_watcher auto promote iff every task group is auto promotable
2019-05-22 12:34:57 -04:00
Lang Martin
d27d6f8ede
structs validate requires Canary for AutoPromote
2019-05-22 12:32:08 -04:00
Lang Martin
0c668ecc7a
log error on autoPromoteDeployment failure
2019-05-22 12:32:08 -04:00
Lang Martin
f23f9fd99e
describe a pending deployment without auto_promote more explicitly
2019-05-22 12:32:08 -04:00
Lang Martin
34230577df
describe a pending deployment with auto_promote accurately
2019-05-22 12:32:08 -04:00