Commit Graph

70 Commits

Author SHA1 Message Date
Diptanu Choudhury
f390261cd0 Reporting time series of stats 2016-05-28 19:42:34 -07:00
Diptanu Choudhury
01e0ae7753 Added a client API to display resource usage of an allocation 2016-05-28 19:42:34 -07:00
Sean Chittenden
29be52f762 Speling police 2016-05-15 09:41:34 -07:00
Alex Dadgar
ff6028bd56 Test task failure killing TG and fix setting the task as received on a restore 2016-03-25 12:51:40 -07:00
Alex Dadgar
73419c2691 kill tasks in alloc when one fails 2016-03-25 12:50:25 -07:00
Alex Dadgar
77f5c6eab0 Merge pull request #975 from hashicorp/f-rename-complete-alloc
Successful allocations are marked as complete instead of dead
2016-03-25 10:35:11 -07:00
Alex Dadgar
e0699c2abb Successful allocations are marked as complete instead of dead 2016-03-23 18:08:19 -07:00
Diptanu Choudhury
9a71225b9e Removing references to old consul services and adding consul config to executor context 2016-03-23 12:19:19 -07:00
Alex Dadgar
ff48998942 Avoid serializes Allocation.Resources 2016-03-01 14:09:25 -08:00
Alex Dadgar
e0224b8a35 Refactor task runner to include driver starting into restart policy and add recoverable errors 2016-02-28 16:56:05 -08:00
Diptanu Choudhury
7f8f6712c5 Adding version information to snapshots 2016-02-24 19:06:30 -08:00
Alex Dadgar
48eff00427 address feedback 2016-02-21 21:32:32 -08:00
Alex Dadgar
6b3c22e91a Batch client allocation updates to the server 2016-02-21 21:15:02 -08:00
Alex Dadgar
a0aeb3e1d4 Reduce alloc lock contention in client 2016-02-19 19:51:55 -08:00
Alex Dadgar
312cdb51b7 import 2016-02-19 16:31:04 -08:00
Alex Dadgar
6427d917ac Better comment 2016-02-19 16:02:48 -08:00
Alex Dadgar
73733a8542 Fixes 2016-02-19 15:49:32 -08:00
Alex Dadgar
eb76d6d623 Client stores when it receives a task 2016-02-19 14:49:43 -08:00
Alex Dadgar
f6cec37963 Increase Alloc channel buffers 2016-02-18 20:43:48 -08:00
Alex Dadgar
f408679a98 Unlock in error path 2016-02-11 08:38:16 -08:00
Alex Dadgar
48de53aed1 Strip as much copystructure as possible 2016-02-10 17:54:43 -08:00
Alex Dadgar
5b3792a509 safe but slow 2016-02-10 13:44:53 -08:00
Alex Dadgar
b290b8ef79 Update the consul service when the task/alloc changes 2016-02-06 17:08:20 -08:00
Alex Dadgar
fb010e2c5d Small fixes 2016-02-04 14:19:27 -08:00
Alex Dadgar
c89e97084d Fix AllocRunner not capturing destroy signal and tests 2016-02-04 13:09:53 -08:00
Alex Dadgar
03aca9887b Client handles updates to KillTimeout and Restart Policy 2016-02-03 19:43:44 -08:00
Alex Dadgar
5d297a446f Move restart tracker creation into task runner 2016-02-03 16:16:48 -08:00
Alex Dadgar
a2132950a5 Restart on-success shouldn't be user specifiable 2016-02-02 17:35:06 -08:00
Alex Dadgar
019883c5b1 Clean interaction between alloc-runner and task-runner 2016-02-02 11:09:29 -08:00
Alex Dadgar
c0ab75a7f9 Don't share task state with the alloc in the task runner 2016-02-01 17:47:53 -08:00
Alex Dadgar
3b90539fe9 Fix locks and use task runners state not alloc state 2016-02-01 15:43:59 -08:00
Alex Dadgar
410ae593e7 Fix double pull with introduction of AllocModifyIndex 2016-02-01 15:43:59 -08:00
Alex Dadgar
b46bb0a02d Make NewRestartTracker private 2015-12-18 12:17:54 -08:00
Alex Dadgar
3122433b47 merge 2015-12-18 12:17:13 -08:00
Diptanu Choudhury
d4d7572604 Making the allocs hold service ids 2015-12-14 15:08:35 -08:00
Diptanu Choudhury
b0c8cf6e36 Renamed consul client to service 2015-11-24 12:34:26 -08:00
Diptanu Choudhury
27819a8b33 Making sure we sync the real state of services of a Task with Consul 2015-11-18 18:35:22 -08:00
Diptanu Choudhury
9a578c5c0d Added the implementation of consul client 2015-11-18 00:50:45 -08:00
Alex Dadgar
b692bcd0b4 Fix the capacity 2015-11-16 15:14:21 -08:00
Alex Dadgar
f4b461f97a Track Task State in the client and capture Wait results 2015-11-16 15:14:21 -08:00
Diptanu Choudhury
007fc74fc1 Saving state of the Task Runner while it's trying to update it 2015-11-12 15:53:42 -08:00
Alex Dadgar
aec33179e5 Merge pull request #408 from hashicorp/f-client-restore
Client Restore State Fixes
2015-11-11 12:32:11 -08:00
Diptanu Choudhury
bd82b0f1ce Returning back if alloc runner isn't saved 2015-11-09 17:04:53 -08:00
Diptanu Choudhury
056d113ded Exctracted a method to save the alloc runner state 2015-11-09 16:59:02 -08:00
Diptanu Choudhury
d6de54836e Inlining error check 2015-11-09 16:45:42 -08:00
Diptanu Choudhury
a797f11f74 Refactored Save State of Alloc runner 2015-11-09 16:15:11 -08:00
Alex Dadgar
d885c6807a Client restores state properly 2015-11-09 15:55:31 -08:00
Diptanu Choudhury
b350fc8f7f Returning once we have an error while saving a task that doesn't exist 2015-11-09 12:44:14 -08:00
Diptanu Choudhury
17cab6ebd7 Updating snapshots of a TaskRunner when status of Task changes 2015-11-09 12:36:07 -08:00
Diptanu Choudhury
fb8f922f2e Passing in the AllocID to exec context so that it can be used in the drivers 2015-11-05 18:34:04 -08:00