Commit Graph

12815 Commits

Author SHA1 Message Date
Michael Schurter f473cd03d6 tr: start update/shutdown logic 2018-10-16 16:53:29 -07:00
Michael Schurter 637ef264ae Copy TR.Config vals to TR
I think I like this pattern better as some Config vals are mutable
(Alloc) and some aren't and some are used to derive other values and
never used directly.

Promoting them onto the TR struct is a little more work but is hopefully
more clear as to how each value is used.
2018-10-16 16:53:29 -07:00
Michael Schurter 0f7dcfdc9a example redis job "runs" on arv2! see below
Tons left to do and lots of churn:
1. No state saving
2. No shutdown or gc
3. Removed AR factory *for now*
4. Made all "Config" structs local to the package they configure
5. Added allocID to GC to avoid a lookup

Really hating how many things use *structs.Allocation. It's not bad
without state saving, but if AllocRunner starts updating its copy things
get racy fast.
2018-10-16 16:53:29 -07:00
Michael Schurter 9a6aa38b0f begin adding AllocRunner.Update 2018-10-16 16:53:29 -07:00
Michael Schurter eae54e2954 artifact task hook 2018-10-16 16:53:29 -07:00
Alex Dadgar b9bed81e6e Initial V2 alloc runner 2018-10-16 16:53:28 -07:00
Preetha dddde8445e
Merge pull request #4791 from hashicorp/f-fix-resource-type
Change CPU/Disk/MemoryMB to int everywhere in new resource structs
2018-10-16 19:44:51 -04:00
Preetha Appan 22aee7294e
Merge branch 'f-fix-resource-type' of github.com:hashicorp/nomad into f-fix-resource-type 2018-10-16 18:30:12 -05:00
Preetha Appan 53c3f8151b
fix linting 2018-10-16 18:29:49 -05:00
Alex Dadgar 8f267ed481
Merge pull request #4790 from hashicorp/f-block-attrs
Add BlockAttrs
2018-10-16 15:37:15 -07:00
Alex Dadgar a78cefec18 use int64 2018-10-16 15:34:32 -07:00
Preetha Appan 7c0d8c646c
Change CPU/Disk/MemoryMB to int everywhere in new resource structs 2018-10-16 16:21:42 -05:00
Alex Dadgar 3e7008c2dc Add BlockAttrs 2018-10-15 20:47:38 -07:00
Alex Dadgar 06719d0b5a
Merge pull request #4783 from hashicorp/f-device-scheduling
Device constraint checking
2018-10-15 15:31:32 -07:00
Alex Dadgar f5a76d8411 review comments 2018-10-15 15:31:13 -07:00
Alex Dadgar b94505b256
Merge pull request #4780 from hashicorp/f-device-attributes
Device fingerprinting uses Attribute object
2018-10-15 13:37:49 -07:00
Alex Dadgar 6b11abaccd
Merge pull request #4779 from hashicorp/f-attributes-typed
Attribute object that supports units and comparison
2018-10-15 13:16:36 -07:00
Alex Dadgar 4098d2e99c fix typos 2018-10-15 13:15:58 -07:00
Charlie Voiselle b3f2843059
Merge pull request #4784 from roansong/master
Typo fix
2018-10-15 06:49:55 -07:00
Roan Song 80c09229c7 Typo fix 2018-10-15 11:36:57 +02:00
Alex Dadgar 7ecd65109a Check constraints on devices 2018-10-14 13:35:47 -07:00
Alex Dadgar 5284554fcc rework device checker 2018-10-13 16:47:53 -07:00
Alex Dadgar f9b056e1d1 Replace attributes map with new Attribute object 2018-10-13 14:08:58 -07:00
Alex Dadgar 04ba425dd5 validate constraints/affinities 2018-10-13 12:27:49 -07:00
Alex Dadgar 1089e13b14 add to stack 2018-10-13 12:27:49 -07:00
Alex Dadgar 9b5aaac410 Device feasability checker 2018-10-13 12:27:49 -07:00
Alex Dadgar bfb4caa2e7 node devices 2018-10-13 12:27:49 -07:00
Alex Dadgar 5fc9a95201 Use Attribute in device fingerprinting 2018-10-13 11:43:06 -07:00
Preetha 9e7ec4892e
Merge pull request #4772 from sportebois/b-fix-missing-ref-in-docs
B fix missing ref in docs
2018-10-13 11:51:45 -04:00
Alex Dadgar c31a234fb3 fmt -s 2018-10-12 15:34:21 -07:00
Alex Dadgar cbb5f21112 New parser and comparison 2018-10-12 15:25:34 -07:00
Alex Dadgar 364180b396 Units defined and parsing 2018-10-11 23:30:28 -07:00
Alex Dadgar be91b5f3ac
Merge pull request #4773 from hashicorp/f-device-pars
parse affinities and constraints on devices
2018-10-11 14:53:10 -07:00
Alex Dadgar 5a07f9f96e parse affinities and constraints on devices 2018-10-11 14:05:19 -07:00
Sébastien Portebois 7bea97366c Add missing ref for reschedule and migrate in job and group docs 2018-10-10 20:55:50 -04:00
Sébastien Portebois b00c580de1 Fix variable interpolation "active" state in docs menu 2018-10-10 20:37:49 -04:00
Preetha 939c3fd85f
Update CHANGELOG.md 2018-10-10 10:33:39 -05:00
Michael Schurter 45250e808f
Merge pull request #4741 from sportebois/b-fix-task-docs-links
docs: fix links in task job specification
2018-10-09 16:19:12 -05:00
Chris Baker a16fe95de9
Merge pull request #4762 from hashicorp/f-678-check-broken-links
docs: check website for broken links
2018-10-09 16:35:06 -04:00
Chris Baker d7aa8e6285 website testing: swapped out trap in website testing script for a simpler error catch 2018-10-09 16:06:12 -04:00
Chris Baker 6cd30be1e7 website testing: minor formatting changes, passing in middleman version from outer Makefile 2018-10-09 15:28:46 -04:00
Preetha 54ef3da112
Update CHANGELOG.md 2018-10-09 13:24:53 -05:00
Preetha 9bc65bd202
Merge pull request #4764 from hashicorp/b-reconciler-markstop-filterterminal
Allocs already in terminal state do not need to be updated in the reconciler
2018-10-09 14:22:36 -04:00
Alex Dadgar 10da0ad93b
Merge pull request #4763 from hashicorp/f-devices-parse
Parse devices in job spec
2018-10-09 08:59:25 -07:00
Sébastien Portebois e04c7f5060 Fix the service stanza link in task documentation
Only a single service link target was set for both the service job spec and the Consul-connect integration.
2018-10-09 09:39:33 -04:00
Preetha Appan 1574e898af
Fix bug in reconciler where terminal allocs on a job already stopped were unnecessarily updated 2018-10-08 21:03:49 -05:00
Alex Dadgar a2a56a930c Diff 2018-10-08 17:02:58 -07:00
Alex Dadgar 87cacb427f parse devices 2018-10-08 16:09:41 -07:00
Alex Dadgar 6b08b9d6b6 Define device request structs 2018-10-08 15:38:03 -07:00
Alex Dadgar 38e75bdffe
Merge pull request #4750 from hashicorp/f-allocated-resources
Split Resource struct
2018-10-08 14:50:40 -07:00