Commit Graph

5524 Commits

Author SHA1 Message Date
Michael Schurter c7ed409cf0 Merge pull request #1768 from hashicorp/b-squelch-spammy-consul-errors
Only log consul errors once since last succesful run
2016-09-30 09:03:18 -07:00
Michael Schurter b117725dc9 Only log consul errors once since last succesful run 2016-09-28 17:18:45 -07:00
Alex Dadgar c0e142759b Merge pull request #1763 from hashicorp/sethvargo/docs
Fix docker args docs
2016-09-27 22:34:40 -07:00
Seth Vargo c60962045a
Fix docker args docs 2016-09-27 19:14:10 -07:00
Diptanu Choudhury 9b98d70aec Fixed task group validation tests 2016-09-27 17:57:30 -07:00
Alex Dadgar 5b0ca4ec68 changelog 2016-09-27 17:29:39 -07:00
Alex Dadgar 9beee9c891 Merge pull request #1762 from hashicorp/b-scan-pids
Constant size space tracking of pids
2016-09-27 17:28:35 -07:00
Alex Dadgar 320b89d57a Constant time space tracking of pids 2016-09-27 16:57:26 -07:00
Michael Schurter 80085ddda5 Merge pull request #1735 from hashicorp/b-bootstrap-flapping
Retry all servers on RPC call failure
2016-09-27 16:33:15 -07:00
Michael Schurter 0a9be42e64 Cleanup changelog entries 2016-09-27 16:32:32 -07:00
Michael Schurter 79b2373d31 Add #1735 related fixes/improvements to changelog 2016-09-27 16:07:41 -07:00
Michael Schurter d486de3804 Remove unused const 2016-09-27 16:04:01 -07:00
Seth Vargo 0f73579533 Clarify server-members is server-only (#1761)
* Add a note to the CLI that only servers can run this command

* Add a callout that this is a server command

* Remove the annoying bottom margin on callouts
2016-09-27 13:51:54 -07:00
Diptanu Choudhury 2b1d214b0d Avoiding copying files if they are already present in chrootw (#1753) 2016-09-27 11:43:27 -07:00
Michael Schurter 2e696c5e61 Fix lies found in comments by fact checkers 2016-09-26 16:51:53 -07:00
Michael Schurter 11cf9686a6 No need to put reaper ticker on the struct 2016-09-26 16:15:19 -07:00
Michael Schurter 2eb0062959 Drop clumsy timeout on discovery notifications
It's better to just let goroutines fallback to their longer retry
intervals then try to be clever here.
2016-09-26 16:05:21 -07:00
Michael Schurter 307e674eca Flip disco chan; clarify method names/comments 2016-09-26 15:52:40 -07:00
Michael Schurter 888ee21270 Return csv of servers from Stats, not just count 2016-09-26 15:40:26 -07:00
Alex Dadgar 231617d58e Merge pull request #1752 from hashicorp/f-consul-template
Consul template structs
2016-09-26 15:38:24 -07:00
Alex Dadgar fca2becaa5 Parse 2016-09-26 15:36:11 -07:00
Alex Dadgar b4c3f015bc Template diff 2016-09-26 15:36:11 -07:00
Alex Dadgar e925f8ca58 Add template structs 2016-09-26 15:36:11 -07:00
Alex Dadgar b28e817b1d Test fix 2016-09-26 15:35:59 -07:00
Michael Schurter 7dc0079dd2 doDisco -> triggerDiscoveryCh; discovered -> serversDiscoveredCh
Also fix log line formatting
2016-09-26 15:21:28 -07:00
Michael Schurter 434e4be97c noServers -> noServersErr 2016-09-26 15:12:35 -07:00
Michael Schurter b2ddb85a78 consul -> Consul 2016-09-26 15:06:57 -07:00
Michael Schurter a45921c402 Fix agent server set test
Test asserted endpoint appendend servers, but the new/desired behavior
is for the endpoint to set/overwrite servers.
2016-09-26 11:57:06 -07:00
Alex Dadgar ff2dc0b0a7 Merge pull request #1742 from hashicorp/b-text-file-busy
Closing files when files are removed
2016-09-26 11:50:27 -07:00
Alex Dadgar 1f2587ca20 Merge pull request #1744 from hashicorp/sethvargo/init_format
Update the sample jobfile syntax
2016-09-26 11:26:33 -07:00
Alex Dadgar c00202c255 Merge pull request #1745 from mwieczorek/windows-named-pipes
Update vendor package github.com/fsouza/go-dockerclient
2016-09-26 11:17:00 -07:00
Alex Dadgar 7f410585fd Merge pull request #1748 from jippi/patch-1
Fix syntax error in JSON example
2016-09-26 11:11:52 -07:00
Alex Dadgar 27c8f3f77b Merge pull request #1750 from hashicorp/sethvargo/update_hashicorp
Update middleman-hashicorp
2016-09-26 11:08:37 -07:00
Alex Dadgar d87ea36a94 Merge pull request #1751 from dvusboy/fix_broken_link
[docs] Add the missing '/' to make the URL path absolute
2016-09-26 11:06:40 -07:00
K.C. Wong ee58605fce Add the missing '/' to make the URL path absolute
* without that '/' it becomes a relative link and thus it is
  broken
2016-09-26 10:44:58 -07:00
Seth Vargo e6b39239de
Update middleman-hashicorp 2016-09-26 11:33:29 -05:00
Christian Winther b537f194c3 Fix syntax error in JSON example 2016-09-26 16:26:07 +02:00
Michal Wieczorek 67b688d292 Update vendor package github.com/fsouza/go-dockerclient
Added dependencies of updated github.com/fsouza/go-dockerclient:
- golang.org/x/net/context/ctxhttp
- github.com/docker/engine-api/types/swarm
- github.com/Microsoft/go-winio
- github.com/docker/engine-api/types/mount
2016-09-24 21:53:49 +02:00
Seth Vargo 4523f112fe
Update the sample jobfile syntax
- Uses spaces instead of tabs for the sample job file. Even though Nomad
  is written in Go, the HCL style guide uses two spaces for indentation,
  and this will match Terraform and Vault in terms of configuration.
- Locks to redis:3.2 instead of floating latest. Running latest in
  production is a bad idea and we shouldn't encourage it even via
  example.
- Removes the linux constraint (native docker exists for both Mac and
  Windows now)
- Aligns equal signs and stuff as per the HCL formatter

- Closes #1743
2016-09-24 14:42:25 -04:00
Seth Vargo 18c657a1b7
Convert example job file constraint to comment
This improves the "getting started" happy path experience for non-linux
users who are running the native Docker tools on their machines. There
is no need to constrain this job to linux, since driver detection for
docker will already (basically) do this.
2016-09-24 14:12:30 -04:00
Diptanu Choudhury 12c7873db2 Closing files when files are removed 2016-09-23 22:17:53 -07:00
Diptanu Choudhury dae7f88118 Not setting a drained node as preferred node (#1740) 2016-09-23 21:15:50 -07:00
Michael Schurter 37cfb2769c Replace periodic handlers with event driven disco
Remove use of periodic consul handlers in the client and just use
goroutines. Consul Discovery is now triggered with a chan instead of
using a timer and deadline to trigger.

Once discovery is complete a chan is ticked so all goroutines waiting
for servers will run.

Should speed up bootstraping and recovery while decreasing spinning on
timers.
2016-09-23 17:02:48 -07:00
Alex Dadgar 9caa7a2789 Merge pull request #1738 from sandstrom/patch-1
Timestamp changelog
2016-09-23 13:45:30 -07:00
sandstrom ec947e61ae Timestamp changelog 2016-09-23 22:38:28 +02:00
Michael Schurter 2ab5264595 Retry all servers on RPC call failure
rpcproxy is refactored into serverlist which prioritizes good servers
over servers in a remote DC or who have had a failure.

Registration, heartbeating, and alloc status updating will retry faster
when new servers are discovered.

Consul discovery will be retried more quickly when no servers are
available (eg on startup or an outage).
2016-09-23 11:44:48 -07:00
Diptanu Choudhury 589356fd55 Adding a snapshot endpoint on the client (#1730) 2016-09-21 21:28:12 -07:00
Alex Dadgar d64ef28c39 Handle the various valid root cases 2016-09-21 17:30:57 -07:00
Alex Dadgar d810e1c432 Merge pull request #1733 from hashicorp/f-vault-renew-root
Renew root tokens where applicable
2016-09-21 17:00:09 -07:00
Alex Dadgar f99d84d2c3 Renew root tokens where applicable 2016-09-21 16:49:15 -07:00