Commit Graph

4479 Commits

Author SHA1 Message Date
Sean Chittenden 9cb649d247 Merge pull request #1307 from hashicorp/f-fingerprint-cpus
F fingerprint cpus
2016-06-17 12:23:40 -07:00
Sean Chittenden 9e287858de 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 c9570350c8 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 21b84fc3e6
Memoize the CPU stats. Error if CPU fingerprinting fails. 2016-06-17 12:13:53 -07:00
Alex Dadgar 27c6398639 debug message when stopping container 2016-06-17 11:52:44 -07:00
Sean Chittenden 686c125fea
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 46e2d54acf
Provide `nomad.Config` with a default `LogOutput` of `os.StdErr` 2016-06-17 06:44:10 -07:00
Sean Chittenden 9a60999100
Pass a logger arg to `NewClient` and `NewServer` 2016-06-16 23:29:23 -07:00
Sean Chittenden c2f96ee6ba
Remove the shutdownCh as an argument, it was already present in the receiver 2016-06-16 23:15:41 -07:00
Sean Chittenden faea8921d6
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 c3235c9569
Improve FreeBSD's CPU detection. Cherrypicked from shirou/gopsutil#219. 2016-06-16 23:07:13 -07:00
Sean Chittenden 4cc90753f8
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 2dcb591cd8
Warn when we're unable to fingerprint the CPU Mhz 2016-06-16 23:07:13 -07:00
Sean Chittenden b8e63411c0
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 871a31a8ec
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 438c1e149b
Fix tests 2016-06-16 22:26:45 -07:00
Sean Chittenden 304f895db5
Update the docs for installing from source 2016-06-16 21:42:47 -07:00
Sean Chittenden 59c54e9aeb
Fix tests, don't take the address of DefaultConsulCommand() 2016-06-16 21:21:39 -07:00
Sean Chittenden 26f3187afb
Ignore log files 2016-06-16 21:04:09 -07:00
Sean Chittenden fe17f90969 Merge pull request #1308 from hashicorp/b-clenaup-consulconfig-defaults
Create config.DefaultConsulConfig()
2016-06-16 20:58:46 -07:00
Sean Chittenden d17af396ca
Create config.DefaultConsulConfig() 2016-06-16 20:41:05 -07:00
Sean Chittenden 8f01a2e638
Allow test flags to be overridden from the environment. 2016-06-16 18:26:31 -07:00
Sean Chittenden fd18eb7fdb
Only register the Client services reaper when `consul.auto_advertise` is enabled 2016-06-16 18:24:58 -07:00
Sean Chittenden 71e3518cf8 Merge pull request #1306 from hashicorp/b-remove-client-rpc
Remove client registration of RPC services, only servers have an RPC …
2016-06-16 18:15:56 -07:00
Sean Chittenden e58c2a2ed4
Remove client registration of RPC services, only servers have an RPC interface 2016-06-16 18:14:59 -07:00
Sean Chittenden 9c703f2119 Merge pull request #1305 from hashicorp/f-autoreg-checks
F autoreg checks
2016-06-16 17:41:25 -07:00
Sean Chittenden 2a2b35d1bc
Use `/v1/agent/servers` (vs `/v1/agent/self`). 2016-06-16 17:40:47 -07:00
Sean Chittenden 26cc057751
Automatically register service checks for HTTP, RPC, and Serf. 2016-06-16 17:34:25 -07:00
Sean Chittenden 25eb3c7e22
Whitespace police 2016-06-16 17:34:09 -07:00
Alex Dadgar 8240e4b3a7 Merge pull request #1304 from hashicorp/d-plan-cli
plan cli docs
2016-06-16 17:24:24 -07:00
Alex Dadgar 2b26259f27 plan cli docs 2016-06-16 17:23:49 -07:00
Alex Dadgar 85548f46af Merge pull request #1299 from hashicorp/d-node-status
Update node-status docs
2016-06-16 17:21:37 -07:00
Sean Chittenden 1ce2cc6141
`conf` -> `config` 2016-06-16 17:05:29 -07:00
Sean Chittenden fc590137d4 Merge pull request #1301 from hashicorp/b-update-hashicorp-raft
Update various `vendor/`ed libs with known good fixes.
2016-06-16 16:46:45 -07:00
Sean Chittenden 1f6211d14e Merge pull request #1303 from hashicorp/b-client_tests
Fix tests for NewServer() in client mode.
2016-06-16 16:35:48 -07:00
Sean Chittenden 015248a67f
Fix tests for NewServer() in client mode.
Pointy-hat: sean-

I'm positive I've done this before.
2016-06-16 16:34:22 -07:00
Sean Chittenden f07cd17590 Merge pull request #1302 from hashicorp/b-typos
Misc typos
2016-06-16 16:20:15 -07:00
Sean Chittenden a658299235
Misc typos 2016-06-16 16:17:17 -07:00
Sean Chittenden 986e76ef80
Noop update for hashicorp/yamux 2016-06-16 16:02:41 -07:00
Sean Chittenden 09ef2694f7
Update github.com/hasicorp/go-memdb 2016-06-16 15:58:50 -07:00
Sean Chittenden edd8cffc3b
Update github.com/hashicorp/serf 2016-06-16 15:57:57 -07:00
Sean Chittenden f46380ab7b
Update github.com/hashicorp/memberlist 2016-06-16 15:55:35 -07:00
Sean Chittenden 5760037a38
Update github.com/hashicorp/go-immutable-radix 2016-06-16 15:55:02 -07:00
Sean Chittenden 8eda8787f2
Noop upgrade for armon/go-radix 2016-06-16 15:54:23 -07:00
Sean Chittenden 96ab442a92
Remove hashicorp/raft/bench 2016-06-16 15:52:35 -07:00
Sean Chittenden fceb494de1
No updates for hashicorp/raft-boltdb 2016-06-16 14:54:15 -07:00
Sean Chittenden 4c30cb915e
Update hashicorp/raft 2016-06-16 14:53:03 -07:00
Alex Dadgar fc8254d157 Update node-status docs 2016-06-16 14:50:41 -07:00
Sean Chittenden 0420c29f3b Merge pull request #1298 from hashicorp/b-auto-join
Only auto-join clients if `client_auto_join` is true
2016-06-16 14:48:27 -07:00
Sean Chittenden 952b6ce7b5
Only auto-join clients if `client_auto_join` is true 2016-06-16 14:47:21 -07:00