Commit graph

4613 commits

Author SHA1 Message Date
Sean Chittenden 65319252b9
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 b0fecbefc1
Define BootstrapExepct as an int32 so it can be manipulated atomically. 2016-06-16 12:00:15 -07:00
Alex Dadgar fe588a2469 Guard against restoring a nil task in task_runner 2016-06-16 11:55:40 -07:00
Alex Dadgar 66ac4ffe94 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 8765c25ce2 correct the dynamic port specification 2016-06-16 11:27:42 -07:00
Sean Chittenden 008d75184b
Use the %+q verb in log messages (vs %q). 2016-06-16 11:03:51 -07:00
Alex Dadgar ea5d11e628 remove consul reference 2016-06-15 17:23:02 -07:00
Alex Dadgar 7375d828e1 remove trace 2016-06-15 15:47:59 -07:00
Alex Dadgar a4826e7471 increase timeout 2016-06-15 15:42:44 -07:00
Alex Dadgar 187f075adb 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 122d035457 Give relative time 2016-06-15 15:28:35 -07:00
Alex Dadgar bf14fd355f plan displays launch time of periodic jobs 2016-06-15 13:34:45 -07:00
Alex Dadgar f6b9920289 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 d44c4761f6 track failed allocations properly 2016-06-15 12:58:19 -07:00
Sean Chittenden 14f9d2a947
Use the config's log output 2016-06-15 12:40:51 -07:00
Sean Chittenden 5b0def194a
Namespace the log messages 2016-06-15 12:40:51 -07:00
Sean Chittenden bffc82d668
Do not consider the number of Serf members when considering falling back to Consul. 2016-06-15 12:40:51 -07:00
Sean Chittenden 324af8d7f1
Guard the auto-join functionality behind its consul.server_auto_join tunable 2016-06-15 12:40:51 -07:00
Sean Chittenden 5e0ced2ae7
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 2123460cf0
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 e8d1264dbc
Short-circuit the bootstrapFn if we have a leader 2016-06-15 12:40:51 -07:00
Sean Chittenden f05514335b
Teach Nomad servers how to fall back to Consul. 2016-06-15 12:40:51 -07:00
Sean Chittenden c592020e2d 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 cf99fc3173 Use Status.Peers instead of Status.Ping 2016-06-15 12:00:20 -07:00
Diptanu Choudhury 018a8ab6b0 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 3fda196a5a Fixed the nav links to stats APIs 2016-06-15 15:46:17 +02:00
Diptanu Choudhury f07eec2824 Added the links to the stats pages on the sidebar 2016-06-15 12:11:56 +02:00
Diptanu Choudhury 201dd28743 Merge pull request #1284 from hashicorp/add-warn-message
Added a warn message for deprecated consul options
2016-06-15 11:33:24 +02:00
Diptanu Choudhury 0938e38a67 Updated CHANGELOG 2016-06-15 11:30:23 +02:00
Diptanu Choudhury fa216199ce Added documentation 2016-06-15 02:42:15 +02:00
Diptanu Choudhury 0027571f2a Updated changelog 2016-06-15 02:35:56 +02:00
Diptanu Choudhury e08083acfe Added a client options for setting selinux options 2016-06-15 02:33:09 +02:00
Diptanu Choudhury fd80e6ed0f Added a warn message for deprecated consul options 2016-06-15 02:31:57 +02:00
Alex Dadgar 6221be5df3 Merge pull request #1283 from hashicorp/d-consul-configs
Document consul configuration
2016-06-14 16:51:56 -07:00
Alex Dadgar edef5e763a Fix defaults and updates 2016-06-14 16:51:18 -07:00
Alex Dadgar 85acb0877f address comments 2016-06-14 15:40:48 -07:00
Alex Dadgar aea21affdb Document consul configuration 2016-06-14 15:21:57 -07:00
Sean Chittenden bdbbf2cd2c Merge pull request #1279 from hashicorp/b-rename-reg-to-advertise
Disambiguate `auto_join` from `auto_register`, rename `auto_register` to `auto_advertise`.
2016-06-14 13:09:25 -07:00
Sean Chittenden 6e22b680ce
Disambiguate auto_join from auto_register, rename reg to auto_advertise.
Provide an option that describes the value to the user vs the
operation performed by the software.  Momentarily introducing
`auto_join`
2016-06-14 12:11:38 -07:00
Sean Chittenden c98da4f08e Merge pull request #1278 from hashicorp/f-vagrantcpu-count
Bump the CPU count on the primary box to `hw.ncpu-1` on Darwin
2016-06-14 11:29:10 -07:00
Sean Chittenden aa8d24074f
Bump the CPU count on the primary box to hw.ncpu-1 on Darwin 2016-06-14 11:27:42 -07:00
Alex Dadgar 5917af7da2 up test timeout 2016-06-13 23:08:24 -07:00
Alex Dadgar 2f7e1fa569 guide 2016-06-13 22:41:51 -07:00
Alex Dadgar ec2e74cbd3 bump version 2016-06-13 21:48:52 -07:00
Alex Dadgar 7fefeca691 Merge pull request #1275 from hashicorp/b-disable-syncer-checks
Temporarily disable various syncer checks due to the API changes made…
2016-06-13 19:54:06 -07:00
Sean Chittenden 10ce8f27d4
Temporarily disable various syncer checks due to the API changes made earlier today. 2016-06-13 19:52:17 -07:00
Sean Chittenden 5d1265ad22 Merge pull request #1274 from hashicorp/b-validate-interval
Validate interval values in service checks
2016-06-13 18:57:12 -07:00
Sean Chittenden 4f14d51013
Fix up validation and allow existing unset timeouts to continue to be unset 2016-06-13 18:55:15 -07:00
Sean Chittenden c3a3fdc230
Upon further review, the Timeout needs to be validate for more than script checks.
This value is used for Consul HTTP and TCP checks.
2016-06-13 18:28:27 -07:00
Sean Chittenden baac19cad6
Remove diff check for ServiceID, may it R.I.P. 2016-06-13 18:22:53 -07:00