Commit Graph

431 Commits

Author SHA1 Message Date
Donnabell Dmello
c0e9795e98 Adds healthCheckCriticalTimeout to discovery props
The healthCheckCriticalTimeout property tells consul to deregister services in critical longer than timeout.

Fixes gh-210
2017-01-17 09:10:11 -07:00
Spencer Gibb
9d393d15b4 Upgrade consul-api to version 1.2.1
fixes gh-232
2017-01-17 08:25:21 -07:00
Spencer Gibb
dcf3f94e43 fixes broken test 2017-01-13 13:41:03 -07:00
Piotr Wielgolaski
c180105f8c Apply defaultQueryTag when querying for any service instance (#250)
fixes gh-225
2017-01-13 15:31:35 -05:00
Spencer Gibb
f1326433a2 Add @ConditionalOnConsulEnabled to service registry auto config 2016-12-12 11:06:16 -07:00
Spencer Gibb
2b4c2b078c polish 2016-12-09 11:45:38 -07:00
Spencer Gibb
a64ace4700 Shutdown scheduler in ConsulInboundMessageProducer
fixes gh-259
2016-12-09 11:44:43 -07:00
sakanaou
754c7477cd Avoid NPE if YAML/PROPERTIES data value is empty (#257)
Can happen if empty file content is sent to Consul's K/V store
or data is manually edited via the UI.
2016-12-08 14:43:23 -05:00
sakanaou
595951c30c YAML-based properties are not converted to String anymore (#258)
This allows for typesafe usage of values.
2016-12-08 14:42:09 -05:00
Spencer Gibb
91a26f6161 polish tests 2016-12-08 11:01:25 -07:00
Spencer Gibb
ade148bd16 Add missing tag functionality removed during merge. 2016-12-08 10:51:51 -07:00
Spencer Gibb
ba85624a98 Implements ConsulServiceRegistry and auto registration
No longer create ConsulLifecycle bean by default. It is now deprecated.

New auto registration is not created if user has created ConsulLifecycle
bean.
2016-12-08 10:14:08 -07:00
Spencer Gibb
29ae38d435 Update to SNAPSHOT 2016-11-28 13:41:09 -07:00
Jin Zhang
e1641b44ab ConsulServer support server group (#252)
Fixes gh-248
2016-11-28 14:43:44 -05:00
Spencer Gibb
5eaf6aa87a Update SNAPSHOT to 1.1.2.RELEASE 2016-11-28 10:09:48 -07:00
Max Liu
c259293933 Add service instance zone support. (#251)
fixes gh-249
2016-11-16 09:48:42 -07:00
Venil Noronha
184eec0f58 Enables failFast setting for consul service registration (#238)
Adds `spring.cloud.consul.discovery.failFast` which defaults to `true` (current behaviour).

fixes gh-175
2016-11-04 12:15:14 -04:00
Spencer Gibb
bf5ecf8a49 Decrease Watch.waitTime to 55.
So it is less than the ConsulRawClient.HttpClient timeout of 60s

fixes gh-240
2016-11-02 13:43:44 -06:00
Spencer Gibb
2e5d2b0d5e Merge pull request #241 from lowzj/TtlScheduler
cancel the previous ttl task when putting a new task with the same serviceId
2016-11-02 15:29:21 -04:00
lowzj
0605ce71a6 cancle the previous ttl task when putting a new task 2016-11-01 13:28:30 +08:00
Spencer Gibb
ab89d06586 Protect consul inbound producer.
Wrap ConsulInboundMessageProducer.getEvents() contents in try/catch.

fixes gh-236
2016-10-20 13:55:47 -06:00
Spencer Gibb
e176e55948 Add ability to disable actuator features.
Both endpoint and health indicator using annotations from boot.

fixes gh-234
2016-10-19 14:51:29 -06:00
Ryan Baxter
e351e26010 Updated README for next release 2016-10-18 15:36:58 -04:00
Ryan Baxter
23177d3de6 Updated versions for next release 2016-10-18 15:25:24 -04:00
Ryan Baxter
77ace700f8 Revert "Changed versions for release"
This reverts commit 81e49f70f1.
2016-10-18 15:15:51 -04:00
Ryan Baxter
81e49f70f1 Changed versions for release 2016-10-18 14:52:24 -04:00
Spencer Gibb
b84ea1bd2c Fix watch not working if config format == FILES
Merge pull request #230 from jfiedler/master

Fixes #229
2016-10-04 22:21:15 -04:00
Jan Fiedler
68b4459c3b Fix for issue 229 2016-09-30 12:09:12 +02:00
Spencer Gibb
ee007651e5 Update to SNAPSHOT 2016-09-22 16:16:06 -06:00
Spencer Gibb
ebadf1cb67 Update SNAPSHOT to 1.1.0.RELEASE 2016-09-22 16:00:21 -06:00
Spencer Gibb
78f802c229 Cache instanceId
Rather than recompute from ConsulDiscoveryProperties. Specifically instanceId shouldn't change.

fixes gh-227
2016-09-22 10:38:17 -06:00
Spencer Gibb
1655c8c6b1 Don't publish an event if kv value was null
reduces churn on config watch refreshes

fixes gh-223
closes gh-224
2016-09-22 10:10:10 -06:00
Dave Syer
75b3464074 Ensure version is scraped from parent pom 2016-09-20 13:48:13 +01:00
Marcin Grzejszczak
23d6582009 Updating mvnw for all projects 2016-09-19 19:30:56 +02:00
Marcin Grzejszczak
088850c08e Updating mvnw for all projects 2016-09-19 14:17:53 +02:00
Dave Syer
9e7c0d81bf Rationalize dependency management in BOMs 2016-09-19 12:02:21 +01:00
Dave Syer
804251de71 Move unnecessary dependencies up a level 2016-09-19 12:02:21 +01:00
Marcin Grzejszczak
f1a724bca1 Updating mvnw for all projects 2016-09-19 12:46:14 +02:00
Marcin Grzejszczak
bac8720873 Updating mvnw for all projects 2016-09-15 16:11:55 +02:00
Spencer Gibb
e9d1585a66 run consul in circle ci 2016-09-13 10:31:27 -06:00
Spencer Gibb
124476203e update readme 2016-09-13 10:21:24 -06:00
Spencer Gibb
45af23974f circleci build 2016-09-13 10:13:29 -06:00
Spencer Gibb
e2aba2dd84 Update host source for getLocalServiceInstance
If consul Service is available, use Address field, otherwise use the defined hostname in consul discovery properties.

Only use agent address if isPreferAgentAddress is true.

fixes gh-221
2016-09-13 10:07:16 -06:00
Spencer Gibb
2655886d6f remove config starter 2016-09-13 08:45:10 -06:00
Spencer Gibb
8a8b02ecf9 Don't register with consul in bootstrap.
This allows the normal consul lifecycle to register and properly deregister when using config client discovery.

fixes gh-213
2016-09-13 08:26:15 -06:00
Marcin Grzejszczak
b4d70a3af1 Removed adoc footer 2016-09-07 18:01:10 +02:00
Marcin Grzejszczak
afdde6e90b Updating mvnw for all projects 2016-09-07 17:28:17 +02:00
Spencer Gibb
cd73c94d79 Revert "Update SNAPSHOT to 1.1.0.RC1"
This reverts commit 657e7f9926.
2016-09-07 07:09:59 -06:00
Spencer Gibb
657e7f9926 Update SNAPSHOT to 1.1.0.RC1 2016-09-07 07:08:00 -06:00
Spencer Gibb
af435dd506 Add {spring-cloud-version} 2016-08-30 09:59:05 -06:00