consul/command/agent
Ryan Uber b7587cac42 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
..
acl_endpoint.go agent: Strict PUT for modifying ACLs 2014-08-19 14:28:34 -07:00
acl_endpoint_test.go agent: Fixing ACL tests with token param 2014-08-19 14:28:49 -07:00
agent.go agent: allow config reload to modify checks/services persistence 2014-11-26 12:46:42 -08:00
agent_endpoint.go agent: allow config reload to modify checks/services persistence 2014-11-26 12:46:42 -08:00
agent_endpoint_test.go agent: prefer config over persisted services/checks (#497) 2014-11-24 19:40:53 -08:00
agent_test.go agent: allow config reload to modify checks/services persistence 2014-11-26 12:46:42 -08:00
catalog_endpoint.go Merge pull request #68 from hashicorp/f-consistency 2014-04-21 15:55:31 -07:00
catalog_endpoint_test.go agent: test services are in sync when added from the API 2014-10-17 17:33:27 -07:00
check.go agent: pass notes field through for checks inside of service definitions. Fixes #449 2014-11-06 18:25:21 -08:00
check_test.go tests: Don't generate binary output from checks. 2014-05-26 13:23:10 -07:00
command.go agent: allow config reload to modify checks/services persistence 2014-11-26 12:46:42 -08:00
command_test.go Rebase against upstream 2014-11-19 16:45:49 -08:00
config.go agent: remove unused config variable 2014-11-19 23:18:12 -08:00
config_test.go agent: -encrypt appends to keyring if one exists 2014-11-19 16:36:01 -08:00
dns.go cleanup unreachable code 2014-11-25 19:54:30 +01:00
dns_test.go agent: implementing reverse dns lookup for ipv4 and ipv6 2014-11-23 09:16:37 +01:00
event_endpoint.go agent: Preserve ordering of event buffer. Fixes #479 2014-11-20 19:51:08 -08:00
event_endpoint_test.go agent: make event buffer test non-sequential 2014-11-20 21:56:50 -08:00
flag_slice_value.go Working on the agent 2013-12-20 16:39:32 -08:00
flag_slice_value_test.go Working on the agent 2013-12-20 16:39:32 -08:00
gated_writer.go Working on the agent 2013-12-20 16:39:32 -08:00
gated_writer_test.go Working on the agent 2013-12-20 16:39:32 -08:00
health_endpoint.go agent: Fixing passing filter. Fixes #241 2014-07-05 09:49:21 -07:00
health_endpoint_test.go agent: Fixing passing filter. Fixes #241 2014-07-05 09:49:21 -07:00
http.go agent: Fixing port collision in tests 2014-11-19 11:51:25 -08:00
http_api.md Add `/v1/agent/self` and return local agent config 2014-05-27 01:15:33 +02:00
http_test.go agent: Fixing UiDir in test 2014-11-19 13:29:15 -08:00
keyring.go agent: fix loading keyring on agent start 2014-11-19 16:37:40 -08:00
keyring_test.go agent: fix loading keyring on agent start 2014-11-19 16:37:40 -08:00
kvs_endpoint.go cleanup unreachable code 2014-11-25 19:54:30 +01:00
kvs_endpoint_test.go agent: Support for raw key lookup. Fixes #150. 2014-05-20 16:53:43 -07:00
local.go formatting 2014-10-15 14:56:15 -07:00
local_test.go Merge pull request #401 from hashicorp/f-healthcheck 2014-10-15 16:50:38 -07:00
log_levels.go Working on the agent 2013-12-20 16:39:32 -08:00
log_writer.go Working on the agent 2013-12-20 16:39:32 -08:00
log_writer_test.go Working on the agent 2013-12-20 16:39:32 -08:00
remote_exec.go Pass exitCode by reference 2014-09-17 21:17:51 +02:00
remote_exec_test.go Go format fix 2014-09-19 10:51:03 +02:00
rpc.go command: fix panic when client RPC is asked for a keyring operation 2014-11-19 16:34:17 -08:00
rpc_client.go command/keyring: remove unneeded -wan arg, fix tests 2014-11-19 16:34:17 -08:00
rpc_client_test.go consul: more tests, remove unused KeyManager() method 2014-11-19 16:37:40 -08:00
rpc_log_stream.go Pulling in the RPC framework from serf 2013-12-30 14:42:41 -08:00
rpc_log_stream_test.go Pulling in the RPC framework from serf 2013-12-30 14:42:41 -08:00
session_endpoint.go Ephemeral Nodes for via Session behavior settings. 2014-11-20 11:34:45 -05:00
session_endpoint_test.go Clean up tests, use switch to default session.Behavior value if unspecified, unrecognized 2014-11-20 14:29:18 -05:00
status_endpoint.go More HTTP endpoints 2013-12-23 16:20:51 -08:00
status_endpoint_test.go gofmt 2014-05-20 16:25:29 -07:00
structs.go agent: Default health checks to critical. Fixes #341 2014-10-15 10:09:49 -07:00
structs_test.go agent: Default health checks to critical. Fixes #341 2014-10-15 10:09:49 -07:00
syslog.go agent: Filter messages logged to syslog. Fixes #272 2014-10-13 22:38:12 -07:00
syslog_test.go agent: skip syslog test on windows 2014-10-17 11:24:10 -07:00
ui_endpoint.go agent: Summarize node level checks as well 2014-04-30 23:44:29 -04:00
ui_endpoint_test.go Remove TODO comments 2014-05-26 23:44:46 +02:00
user_event.go agent: auto-register the consul service on server nodes 2014-10-14 15:35:00 -07:00
user_event_test.go agent: Fixing config merge issue 2014-09-02 14:49:31 -07:00
util.go Switching to the pinned version of msgpack 2014-10-17 18:26:19 -07:00
util_test.go Methods for random staggering 2014-01-15 12:34:17 -10:00
watch_handler.go agent: Refactor script invoke 2014-08-21 14:28:16 -07:00
watch_handler_test.go agent: Refactor script invoke 2014-08-21 14:28:16 -07:00