Commit Graph

4436 Commits

Author SHA1 Message Date
Sean Chittenden
f190ebfcde Update github.com/hashicorp/go-immutable-radix 2016-06-16 15:55:02 -07:00
Sean Chittenden
669b48f357 Noop upgrade for armon/go-radix 2016-06-16 15:54:23 -07:00
Sean Chittenden
d33f55a210 Remove hashicorp/raft/bench 2016-06-16 15:52:35 -07:00
Sean Chittenden
4935c8e548 No updates for hashicorp/raft-boltdb 2016-06-16 14:54:15 -07:00
Sean Chittenden
d881e3c8df Update hashicorp/raft 2016-06-16 14:53:03 -07:00
Sean Chittenden
a38e3ce26a 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
5559e013bf Only auto-join clients if client_auto_join is true 2016-06-16 14:47:21 -07:00
Sean Chittenden
123e77c945 Merge pull request #1297 from hashicorp/b-golint
A few linter fixes
2016-06-16 14:44:51 -07:00
Sean Chittenden
8e1777ae3a Test for errors 2016-06-16 14:43:46 -07:00
Sean Chittenden
ed598bf584 Don't assign to an atomic w/o using atomic setter func 2016-06-16 14:43:46 -07:00
Sean Chittenden
fbccab8aae Changelog++: server autojoin 2016-06-16 14:43:17 -07:00
Sean Chittenden
5708560527 Merge pull request #1276 from hashicorp/f-consul-server-autojoin
Teach Nomad servers how to fall back to Consul.
2016-06-16 14:40:45 -07:00
Sean Chittenden
b82f872a82 Fix up various error handling 2016-06-16 14:40:09 -07:00
Alex Dadgar
9bf6fc51f1 Merge pull request #1296 from hashicorp/d-status-cli
Update status docs
2016-06-16 14:31:11 -07:00
Sean Chittenden
9cd44ce695 Immediately query Consul upon initialization if we have no peers.
Also don't attempt to join the Server with itself.
2016-06-16 14:27:10 -07:00
Diptanu Choudhury
08fdc69d9c Merge pull request #1295 from hashicorp/remove-stats-config
Removed the stats block from client configuration
2016-06-16 23:07:19 +02:00
Alex Dadgar
ff4b222f23 Update status docs 2016-06-16 14:00:45 -07:00
Diptanu Choudhury
69adab51d9 Merge pull request #1285 from hashicorp/fix-selinux-options
Added a client options for setting selinux options
2016-06-16 22:45:24 +02:00
Diptanu Choudhury
4ecba7c7c2 Changed the client options for docker volume selinux labels 2016-06-16 21:41:02 +01:00
Diptanu Choudhury
f10df99e5d Removed the stats block from client configuration 2016-06-16 21:30:29 +01:00
Alex Dadgar
322429b6e6 Merge branch 'master' of github.com:hashicorp/nomad 2016-06-16 13:12:42 -07:00
Alex Dadgar
eabb6b02df changelog 2016-06-16 13:12:34 -07:00
Alex Dadgar
eb9a986854 Merge pull request #1294 from hashicorp/b-task-runner-panic
Guard against restoring a nil task in task_runner
2016-06-16 13:11:13 -07:00
Sean Chittenden
a4cfb2b797 Rework server_auto_join to use a timer instead of the peer count.
It is perfectly viable for an admin to downsize a Nomad Server cluster
down to 1, 2, or `num % 2 == 0` (however ill-advised such activities
may be).  And instead of using `bootstrap_expect`, use a timeout-based
strategy.  If the `bootstrapFn` hasn't observed a leader in 15s it will
fall back to Consul and will poll every ~60s until it sees a leader.
2016-06-16 12:14:03 -07:00
Sean Chittenden
4d149888cc Define BootstrapExepct as an int32 so it can be manipulated atomically. 2016-06-16 12:00:15 -07:00
Alex Dadgar
041e6eb5f3 Guard against restoring a nil task in task_runner 2016-06-16 11:55:40 -07:00
Alex Dadgar
d1df351e8f Merge pull request #1293 from hashicorp/d-port-map-docks
Correct the dynamic port specification in Docker docs
2016-06-16 11:28:41 -07:00
Alex Dadgar
bcb7fa1371 correct the dynamic port specification 2016-06-16 11:27:42 -07:00
Sean Chittenden
a915cdc337 Use the %+q verb in log messages (vs %q). 2016-06-16 11:03:51 -07:00
Alex Dadgar
a15beb80c4 remove consul reference 2016-06-15 17:23:02 -07:00
Alex Dadgar
ee240d5162 remove trace 2016-06-15 15:47:59 -07:00
Alex Dadgar
03c5cc6125 increase timeout 2016-06-15 15:42:44 -07:00
Alex Dadgar
df01853ae6 Merge pull request #1289 from hashicorp/f-plan-periodic-launch
Plan displays launch time of periodic jobs
2016-06-15 15:31:18 -07:00
Alex Dadgar
c692478a39 Give relative time 2016-06-15 15:28:35 -07:00
Alex Dadgar
e8b69052aa plan displays launch time of periodic jobs 2016-06-15 13:34:45 -07:00
Alex Dadgar
67b4f40bd8 Merge pull request #1288 from hashicorp/b-system-sched-failed
Track failed allocations properly in System scheduler
2016-06-15 13:10:51 -07:00
Alex Dadgar
5d69584577 track failed allocations properly 2016-06-15 12:58:19 -07:00
Sean Chittenden
bd9fbd24c0 Use the config's log output 2016-06-15 12:40:51 -07:00
Sean Chittenden
fa26e1ff64 Namespace the log messages 2016-06-15 12:40:51 -07:00
Sean Chittenden
3daf51489b Do not consider the number of Serf members when considering falling back to Consul. 2016-06-15 12:40:51 -07:00
Sean Chittenden
ecd13f86c2 Guard the auto-join functionality behind its consul.server_auto_join tunable 2016-06-15 12:40:51 -07:00
Sean Chittenden
d7a0401d72 Shuffle all datacenters vs only the nearest N datacenters.
Per discussion, we want to be aggressive about fanning out vs possibly
fixating on only local DCs.  With RPC forwarding in place, a random walk
may be less optimal from a network latency perspective, but it is guaranteed
to eventually result in a converged state because all DCs are candidates
during the bootstrapping process.
2016-06-15 12:40:51 -07:00
Sean Chittenden
972b4fb3bc Bump various Consul search limits
Client: Search limit increased from 4 random DCs to 8 random DCs, plus nearest.
Server: Search factor increased from 3 to 5 times the bootstrap_expect.

This should allow for faster convergence in large environments (e.g.
sub-5min for 10K Consul DCs).
2016-06-15 12:40:51 -07:00
Sean Chittenden
c8ac6524ae Short-circuit the bootstrapFn if we have a leader 2016-06-15 12:40:51 -07:00
Sean Chittenden
ea89976d9d Teach Nomad servers how to fall back to Consul. 2016-06-15 12:40:51 -07:00
Sean Chittenden
3f1c437890 Merge pull request #1287 from hashicorp/f-improve-client-consul-bootstrap
client.consul_bootstrap: Use Status.Peers instead of Status.Ping
2016-06-15 12:38:13 -07:00
Alex Dadgar
73d565aabc Use Status.Peers instead of Status.Ping 2016-06-15 12:00:20 -07:00
Diptanu Choudhury
be503a2b32 Merge pull request #1273 from hashicorp/docs-stats
Added the docs for the stats http api endpoint
2016-06-15 15:46:38 +02:00
Diptanu Choudhury
625dbb4170 Fixed the nav links to stats APIs 2016-06-15 15:46:17 +02:00
Diptanu Choudhury
67b6bd6a14 Added the links to the stats pages on the sidebar 2016-06-15 12:11:56 +02:00