Diptanu Choudhury
ebf9fbf1d6
Added a schema for summarizing status of jobs
2016-07-12 11:41:13 -06:00
Diptanu Choudhury
4ea9ceee38
Handling allocations with client state pending
2016-07-12 11:29:23 -06:00
Diptanu Choudhury
2cf2ed6758
Changing the state of an allocation to lost if the node on which it was running was marked as down
2016-07-11 18:24:04 -06:00
Sean Chittenden
ec77a1869e
Test for errors
2016-06-16 14:43:46 -07:00
Alex Dadgar
15936822a4
Worker annotates evals with their snapshot index
2016-05-24 20:10:56 -07:00
Alex Dadgar
47390c5186
remove the GC field on the job and use the job type
2016-03-23 18:02:01 -07:00
Alex Dadgar
ad92e50a24
Avoid serializes Allocation.Resources
2016-03-01 14:09:25 -08:00
Armon Dadgar
4c4581a07e
nomad/state: Allow UpdateAllocFromClient to take multiple allocs
2016-02-21 17:49:46 -08:00
Armon Dadgar
abf7e52689
nomad: adding compound index on alloc terminal status
2016-02-20 11:24:06 -08:00
Alex Dadgar
2d98c0eadd
Fix double pull with introduction of AllocModifyIndex
2016-02-01 15:43:59 -08:00
Ivo Verberk
91a9f2c4ce
Shorten CLI identifiers
...
* Truncate all UUID identifiers to eight characters by default
* Refactor the node identifier to an auto-generated UUID
* Created and updated tests and mocks
2016-01-14 21:57:43 +01:00
Alex Dadgar
41efdcb1c3
Add JobModifyIndex
2016-01-12 09:50:33 -08:00
Alex Dadgar
62a820196f
Address comments
2016-01-11 17:48:32 -08:00
Alex Dadgar
9f4ec35f43
Set job status in state store
2016-01-11 17:48:32 -08:00
Ivo Verberk
596938014e
Fix test (due to merge)
2015-12-24 21:23:05 +01:00
Ivo Verberk
fd177f4c6f
Bring up-to-date with master
2015-12-24 21:16:32 +01:00
Alex Dadgar
68506c7163
Remove parent index
2015-12-23 18:26:39 -08:00
Alex Dadgar
d073285982
use conditional index
2015-12-23 18:26:39 -08:00
Alex Dadgar
49dd0dc461
fixes from review
2015-12-23 18:26:39 -08:00
Alex Dadgar
0a8c49f36b
Remove incorrect comment
2015-12-23 18:26:39 -08:00
Alex Dadgar
37c1f56921
Snapshot and restore
2015-12-23 18:26:39 -08:00
Alex Dadgar
ea799b88cb
merge
2015-12-23 18:26:39 -08:00
Alex Dadgar
9a7b363b94
Add periodic index to job table
2015-12-23 18:26:39 -08:00
Alex Dadgar
670cc50a02
merge
2015-12-23 18:26:39 -08:00
Ivo Verberk
7838b2a57c
Refactoring
...
* Reverted changes to get methods
* Added prefix query parameter
* Updated node status to use prefix based searching
* Fixed tests
* Removed truncation logic
2015-12-22 23:44:33 +01:00
Ivo Verberk
33f73a1e8e
Short identifiers functionality
...
* Use go-memdb prefix indexer for lookups
* Add Job lookups
* Update state store with new ByIDPrefix get methods
* Call new methods when exact lookup fails or is not applicable
2015-12-19 21:55:28 +01:00
Ivo Verberk
1d294df9ec
Bring up-to-date with master
2015-12-19 21:55:10 +01:00
Alex Dadgar
e2193c5c81
Merge pull request #586 from hashicorp/f-job-gc
...
Add garbage collection to jobs
2015-12-18 11:21:50 -08:00
Alex Dadgar
fa71d95a8f
Copy the task states from the client update
2015-12-17 15:33:57 -08:00
Alex Dadgar
f1d88bdf86
Remove user-specifiable gc threshold
2015-12-16 15:00:45 -08:00
Alex Dadgar
2218a79815
Add garbage collection to jobs
2015-12-16 15:00:45 -08:00
Ivo Verberk
acbbaf3e78
Allow lookups based on short identifiers
...
This change introduces the ability to specify identifiers for jobs,
allocs, evals and nodes on the command line with as little as one
character, provided that it uniquely identifies the resource. An error
with the possible results will be provided when the short identifier
has multiple results.
2015-12-12 18:28:20 +01:00
Ryan Uber
b54309282f
nomad/state: subscribe/unsubscribe all watch items while holding the lock
2015-10-30 08:46:03 -07:00
Ryan Uber
d21c49dedd
nomad: cleanup and more tests
2015-10-30 08:27:47 -07:00
Ryan Uber
1322b844ca
nomad/state: add watch trigger tests
2015-10-29 21:42:41 -07:00
Ryan Uber
55cb559eae
nomad: support blocking queries on eval-specific allocations
2015-10-29 16:20:57 -07:00
Ryan Uber
a0e54d6f62
nomad: support blocking queries on job allocations
2015-10-29 15:32:05 -07:00
Ryan Uber
6b7ca19a76
nomad: export watcher to share between rpc and state store
2015-10-29 14:47:39 -07:00
Ryan Uber
f5f01e6cd2
nomad: add triggering for more types of events
2015-10-29 13:52:15 -07:00
Ryan Uber
526c1c959b
nomad: move state watcher into its own file, add tests
2015-10-29 13:21:25 -07:00
Ryan Uber
eaeec03e1e
nomad: deduplicate watch items with a helper
2015-10-29 12:09:09 -07:00
Ryan Uber
a4ee8929e3
nomad: unify watcher inputs for reusability
2015-10-29 11:59:15 -07:00
Ryan Uber
692e4e371a
nomad: support full table watches for allocations
2015-10-28 19:25:39 -07:00
Ryan Uber
4e70d52e29
nomad: support blocking queries on eval list
2015-10-28 18:34:56 -07:00
Ryan Uber
07b6597353
nomad/state: move methods so we can sanely find them
2015-10-28 18:11:55 -07:00
Ryan Uber
2c4735fbcf
nomad: support blocking queries on nodes
2015-10-28 11:25:35 -07:00
Ryan Uber
04dcd3f440
nomad: use a generic full-table watcher
2015-10-28 11:15:54 -07:00
Ryan Uber
ee44b43f33
nomad: initial pass at blocking queries for jobs
2015-10-27 17:58:04 -07:00
Alex Dadgar
25c2c83d6f
Revert "dont hard code scheduler type name"
...
This reverts commit fb0e0dfc2be596ad435a00a2e131a2000146b1f1.
2015-10-23 16:32:45 -07:00
Alex Dadgar
5b0a9b2469
dont hard code scheduler type name
2015-10-23 16:31:45 -07:00