Commit Graph

17 Commits

Author SHA1 Message Date
Michael Schurter
53a4b3fe99 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
Alex Dadgar
a62e412b88 Refactor - wip 2018-06-12 10:23:45 -07:00
Alex Dadgar
3f1ccf7278 Respond to comments 2017-05-09 10:50:24 -07:00
Alex Dadgar
e22393aeb8 Restore state + upgrade path 2017-05-02 18:21:49 -07:00
Alex Dadgar
9def7e1a14 Don't deepcopy job when retrieving copy of Alloc
This PR removes deepcopying of the job attached to the allocation in the
alloc runner. This operation is called very often so removing reflect
from the code path and the potentially large number of mallocs need to
create a job reduced memory and cpu pressure.
2017-05-01 14:50:34 -07:00
Michael Schurter
73e99211f6 Fix string formatting 2016-12-01 11:22:51 -08:00
Michael Schurter
6f2b09f676 Add sanity check to SaveState
Also just reuse the task states snapshot taken by `Alloc()` instead of
doing a redundant copy.
2016-09-02 16:07:06 -07:00
Cameron Davison
aad6203b6d write state to temp file and then rename 2016-06-27 12:29:33 -05:00
Sean Chittenden
7db2eb03c4 Use consul/lib's RandomStagger
Removes four redundant copies of the method in the process.
2016-06-10 15:48:36 -04:00
Alex Dadgar
410ae593e7 Fix double pull with introduction of AllocModifyIndex 2016-02-01 15:43:59 -08:00
Ryan Uber
e4c29dc579 client: alloc dirs tolerate missing directories 2015-09-11 20:32:55 -07:00
Armon Dadgar
8a02dbc481 Use a single implementation of GenerateUUID 2015-09-07 15:23:03 -07:00
Armon Dadgar
17e8860a03 client: adding state save helpers 2015-08-29 18:03:00 -07:00
Armon Dadgar
5ac8546c99 client: working with alloc diffs 2015-08-23 14:54:52 -07:00
Armon Dadgar
398d1b723a client: alloc diffing 2015-08-23 14:47:51 -07:00
Armon Dadgar
5e8d4ef647 client: register on start 2015-08-20 17:49:04 -07:00
Armon Dadgar
feabeb8167 client: skeleton package 2015-08-20 16:07:26 -07:00