Commit Graph

10 Commits

Author SHA1 Message Date
Toshiaki Maki
f0ef4f08bf Support DNS based Service Discovery
Adds new two DiscoveryClient implementations that depend on native Service Discovery supported by Cloud Foundry.

CloudFoundryAppServiceDiscoveryClient uses cf-java-client and find container's index-based route (e.g. 0.billing.apps.internal, 1.billing.apps.internal, 2.billing.apps.internal).
SimpleDnsBasedDiscoveryClient simply uses DNS and resolve container's ip (e.g. 10.250.56.12, 10.254.160.118, 10.254.112.192). does not depend on cf-java-client
By default, existing CloudFoundryDiscoveryClient is chosen.
Configuring spring.cloud.cloudfoundry.discovery.use-dns=true enables CloudFoundryAppServiceDiscoveryClient.
Configuring spring.cloud.cloudfoundry.discovery.use-dns=true and spring.cloud.cloudfoundry.discovery.use-container-ip=true enables SimpleDnsBasedDiscoveryClient.

This DiscoveryClient eliminates the limitation of Turbine on Cloud Foundry and does not need Turbine Stream.

In some environments (such as in a PaaS setting), the classic Turbine model of pulling metrics from all the distributed Hystrix commands does not work.

See gh-19
2019-04-29 15:06:11 -04:00
Marcin Grzejszczak
e3eaa72e25 Updated https 2019-03-29 15:16:31 +01:00
Marcin Grzejszczak
004e83b1e8 Added checkstyle 2019-02-05 15:21:41 +01:00
Scott Frederick
34f78e42cd Update sample application. (#23)
* Update sample application.

* Bump CF Java Client version to 3.9.0.
2018-04-10 21:31:55 -04:00
Spencer Gibb
3cb69505e3 polish 2018-01-08 17:08:13 -05:00
Josh Long
fef7d2c9a7 support Reactor-based CF Java Client (#22)
* reactive Cloud Foundry Java Client

- new support for auto-configuring the reactor-based CF java client v3.3.
- reworkd the `DiscoveryClient` to depend on the standalone support.
- made the tests run conditionally based on presence of certain env vars.

fixes gh-21
2018-01-08 16:45:02 -05:00
Spencer Gibb
4f62c2a413 Bump to version 1.1.0
Upgrade s-c-build to 1.3.1

Upgrade netflix/commons/cloudfoundry-client-lib
2017-01-20 14:55:45 -07:00
Dave Syer
bdd196bda3 Remove netflix dependencies
There's no need to depend on netflix libraries but the sample was
using Ribbon, so we took that out so that the release can be
independent.
2016-04-18 11:57:29 +01:00
Dave Syer
24aca83e96 Tidy up failure cases of discovery client 2015-05-21 13:51:58 +01:00
Josh Long
e1bdaa7851 cfdc 2015-05-14 19:31:01 -05:00