Ryan Uber
9e52588cec
agent: persist CheckType with health checks
2014-11-29 12:54:37 -08:00
Ryan Uber
4f14ba6326
agent: allow config reload to modify checks/services persistence
...
This change consolidates loading services and checks from both config
and persisted state into methods on the agent. As part of this, we
introduce optional persistence when calling RemoveCheck/RemoveService.
Fixes a bug where config reloads would kill persisted services/checks.
Also fixes an edge case:
1. A service or check is registered via the HTTP API
2. A new service or check definition with the same ID is added to config
3. Config is reloaded
The desired behavior (which this implements) is:
1. All services and checks deregistered in memory
2. All services and checks in config are registered first
3. All persisted checks are restored using the same logic as the agent
start sequence, which prioritizes config over persisted, and removes
any persistence files if new config counterparts are present.
2014-11-26 12:46:42 -08:00
Ryan Uber
fe119a1bd2
agent: prefer config over persisted services/checks ( #497 )
2014-11-24 19:40:53 -08:00
Ryan Uber
ce0d27caba
agent: default restored checks to critical status
2014-11-24 01:15:18 -08:00
Ryan Uber
e3c2075a9d
agent: first pass at local service and check persistence
2014-11-24 01:10:27 -08:00
Ryan Uber
4cd89a9113
Rebase against upstream
2014-11-19 16:45:49 -08:00
Ryan Uber
c9118b53bf
agent: fix loading keyring on agent start
2014-11-19 16:37:40 -08:00
Ryan Uber
196cbd27b2
agent: ignore -encrypt if provided when keyring exists
2014-11-19 16:37:40 -08:00
Ryan Uber
f24ac482e3
agent: fix test cases
2014-11-19 16:36:18 -08:00
Ryan Uber
d02afd42fb
agent: -encrypt appends to keyring if one exists
2014-11-19 16:36:01 -08:00
Ryan Uber
355fc89f7f
command: test generated keyring file content and conflicting args for agent
2014-11-19 16:32:06 -08:00
Ryan Uber
f9fd1f3f05
agent: test loading keyring files for client and server
2014-11-19 16:31:40 -08:00
Armon Dadgar
de35a8e38f
agent: Fixing port collision in tests
2014-11-19 11:51:25 -08:00
Ryan Uber
398179dcad
agent: pass notes field through for checks inside of service definitions. Fixes #449
2014-11-06 18:25:21 -08:00
Ryan Uber
6b119b98f0
agent: add test for consul service sync state
2014-10-17 14:43:52 -07:00
Armon Dadgar
a1d2f9a3da
Merge pull request #401 from hashicorp/f-healthcheck
...
Default services to "critical" state instead of "unknown"
2014-10-15 16:50:38 -07:00
Ryan Uber
ec63686416
consul: kill remaining use of HealthUnknown
2014-10-15 10:14:46 -07:00
Ryan Uber
ece81c11ac
agent: re-use ConsulServiceID from consul package
2014-10-14 15:44:11 -07:00
Ryan Uber
5e66e2ae1e
agent: auto-register the consul service on server nodes
2014-10-14 15:35:00 -07:00
Armon Dadgar
78b09c5764
agent: Fixing ACL tests with token param
2014-08-19 14:28:49 -07:00
Armon Dadgar
bac1527281
agent: Fixing the ACL tests
2014-08-18 15:46:23 -07:00
William Tisäter
2c13f8a03e
Re-configure LeaderLeaseTimeout
to pass validation
2014-05-30 20:57:39 +02:00
Armon Dadgar
2845d24cfa
Store check output in dedicated field. Fixes #59 .
2014-04-21 16:20:22 -07:00
Armon Dadgar
b1bfd97438
agent: Adding minimum check interval. Fixes #64 .
2014-04-21 14:42:42 -07:00
Armon Dadgar
738310bff0
agent: Simplifying configs
2014-04-11 15:46:55 -07:00
Armon Dadgar
fd6a87748f
agent: Support multiple tags per service registration
2014-04-03 12:12:23 -07:00
Armon Dadgar
d051d9cb23
agent: Adding methods to register services and checks
2014-01-30 13:39:02 -08:00
Armon Dadgar
ae45656f59
Testing anti-entropy of services
2014-01-20 14:22:59 -10:00
Armon Dadgar
020a84bada
Adding tests for the agent HTTP endpoints
2014-01-06 13:21:48 -08:00
Armon Dadgar
d292e08bb2
Adding basic DNS framework
2014-01-02 13:12:05 -08:00
Armon Dadgar
8727220296
Pulling in the RPC framework from serf
2013-12-30 14:42:41 -08:00
Armon Dadgar
3d908d9edf
Enable bootstrap mode for the tests
2013-12-24 16:53:30 -08:00
Armon Dadgar
851c4c8ed1
More HTTP endpoints
2013-12-23 16:20:51 -08:00
Armon Dadgar
06e11e4b08
Adding more agent tests
2013-12-23 13:52:10 -08:00