Commit Graph

4316 Commits

Author SHA1 Message Date
Alex Dadgar
1a7df4e7d2 Allocation resources returned in a struct 2016-06-11 21:04:10 -07:00
Diptanu Choudhury
149c9d2463 Merge pull request #1259 from hashicorp/fix-node-ticks
Fixed the calculation of the host node ticks
2016-06-11 16:25:34 -07:00
Diptanu Choudhury
658362d248 Removing un-used code 2016-06-12 01:23:49 +02:00
Alex Dadgar
99e6de1b6f changelog 2016-06-11 16:20:59 -07:00
Diptanu Choudhury
73f5c29e38 Fixed the calculation of the host node ticks 2016-06-12 01:14:51 +02:00
Alex Dadgar
490e35da00 Merge pull request #1243 from hashicorp/f-run-modify-index
Add check-index flag to nomad run
2016-06-11 16:12:53 -07:00
Sean Chittenden
9b6e720fbe Merge pull request #1201 from hashicorp/f-dyn-server-list
Dynamic Server Lists/Client Bootstrapping via consul.
2016-06-11 18:58:25 -04:00
Sean Chittenden
006d1a3290 Walk the DCs from nearest to most remote. 2016-06-11 18:52:21 -04:00
Alex Dadgar
a3b1eacfd0 changelog 2016-06-11 15:42:51 -07:00
Alex Dadgar
a5857e49dc Merge pull request #1256 from hashicorp/b-node-gc
Improve partial garbage collection of allocations
2016-06-11 15:41:00 -07:00
Sean Chittenden
8d0b798f1d Walk the DCs from nearest to most remote, no limit on the search. 2016-06-11 18:23:06 -04:00
Sean Chittenden
a8b53b05b4 Prefer %+q over %q in log messages. 2016-06-11 18:17:20 -04:00
Sean Chittenden
183b51d819 Remove default values and use nil for the executor. Much better. 2016-06-11 17:52:09 -04:00
Diptanu Choudhury
e8781fc14d Merge pull request #1258 from hashicorp/fix-statsd-metric-type
Emitting client resource usage metrics as guages instead of k/v pairs
2016-06-11 13:18:52 -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
a9c97cfb19 Don't require slash for node stats 2016-06-11 13:15:57 -07:00
Diptanu Choudhury
b1d4230a4c Merge pull request #1257 from hashicorp/fix-docker-wait
Using a different client for collecting stats and waiting on containers
2016-06-11 12:51:38 -07:00
Diptanu Choudhury
b8fbdb78ca Using a different client for collecting stats and waiting on containers 2016-06-11 20:37:29 +02:00
Diptanu Choudhury
e94037501c Merge pull request #1253 from hashicorp/fix-ticks-task
Calculating the cpu ticks in nomad client
2016-06-11 08:33:12 -07:00
Diptanu Choudhury
d1fdd27f86 Moving the clkspeed code to helper 2016-06-11 17:31:49 +02:00
Sean Chittenden
2879c33c8f Perform a nil-check for Executor's consulServices.
Executors can `Shutdown()` before calling `SyncServices()`.
2016-06-10 23:43:54 -04:00
Sean Chittenden
5331ea7bc6 goling(1) compliance pass (e.g. Rpc* -> RPC) 2016-06-10 23:38:28 -04:00
Sean Chittenden
6819f2b68d Query for the Nomad service across multiple Consul datacenters. 2016-06-10 23:05:14 -04:00
Sean Chittenden
5ffd9707b0 Expose rpcproxy's ServerEndpoint() constructor, newServer() as NewServerEndpoint() 2016-06-10 22:14:03 -04:00
Alex Dadgar
5f394a5aa1 remove vet 2016-06-10 18:46:23 -07:00
Alex Dadgar
7bca84d1a5 Partial GC allocations 2016-06-10 18:32:37 -07:00
Diptanu Choudhury
304403a2f8 Extracted a method for getting clock speed 2016-06-11 02:07:28 +02:00
Diptanu Choudhury
446d3f22f2 Pruning out pids which are no longer present 2016-06-11 01:40:52 +02:00
Diptanu Choudhury
d31034941a Not reset-ing the list of pids if they don't change 2016-06-11 01:19:50 +02:00
Alex Dadgar
8def7be8a8 Merge pull request #1255 from hashicorp/b-infinite-requeue
Only unblock if missed class was added after eval snapshot index
2016-06-10 16:15:26 -07:00
Alex Dadgar
aa96d109ae test 2016-06-10 15:48:59 -07:00
Alex Dadgar
4d31dcd785 Only unblock if missed class was added after eval snapshot index 2016-06-10 15:24:06 -07:00
Diptanu Choudhury
17a0e30068 Checking in the stats helper package 2016-06-10 23:46:33 +02:00
Diptanu Choudhury
4ac1c673aa Implementing the total ticks per task for the docker driver 2016-06-10 23:33:25 +02:00
Diptanu Choudhury
358cdf8f63 Calculating total ticks consumed in the nomad client 2016-06-10 23:14:33 +02:00
Alex Dadgar
9cdd2e0e3c Merge pull request #1254 from hashicorp/b-parse-artifact-options
Don't create options unless necessary
2016-06-10 14:08:00 -07:00
Sean Chittenden
4826728bb9 Fix another unit test not expecting ServiceID 2016-06-10 16:50:35 -04:00
Sean Chittenden
4e543b6d43 Restore old behavior and have AddPrimaryServer() return a pointer to the existing server (vs nil when the server already exists). 2016-06-10 16:46:49 -04:00
Diptanu Choudhury
d696284c03 Using humanize to convert memory usage to MB 2016-06-10 22:24:33 +02:00
Diptanu Choudhury
c13e750a02 Calculating the cpu ticks in nomad client 2016-06-10 22:22:32 +02:00
Sean Chittenden
a0902c3f45 Prevent duplicate servers being added in AddPrimaryServer.
This logic was already present elsewhere and was missed in this one
place.
2016-06-10 15:55:27 -04:00
Sean Chittenden
91582dc875 Always create a consul.Syncer. Use a default Consul Config if necessary. 2016-06-10 15:55:27 -04:00
Sean Chittenden
aff951ca4e Always create a consul.Syncer. Use a default Consul Config if necessary. 2016-06-10 15:55:27 -04:00
Sean Chittenden
61a36a6d54 Commit miss, bump to 5s 2016-06-10 15:54:39 -04:00
Sean Chittenden
2ac7ecb5b8 Remove useless statement 2016-06-10 15:54:39 -04:00
Sean Chittenden
83e3df0b6a Rename listLock to activatedListLock 2016-06-10 15:54:39 -04:00
Sean Chittenden
ecd84f4be7 Nomad does not use Serf at the client level. Use a hard lock. 2016-06-10 15:54:39 -04:00
Sean Chittenden
dbdebcad80 golint(1) police 2016-06-10 15:54:39 -04:00
Sean Chittenden
f07c910131 Formatting nit: remove brackets 2016-06-10 15:54:39 -04:00
Sean Chittenden
a7047bb28f Prefix all log entries in client/rpcproxy with client.rpcproxy 2016-06-10 15:54:39 -04:00