Commit Graph

124 Commits

Author SHA1 Message Date
Ben Barnard
ce94317d00 Replace "the the" with "the" in documentation and comments 2016-10-11 15:31:40 -04:00
Alex Dadgar
d7eecc6640 Comments 2016-10-06 15:21:59 -07:00
Alex Dadgar
4cefd048f2 Tests 2016-10-06 15:17:34 -07:00
Alex Dadgar
d200a835c9 Fix handling of restart in TaskEvents 2016-10-06 15:06:54 -07:00
Alex Dadgar
b976633e4d Start of integration 2016-10-06 15:05:49 -07:00
Alex Dadgar
d49dda45e3 Merge pull request #1713 from hashicorp/f-alloc-runner-vault
Vault integration in client
2016-09-20 16:15:55 -07:00
Diptanu Choudhury
0150970620 Ensuring that we are not emitting stats when handle is nil (#1723)
* Ensuring that we are not emitting stats when handle is nil

* Updated the changelog
2016-09-20 11:29:34 -07:00
Alex Dadgar
c89fd0eb08 Clean up vault client 2016-09-14 18:10:56 -07:00
Alex Dadgar
bec6adb2ee Vault token threaded 2016-09-14 13:30:01 -07:00
Michael Schurter
8d9468d4c3 Lock around saving state
Prevent interleaving state syncs as it could conceivably lead to
empty state files as per #1367
2016-09-02 16:07:06 -07:00
Vishal Nayak
c4744e2632 Merge pull request #1606 from hashicorp/f-vault-client
VaultClient for Nomad client's interactions with Vault
2016-08-30 13:13:54 -04:00
Michael Schurter
40e1ffd6ba Merge pull request #1653 from hashicorp/b-fix-artifact-retry
Don't fail other tasks when retrying artifact get
2016-08-26 09:53:39 -07:00
Michael Schurter
d1da2ce020 Don't fail other tasks when retrying artifact get
The artifact fetching may be retried and succeed, so don't set the task
as dead.

Fixes #1558
2016-08-25 13:16:41 -07:00
Ivo Verberk
a97432107b Don't duplicate TaskKilled event and check for TaskSiblingFailed. 2016-08-25 20:11:10 +02:00
vishalnayak
04fab3bc81 Employ DeriveVaultToken API and flesh-up DeriveToken 2016-08-24 12:29:59 -04:00
Alex Dadgar
1c45799c49 Merge pull request #1580 from hashicorp/f-disk-usage-monitoring
Monitor and enforce shared allocation directory disk usage
2016-08-23 09:49:53 -07:00
Diptanu Choudhury
025f3b424a blocking chained allocations until previous allocation hasn't terminated 2016-08-22 11:34:24 -05:00
Ivo Verberk
13071e9846 Disk resource monitoring and enforcement 2016-08-18 07:59:03 +02:00
Diptanu Choudhury
724a2a2111 Fixed some error messages 2016-08-10 15:17:32 -07:00
Kenjiro Nakayama
59c05eb64b tiny: Return fmt.Errorf instead of duplicated error messages 2016-08-09 08:57:26 +09:00
Diptanu Choudhury
09a199bdbb Merge pull request #1534 from nak3/fix-intask_runner
tiny: print task name and error message for SaveState error
2016-08-08 13:37:25 -04:00
Kenjiro Nakayama
32ce8939c7 tiny: print task name and error message for the SaveState error in task_runner 2016-08-07 13:33:58 +09:00
Kenjiro Nakayama
dd269abeb5 Update GetArtifact by removing unused logger 2016-08-06 23:37:32 +09:00
Diptanu Choudhury
3593649e18 Allow operators to opt into publishing node and alloc metrics 2016-08-01 19:52:20 -07:00
Alex Dadgar
7bb0a2336a Add killing event and mark task as not running when killed 2016-07-21 15:49:54 -07:00
Alex Dadgar
ab7a3b29bb Set running when restoring 2016-06-28 13:47:59 -07:00
Diptanu Choudhury
7ee0dc95f9 Not emitting per-pid stats and added the total ticks consumed by a Task 2016-06-20 17:30:25 -07:00
Alex Dadgar
041e6eb5f3 Guard against restoring a nil task in task_runner 2016-06-16 11:55:40 -07:00
Alex Dadgar
020f8b05d3 only support latest and remove ring buffer 2016-06-12 09:32:38 -07:00
Alex Dadgar
1a7df4e7d2 Allocation resources returned in a struct 2016-06-11 21:04:10 -07:00
Diptanu Choudhury
6db40283fe Emitting client resource usage metrics as guages instead of k/v pairs 2016-06-11 22:17:32 +02:00
Alex Dadgar
cd36c4a7a3 fix channel being nil on restore 2016-06-07 15:03:08 -07:00
Diptanu Choudhury
1e2ebced8d Getting inodes used percent back 2016-06-06 16:10:34 -07:00
Alex Dadgar
c1c175010a Handle errors during stats collection 2016-06-03 14:23:18 -07:00
Diptanu Choudhury
19b3411604 Merge pull request #1226 from hashicorp/f-push-stats
Push Resource Usage stats to remote sinks
2016-06-02 23:14:59 +02:00
Diptanu Choudhury
63dd00a2f3 Enqueing metrics only if they are not nil 2016-06-02 17:14:15 -04:00
Diptanu Choudhury
a9f02036c7 Sending metrics for tasks as well 2016-06-01 16:42:16 +02:00
Alex Dadgar
757bc66321 fix wait result being nil and some panics in the cli 2016-05-31 23:09:05 +00:00
Diptanu Choudhury
c760d5910f Renamed error message in alloc endpoint 2016-05-28 20:03:52 -07:00
Diptanu Choudhury
15e79c3783 Changing the api of the stats endpoints 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
68ec1f37ad Implemented the resource usage ts since a time 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
2571ea61bb Initializing the ring buffer with no cells 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
31af4e0ac4 Changed signature of Allocation Stats Reporter 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
bf6c034fec Making the stats collection interval and number of data points to keep in memory configurable 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
95a3ca8524 Changed the signature of ResourceUsageTS 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
4491c2b0e8 Added disk usage to node status 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
3dc28bd871 Stopping stats collection of tasks which has been destroyed 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
3f0c42cca3 Making the conversion to Stats simpler 2016-05-28 19:42:34 -07:00
Diptanu Choudhury
7d8196d7ea Added some documentation 2016-05-28 19:42:34 -07:00
Diptanu Choudhury
f390261cd0 Reporting time series of stats 2016-05-28 19:42:34 -07:00