Commit graph

5425 commits

Author SHA1 Message Date
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
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
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
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
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
Alex Dadgar 50efdb00e9 Merge pull request #1713 from hashicorp/f-alloc-runner-vault
Vault integration in client
2016-09-20 16:15:55 -07:00
Alex Dadgar 64de46432a Merge pull request #1677 from hashicorp/f-vault-implicit-constraint
Vault implicit Task Group constraint + allow root tokens
2016-09-20 16:15:32 -07:00
Cameron Stokes 6b9cc984d1 Link to Artifact section. 2016-09-20 15:18:59 -07:00
Diptanu Choudhury 36edabb487 Fixed the logic of calculating queued allocation in sys sched (#1724) 2016-09-20 12:05:19 -07:00
Diptanu Choudhury f7a9b39e8c Ensuring that we are not emitting stats when handle is nil (#1723)
* Ensuring that we are not emitting stats when handle is nil

* Updated the changelog
2016-09-20 11:29:34 -07:00
Alex Dadgar 683380c25c Merge pull request #1715 from hashicorp/b-dead-system-nodes
Fix bug where dead nodes weren't properly handled by system scheduler
2016-09-19 11:49:44 -07:00
Alex Dadgar 47551e93b4 Fix bug in which dead nodes weren't being properly handled by system scheduler 2016-09-19 11:49:27 -07:00
Alex Dadgar 83905075e5 Fix comment 2016-09-17 11:31:17 -07:00
Alex Dadgar 40fc1d1dfd Task runner test 2016-09-15 17:39:08 -07:00
Alex Dadgar 0fefaef008 Alloc runner tests 2016-09-15 17:24:09 -07:00
Alex Dadgar 0f40bd41a3 Handle recovery failure 2016-09-15 12:50:44 -07:00
Alex Dadgar 688e616200 Fix token renewal 2016-09-15 11:20:51 -07:00
Alex Dadgar dd064af355 Merge pull request #1711 from mlafeldt/job-parent-id
Include parent ID in job info returned by Go API
2016-09-15 10:10:09 -07:00
Mathias Lafeldt c2503adb83
Include parent ID in job info returned by Go API
At the moment, this ID is only included when using `Jobs().List()`, which returns `api.JobListStub`.

With this change, the ID will also be available when using `Jobs().Info()`, which returns `api.Job`.

In fact, `ParentID` is currently the only field present in `api.JobListStub` that is not part of `api.Job`.

Note: This has the side effect that `nomad run -output` will now include an empty `ParentID`.
2016-09-15 14:37:13 +02:00
Alex Dadgar ada5d8dd0c alloc-status 2016-09-14 18:27:13 -07:00
Alex Dadgar ec152a6d12 Clean up vault client 2016-09-14 18:10:56 -07:00
Michael Schurter 2e6927ff8d Merge pull request #1709 from neumayer/log
Log adding of servers at INFO level
2016-09-14 15:53:10 -07:00
Diptanu Choudhury 1b3c5e98c8 Renaming LocalDisk to EphemeralDisk (#1710)
Renaming LocalDisk to EphemeralDisk
2016-09-14 15:43:42 -07:00
Alex Dadgar 6702a29071 Vault token threaded 2016-09-14 13:30:01 -07:00
Robert Neumayer 8dc19dbd10 Log adding of servers at INFO level 2016-09-14 22:24:17 +02:00
Michael Schurter 284e6e5941 Add changelog entry for #1682 2016-09-13 11:26:50 -07:00
Michael Schurter 9a2a17b48f Merge pull request #1682 from hashicorp/b-sanity-check-state-file
Prevent state file corruption and check state file sanity on save
2016-09-13 11:24:34 -07:00
Michael Schurter 9281a02170 Merge pull request #1707 from mlafeldt/fix-typo
Fix typo in alloc-status output
2016-09-13 10:11:50 -07:00
Mathias Lafeldt ff87952cfb
Fix typo in alloc-status output 2016-09-13 17:47:11 +02:00
Michael Schurter cd8606b9e3 Revert "A nil context isn't an error"
This reverts commit fe9fe4c26259c1ad3bd7e94bd711418aaf819b20.
2016-09-12 12:56:12 -07:00
Alex Dadgar cab3dc56c2 Merge pull request #1701 from hashicorp/d-kill-timeout
Kill timeout default documentation
2016-09-12 09:54:43 -07:00
Alex Dadgar eb219f55ed kill timeout default documentation 2016-09-12 09:53:57 -07:00
Alex Dadgar a4a4ed2c71 Merge pull request #1700 from iconara/patch-1
Clarify that the Java driver needs root on Linux
2016-09-12 09:25:45 -07:00
Theo Hultberg adc0da890d Clarify that the Java driver needs root on Linux
Update the Java task driver docs to clarify that Nomad needs to run as root on Linux.
2016-09-12 18:22:31 +02:00
Diptanu Choudhury 70171dffa0 Merge pull request #1698 from neumayer/typo
Fix typo
2016-09-11 15:25:39 -07:00
Robert Neumayer e57d20d825 Fix typo
Telementry -> Telemetry
2016-09-11 09:46:05 +02:00
Diptanu Choudhury bda4d75b2e Updating go version to 1.7.1 2016-09-09 22:24:19 -07:00
Diptanu Choudhury 16721020b9 Merge pull request #1695 from frots/patch-1
Minor typo in bootstrapping.html.md
2016-09-08 22:13:04 -07:00
Frits Vlaanderen ca366ac366 Minor typo in bootstrapping.html.md 2016-09-07 16:52:11 -07:00
Diptanu Choudhury 841acba822 Merge pull request #1690 from mwieczorek/fix-nomad-run-on-windows
Fix 'nomad run' on windows
2016-09-05 14:45:18 -07:00
Michal Wieczorek db685b164f Close job temp file 2016-09-05 23:40:53 +02:00