Commit Graph

4509 Commits

Author SHA1 Message Date
Jake Champlin
97fe2a430e Formatting changes 2016-06-21 17:33:40 -04:00
Jake Champlin
ea38f0911a Remove debugging, add newline to website docs 2016-06-21 16:49:12 -04:00
Jake Champlin
46c0fde91f Update from comments, initial test function 2016-06-21 16:46:42 -04:00
Jake Champlin
82b529f81a Read Nomad Jobfile from STDIN if specified.
Allows `nomad run` to read a nomad jobfile from stdin. This allows
templating, and in-memory configuration to occur without writing a
static Nomad jobfile.
2016-06-21 13:50:18 -04:00
Alex Dadgar
e72a64e9f8 Website update 2016-06-20 22:10:12 -07:00
Alex Dadgar
5d3e65e883 Merge pull request #1326 from hashicorp/b-handle-max-plans
Handle max plans evaluation in generic scheduler
2016-06-20 18:00:21 -07:00
Alex Dadgar
5468a74d4e test for max plan 2016-06-20 17:56:49 -07:00
Alex Dadgar
1ea4205295 Handle max plans 2016-06-20 17:43:02 -07:00
Alex Dadgar
8231264ead Merge pull request #1325 from hashicorp/emit-stats-remove-pids
Not emitting per-pid stats and added the total ticks consumed by a Task
2016-06-20 17:33:26 -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
9269f70b77 changelog 2016-06-20 13:50:49 -07:00
Alex Dadgar
fc4d489d7e Merge pull request #1322 from hashicorp/b-docker-logs-splicing
Make line copy to avoid being overriden by subsequent scans
2016-06-20 13:17:49 -07:00
Alex Dadgar
7cd4866c89 Make line copy to avoid being overriden by subsequent scans 2016-06-20 13:14:43 -07:00
Alex Dadgar
3c578fccde Merge pull request #1320 from hashicorp/b-nan
Guard against NaN in disk stats
2016-06-20 10:39:18 -07:00
Alex Dadgar
0b3a39b47f guard against NaN 2016-06-20 10:29:46 -07:00
Alex Dadgar
670af92d7b Merge pull request #1319 from hashicorp/b-coarse-lock
finer grain locking on LatestAllocStats
2016-06-20 10:19:55 -07:00
Alex Dadgar
144f277226 finer grain locking 2016-06-20 10:19:06 -07:00
Diptanu Choudhury
2eac9d3bf9 Merge pull request #1316 from tbartelmess/patch-1
Fixed a typo
2016-06-18 14:05:58 -07:00
Thomas Bartelmess
b1702ccba0 Fixed a typo 2016-06-18 08:20:32 -04:00
Alex Dadgar
1f69d7d172 Merge pull request #1314 from hashicorp/f-protect-alloc-nil
Guard against bad restore in alloc runner
2016-06-17 15:17:20 -07:00
Alex Dadgar
60aa776403 remove bind_addr from test config 2016-06-17 15:05:03 -07:00
Alex Dadgar
80edb57a6f Guard against bad restore 2016-06-17 14:58:53 -07:00
Alex Dadgar
213f21df45 remove resolving client rpc addr 2016-06-17 14:55:37 -07:00
Alex Dadgar
8cdb590298 Driver tests use client default config 2016-06-17 14:24:49 -07:00
Alex Dadgar
176d402128 changelog 2016-06-17 14:15:57 -07:00
Sean Chittenden
fbfbcd7960 Merge pull request #1313 from hashicorp/b-update-gopsutils
Update gopsutils
2016-06-17 13:42:08 -07:00
Sean Chittenden
800d1db732 Improve the error messages when obtaining node and alloc stats 2016-06-17 13:24:10 -07:00
Sean Chittenden
59666bad74 Lump this fix in with gopsutils: guard against errors from stats. 2016-06-17 13:24:10 -07:00
Sean Chittenden
2224c77865 Update gopsutils 2016-06-17 13:24:10 -07:00
Sean Chittenden
9656a2045c Initialize the stats helpers before accessing them for the first time 2016-06-17 13:23:30 -07:00
Sean Chittenden
554ad594f6 Merge pull request #1307 from hashicorp/f-fingerprint-cpus
F fingerprint cpus
2016-06-17 12:23:40 -07:00
Sean Chittenden
cb792ea036 Merge pull request #1310 from hashicorp/b-logger
Create and pass only one `logger` object around per Agent
2016-06-17 12:16:35 -07:00
Sean Chittenden
b66c1cc176 Merge pull request #1309 from hashicorp/b-fix-consul-tls
Teach config.ConsulConfig how to construct a consulapi TLS client.
2016-06-17 12:16:07 -07:00
Sean Chittenden
e26606acfd Memoize the CPU stats. Error if CPU fingerprinting fails. 2016-06-17 12:13:53 -07:00
Alex Dadgar
30edb676fa debug message when stopping container 2016-06-17 11:52:44 -07:00
Sean Chittenden
e42f7d5c23 Record and use only the first Mhz from the CPU fingerprinter.
Assume all cores are the same speed.
2016-06-17 11:06:57 -07:00
Sean Chittenden
451c685f1c Provide nomad.Config with a default LogOutput of os.StdErr 2016-06-17 06:44:10 -07:00
Sean Chittenden
bcf0929c95 Pass a logger arg to NewClient and NewServer 2016-06-16 23:29:23 -07:00
Sean Chittenden
d8d78d72f2 Remove the shutdownCh as an argument, it was already present in the receiver 2016-06-16 23:15:41 -07:00
Sean Chittenden
5edc1e8d32 Remove the FreeBSD exclusion rule.
Other *NIX systems may be eligible for being removed from this list
but I am not in a position to support or test them at present.
2016-06-16 23:07:13 -07:00
Sean Chittenden
7ffde66c6d Improve FreeBSD's CPU detection. Cherrypicked from shirou/gopsutil#219. 2016-06-16 23:07:13 -07:00
Sean Chittenden
b0490efb38 In the debug log, split the unit from the measurement
awk(1) friendly is UNIX(tm) friendly.
2016-06-16 23:07:13 -07:00
Sean Chittenden
e0b4f7a080 Warn when we're unable to fingerprint the CPU Mhz 2016-06-16 23:07:13 -07:00
Sean Chittenden
a6dc002415 Explicitly call cpu.Counts() to determine the CPU core count
Much safer than counting the number of InfoStat structs returned.
2016-06-16 23:07:13 -07:00
Sean Chittenden
c093f4caf5 Teach config.ConsulConfig how to construct a consulapi TLS client.
Said differently, centralize the creation of consul's client config
in one place and use it everywhere.
2016-06-16 22:51:06 -07:00
Sean Chittenden
5c118d8fdf Fix tests 2016-06-16 22:26:45 -07:00
Sean Chittenden
1c544280a4 Update the docs for installing from source 2016-06-16 21:42:47 -07:00
Sean Chittenden
e5f65e5c7c Fix tests, don't take the address of DefaultConsulCommand() 2016-06-16 21:21:39 -07:00
Sean Chittenden
105ba1f177 Ignore log files 2016-06-16 21:04:09 -07:00
Sean Chittenden
77b2501ec5 Merge pull request #1308 from hashicorp/b-clenaup-consulconfig-defaults
Create config.DefaultConsulConfig()
2016-06-16 20:58:46 -07:00