Alex Dadgar
7dee8ae534
perf
2017-05-01 16:01:50 -07:00
Alex Dadgar
4d6a012c6f
metrics
2017-05-01 14:51:27 -07:00
Alex Dadgar
5aa6e18807
Use batching
2017-05-01 14:50:34 -07:00
Alex Dadgar
7614feddbd
boltDB database for client state
2017-05-01 14:50:34 -07:00
Alex Dadgar
9def7e1a14
Don't deepcopy job when retrieving copy of Alloc
...
This PR removes deepcopying of the job attached to the allocation in the
alloc runner. This operation is called very often so removing reflect
from the code path and the potentially large number of mallocs need to
create a job reduced memory and cpu pressure.
2017-05-01 14:50:34 -07:00
Alex Dadgar
9dc002a9b3
Proper denormalization in optimistic state store
2017-05-01 14:49:57 -07:00
Alex Dadgar
4b92047a3e
Changelog
2017-05-01 13:55:37 -07:00
Alex Dadgar
cb7710dceb
Merge pull request #2592 from hashicorp/b-gc-race
...
Protect against nil job in new allocation
2017-05-01 13:54:43 -07:00
Alex Dadgar
741a71e0b3
Fix tests
2017-05-01 13:54:26 -07:00
Alex Dadgar
fcbaf69702
changelog
2017-04-27 10:56:08 -07:00
Alex Dadgar
404626cd28
Merge pull request #2575 from hashicorp/f-job-revert
...
Job revert
2017-04-27 10:54:29 -07:00
Alex Dadgar
8d01a4b83b
Swap validation checks
2017-04-27 10:51:28 -07:00
Alex Dadgar
badabffbb0
Protect against nil job in new allocation
2017-04-26 18:27:27 -07:00
Michael Schurter
af5a6787c7
Merge pull request #2586 from mgagliardo/vagrant_nomad_version
...
Bumping up Vagrantfile's nomad version
2017-04-25 14:11:12 -07:00
Miguel Gagliardo
b2dc22c10f
Bumping up NOMAD version to 0.5.6 and adding version as ENV variable
2017-04-25 18:02:33 -03:00
Michael Schurter
f428b659cf
Use Go 1.8.1 in Vagrant
2017-04-25 09:24:53 -07:00
Alex Dadgar
3b1ecfd0f0
Merge pull request #2582 from therealbill/patch-1
...
Update constraint.html.md
2017-04-24 10:16:56 -07:00
Bill Anderson
81e74ada8c
Update constraint.html.md
...
Fix Distinct Constraint header
2017-04-24 11:31:20 -04:00
Alex Dadgar
e0af3d7e19
docs
2017-04-20 11:14:06 -07:00
Alex Dadgar
694d9c450a
Revert api
2017-04-20 11:14:06 -07:00
Alex Dadgar
c818602fe5
Don't allow revert to current version
2017-04-20 11:14:06 -07:00
Alex Dadgar
6a9af5a216
Agent test
2017-04-20 11:14:06 -07:00
Alex Dadgar
99e9f2aaaa
Agent revert
2017-04-20 11:14:06 -07:00
Alex Dadgar
daeabb9456
Revert server endpoint
2017-04-20 11:14:06 -07:00
Alex Dadgar
b8b18dbe62
Structs
2017-04-20 11:14:06 -07:00
Michael Schurter
53eb407c7f
Merge pull request #2467 from hashicorp/f-consul-refactor
...
Refactor Consul Syncer into new ServiceClient
2017-04-19 16:55:49 -07:00
Michael Schurter
58430bf062
Fix consul test build on Windows
2017-04-19 16:14:11 -07:00
Michael Schurter
fb3b30bba9
Fix Windows build.
2017-04-19 13:16:48 -07:00
Michael Schurter
b9ea2765ec
Thanks go vet!
2017-04-19 13:05:41 -07:00
Michael Schurter
a5dcf6bbd9
Document tls_skip_verify
2017-04-19 12:45:34 -07:00
Michael Schurter
4cf34edb29
Skip checks with TLSSkipVerify if it's unsupported
...
Fixes #2218
2017-04-19 12:45:34 -07:00
Michael Schurter
7c67166510
Add TLSSkipVerify support to api and parser
2017-04-19 12:45:34 -07:00
Michael Schurter
86bc2fbf9c
Fix diff test + bonus upgrade to subtests
2017-04-19 12:42:48 -07:00
Michael Schurter
64057d48fe
Use go-version instead of manual version parsing
2017-04-19 12:42:48 -07:00
Michael Schurter
6d9e61bb51
Use spiffy new Go 1.8 subtest feature
2017-04-19 12:42:48 -07:00
Michael Schurter
5948daf4f7
Forgot an important word
2017-04-19 12:42:48 -07:00
Michael Schurter
346838381b
Only register HTTPS agent check when Consul>=0.7.2
...
Support for TLSSkipVerify in other checks coming soon!
2017-04-19 12:42:48 -07:00
Michael Schurter
8e0c97e52f
Unregister from Consul when waiting for restart
2017-04-19 12:42:48 -07:00
Michael Schurter
f0bec63174
Explain weird timer logic
2017-04-19 12:42:48 -07:00
Michael Schurter
de3d78365e
Metricsify new Consul client
2017-04-19 12:42:48 -07:00
Michael Schurter
d3f3af8bf9
Always fail script checks when deadline exceeded
2017-04-19 12:42:48 -07:00
Michael Schurter
465cc5157b
Test script check exit codes
2017-04-19 12:42:47 -07:00
Michael Schurter
6a56b0efc6
Follow _testing.go convention for testing tools
2017-04-19 12:42:47 -07:00
Michael Schurter
927b265854
Rework to account for ports not being in IDs
...
Previous implementation assumed all struct fields were included in
service and check IDs. Service IDs never include port labels and check
IDs *optionally* include port labels, so lots of things had to change.
Added a really big test to exercise this.
2017-04-19 12:42:47 -07:00
Michael Schurter
7de3adaf87
Remove commits return value
...
...and still protect against leaking agent entries in Consul on
shutdown.
2017-04-19 12:42:47 -07:00
Michael Schurter
4f224132ad
Remove stale comment
2017-04-19 12:42:47 -07:00
Michael Schurter
db8aabe1c3
Fix circular test imports
2017-04-19 12:42:47 -07:00
Michael Schurter
6bb7d8b736
Backoff on Consul lookup failures
2017-04-19 12:42:47 -07:00
Michael Schurter
5d75efc397
Explain PortLabel handling in RegisterAgent
2017-04-19 12:42:47 -07:00
Michael Schurter
48269c36b0
Plumb alloc id + task name into script check logs
2017-04-19 12:42:47 -07:00