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
Diptanu Choudhury
9f598d4367
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
eb4a719f67
Added a warn message for deprecated consul options
2016-06-15 02:31:57 +02:00
Alex Dadgar
d8e79759fc
Document consul configuration
2016-06-14 15:21:57 -07:00
Sean Chittenden
f1a40c0deb
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
aea3e2c360
Temporarily disable various syncer checks due to the API changes made earlier today.
2016-06-13 19:52:17 -07:00
Sean Chittenden
388ef7f6af
Drive-by comment correction
2016-06-13 18:14:50 -07:00
Alex Dadgar
f320b5a76f
address comments
2016-06-13 17:32:18 -07:00
Alex Dadgar
1e4ec6b2b3
Fix IDs and domain scoping
2016-06-13 16:30:58 -07:00
Chris Bednarski
6669cf8460
Change Modfied to Modified
2016-06-13 15:09:13 -07:00
Diptanu Choudhury
d64ec9d138
Removing unwated line of code
2016-06-13 15:37:55 +02:00
Diptanu Choudhury
02b320c81e
implemented reconciliation of unwanted services
2016-06-13 14:52:26 +02:00
Alex Dadgar
73600066c4
agent just calls run
2016-06-12 22:30:52 -07:00
Alex Dadgar
e90e92da9f
register checks
2016-06-12 21:28:56 -07:00
Alex Dadgar
b1351a3564
Do not reconcile in client and cleanup executor a bit
2016-06-12 18:22:07 -07:00
Alex Dadgar
0c3b7b2537
fix test
2016-06-12 16:48:55 -07:00
Alex Dadgar
d0e3dc6a81
Merge pull request #1264 from hashicorp/b-rename-services
...
Rename ConsulService back to Service
2016-06-12 16:44:49 -07:00
Diptanu Choudhury
b6d9623b9d
Remove initial delay of registering services with consul
2016-06-13 01:42:56 +02:00
Alex Dadgar
c5059fc7c4
Rename ConsulService back to Service
2016-06-12 16:36:49 -07:00
Alex Dadgar
f3c1ef20fe
use base 1024 for bytes not 1000
2016-06-12 14:20:39 -07:00
Alex Dadgar
dd444ba869
reworked alloc-status command
2016-06-12 14:08:47 -07:00
Alex Dadgar
fb81caa1bb
unify cli output
2016-06-12 13:16:07 -07:00
Alex Dadgar
b1bd788c55
unify units
2016-06-12 11:19:45 -07:00
Alex Dadgar
6c25978d9a
show allocation resources seperate from host
2016-06-12 11:19:45 -07:00
Alex Dadgar
eb6055448e
initial refactor and cleanup
2016-06-12 11:19:45 -07:00
Alex Dadgar
020f8b05d3
only support latest and remove ring buffer
2016-06-12 09:32:38 -07:00
Alex Dadgar
1a7df4e7d2
Allocation resources returned in a struct
2016-06-11 21:04:10 -07:00
Alex Dadgar
490e35da00
Merge pull request #1243 from hashicorp/f-run-modify-index
...
Add check-index flag to nomad run
2016-06-11 16:12:53 -07:00
Sean Chittenden
9b6e720fbe
Merge pull request #1201 from hashicorp/f-dyn-server-list
...
Dynamic Server Lists/Client Bootstrapping via consul.
2016-06-11 18:58:25 -04:00
Sean Chittenden
a8b53b05b4
Prefer %+q over %q in log messages.
2016-06-11 18:17:20 -04:00
Alex Dadgar
a9c97cfb19
Don't require slash for node stats
2016-06-11 13:15:57 -07:00
Sean Chittenden
5331ea7bc6
goling(1) compliance pass (e.g. Rpc* -> RPC)
2016-06-10 23:38:28 -04:00
Sean Chittenden
6819f2b68d
Query for the Nomad service across multiple Consul datacenters.
2016-06-10 23:05:14 -04:00
Diptanu Choudhury
d31034941a
Not reset-ing the list of pids if they don't change
2016-06-11 01:19:50 +02:00
Diptanu Choudhury
358cdf8f63
Calculating total ticks consumed in the nomad client
2016-06-10 23:14:33 +02:00
Diptanu Choudhury
d696284c03
Using humanize to convert memory usage to MB
2016-06-10 22:24:33 +02:00
Diptanu Choudhury
c13e750a02
Calculating the cpu ticks in nomad client
2016-06-10 22:22:32 +02:00
Sean Chittenden
91582dc875
Always create a consul.Syncer. Use a default Consul Config if necessary.
2016-06-10 15:55:27 -04:00
Sean Chittenden
aff951ca4e
Always create a consul.Syncer. Use a default Consul Config if necessary.
2016-06-10 15:55:27 -04:00
Sean Chittenden
61a36a6d54
Commit miss, bump to 5s
2016-06-10 15:54:39 -04:00
Sean Chittenden
dbdebcad80
golint(1) police
2016-06-10 15:54:39 -04:00
Sean Chittenden
a423f07d63
Stash client and server registration behind consul.auto_register
2016-06-10 15:54:39 -04:00
Sean Chittenden
5757e50243
Only return the Client's server addresses, never mix-in server peers
2016-06-10 15:54:39 -04:00
Sean Chittenden
c426b8501c
Hand wave over the syncer tests atm, these will be fixed shortly.
2016-06-10 15:54:39 -04:00
Sean Chittenden
69aa8e8195
Don't spam the consul if Consul is not available.
...
Log once when Consul goes away, and log when Consul comes back.
2016-06-10 15:54:39 -04:00
Sean Chittenden
05e713cfca
Skip nil check for agent's consulSyncer is always not nil
2016-06-10 15:54:39 -04:00
Sean Chittenden
f7b2949f11
Properly cover Syncer attributes with the registryLock.
...
trackedServices, delegateChecks, trackedChecks, and checkRunners
should all be covered. This lock needs to be reasonably narrow and
can't use defer due to possible recursive locking concerns further
downstream from the call sites.
2016-06-10 15:54:39 -04:00
Sean Chittenden
27f6ffd83d
On Syncer Shutdown, remove all services that match a Syncer's prefix.
2016-06-10 15:54:39 -04:00
Sean Chittenden
7d060c20d7
Sync checks with Consul by comparing the AgentCheckReg w/ ConsulService
...
The source of truth is the local Nomad Agent. Any checks are not local that
have a matching prefix are removed. Changed checks are re-registered
and missing checks are re-added.
2016-06-10 15:54:39 -04:00