Commit Graph

149 Commits

Author SHA1 Message Date
Diptanu Choudhury
3932eb8c7b Fixed the svc id generation scheme while pruning services 2016-06-07 08:14:11 -07:00
Alex Dadgar
c1c175010a Handle errors during stats collection 2016-06-03 14:23:18 -07: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
Diptanu Choudhury
fe7f05a6e7 Pushing host stats 2016-05-31 04:05:47 +02:00
Diptanu Choudhury
15e79c3783 Changing the api of the stats endpoints 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
f16191c297 comments 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
f765e82a11 Stopping the metrics collector timers using defer and starting to collect host stats right away 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
1c635ead2d Fixing the alloc runner tests 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
3a8b15242f Added comments 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
73f05942f2 Refactored the api for NewHostStatsCollector 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
cf8861e3e6 Renamed monitorUsage method 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
2b1f3896cc Acquiring locks before iterating allocations and tasks 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
aee9db02d5 Showing host resource usage stats 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
72c60d6b99 Added some docs to resource stats endpoint 2016-05-28 19:42:34 -07:00
Diptanu Choudhury
3f0c42cca3 Making the conversion to Stats simpler 2016-05-28 19:42:34 -07:00
Diptanu Choudhury
fe8f640cc8 Collecting host stats 2016-05-28 19:42:34 -07:00
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
Diptanu Choudhury
e3fffa75aa Removing addition of the client service while reconciling services 2016-05-13 10:34:21 -07:00
Diptanu Choudhury
2216944676 Fixed an agent test 2016-05-11 17:26:53 -07:00
Diptanu Choudhury
de660c4acf Removed allocID and task name from consul service 2016-05-11 16:26:41 -07:00
Diptanu Choudhury
4266e25e3c Using consul config from client config instead of reading from client options 2016-05-11 16:10:57 -07:00
Diptanu Choudhury
a2237a6057 Implemented registering client and server services 2016-05-11 16:07:02 -07:00
Diptanu Choudhury
2663ef9d6a Refactored the signature of NewConsulService 2016-05-11 15:22:58 -07:00
Sean Chittenden
fd9bcabaa8 Emit various debugging information with the results of the fingerprinter 2016-05-09 12:21:51 -07:00
Diptanu Choudhury
ba9ff3b536 Reading consul attr from copy of node attributes 2016-04-11 20:13:28 -04:00
Alex Dadgar
36a75054d8 When reserving ports don't reserve network interface speed 2016-04-07 15:47:02 -07:00
Diptanu Choudhury
036797bdd8 Watching for node updates after registration completes 2016-04-01 13:41:52 -07:00
Diptanu Choudhury
3ec66327bb Making the drivers fingerprint periodically if they are configured to do so 2016-03-31 15:15:00 -07:00
Diptanu Choudhury
bea0560234 Client not syncing services with consul until fingerprinting succeeds 2016-03-30 21:51:50 -07:00
Diptanu Choudhury
f8db6a433f Using tickers instead of creating new timers 2016-03-25 14:18:04 -07:00
Diptanu Choudhury
12dc439949 Changing the logic of keep services 2016-03-24 19:19:13 -07:00
Diptanu Choudhury
62249fe79f Added an impl for Nomad Checks 2016-03-24 19:00:24 -07:00
Diptanu Choudhury
6c5f546e86 Fixing check registration in perform sync 2016-03-24 14:12:09 -07:00
Diptanu Choudhury
bca2793d1c Using a helper method to copy taskStates 2016-03-23 19:11:54 -07:00
Diptanu Choudhury
408fea015d Reworded the log line 2016-03-23 19:04:59 -07:00
Diptanu Choudhury
a6e382f5fb Locking the task states 2016-03-23 19:02:29 -07:00
Diptanu Choudhury
ef52a7a2c2 Renamed vars and methods 2016-03-23 18:21:27 -07:00
Diptanu Choudhury
167f2f0937 Locking on alloc runners before syncing with consul 2016-03-23 17:54:32 -07:00
Diptanu Choudhury
1f6137aba5 Using the name of the task and the alloc id in the service name 2016-03-23 17:35:29 -07:00
Diptanu Choudhury
0e4a236e6a Added comments 2016-03-23 15:39:25 -07:00
Diptanu Choudhury
56ccea8f18 Client sync with consul and removed unwanted services 2016-03-23 15:28:55 -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
8f9bd6b198 Merge pull request #910 from hashicorp/f-reserved-resources
Reserve Client Resources + Config Validation
2016-03-15 21:09:13 -07:00
Dmitry Smirnov
2e755cd7e8 codespell: minor spelling corrections
Signed-off-by: Dmitry Smirnov <onlyjob@member.fsf.org>
2016-03-16 05:28:31 +11:00
Alex Dadgar
4293811651 reserve resources on the node 2016-03-13 19:05:41 -07:00
Alex Dadgar
cddda67e30 client: fix bug where pushing allocs is skipped 2016-03-10 16:18:20 -08:00
Alex Dadgar
2524231738 up cached connection time 2016-03-09 10:37:56 -08:00