Dave Syer
e6f30ebfce
Exclude mockito-all from zuul
2015-02-25 14:25:11 +00:00
Dave Syer
0b8f85529c
Refresh health indicator for config server if present
...
Listen for heartbeats from discovery so that state changes can trigger
a new status (and the client doesn't rely on the old address of the
server if it has now changed).
Fixes gh-232
2015-02-25 09:17:40 +00:00
Spencer Gibb
dafb5ecf09
only set EurekaInstanceConfigBean.nonSecurePort in EurekaClientAutoConfiguration
...
fixes gh-225
2015-02-23 11:57:32 -07:00
Dave Syer
8b81eb8b2c
Tweak autoconfig for feign
...
It doesn't make sense to @EnableFeignClients in autoconfig
because the user needs to specify a package to scan. It does
make sense (sort of) to set up the encoder/decoder/logger etc.
See gh-226
2015-02-23 17:23:05 +00:00
Dave Syer
1d35804831
Retain scheme (e.g. https) in URL from @FeignClient
...
When the URL is passed down to Ribbon and reconstructed from
a LoadBalancer the Server only knows about host and port, so the scheme
has to come from the original declaration.
There's still a potential problem with Eureka remote services that
are available with a non-secure port as well (probably fairly rare).
Fixes gh-221
2015-02-23 10:02:51 +00:00
Spencer Gibb
9623c83885
added docs on exposing /hystrix.stream
2015-02-19 10:26:50 -07:00
Roy Clarkson
b6faa0e087
Fix spelling of 'broker'
2015-02-18 14:58:49 -08:00
Dave Syer
fadfc67f8f
Add some more docs for Eureka metadata
...
Users need to know how to configure and use the Eureka
metadata because it isn't immediately obvious and does
require some decisions to be made.
Fixes gh-102
2015-02-16 10:31:36 +00:00
Spencer Gibb
3c8568942d
added a little to s-c-n-turbine-amqp
...
fixes spring-cloud/spring-cloud-bus/issues/7
2015-02-14 13:24:57 -07:00
Spencer Gibb
4754a1e160
an attempt at some sidecar documentation
...
fixes gh-201
2015-02-13 14:45:30 -07:00
Spencer Gibb
fc7cc4916e
remove netflix bintray maven repo as blitz4j 1.36.0 is in maven central
2015-02-13 14:10:25 -07:00
Spencer Gibb
572f97e135
remove getAllInstances
2015-02-13 13:30:25 -07:00
Spencer Gibb
f49d99ef5b
Pass LB IClientConfig to executeWithLoadBalancer
...
fixes 208
2015-02-13 12:33:01 -07:00
Spencer Gibb
149cc7d760
Implement ServiceInstance.{getUri,isSecure}
...
fixes gh-210
2015-02-13 11:29:59 -07:00
Dave Syer
043732aef3
More careful handling of multipart data in proxy
...
To write file data the message converter needs the file content
to be provided in the form of an HttpEntity per file.
Fixes gh-197 again
2015-02-12 18:37:54 +00:00
Spencer Gibb
2d8085cc24
fix the base href of the hystrix dashboard pages
...
fixes gh-204
2015-02-10 11:31:16 -07:00
Spencer Gibb
24a06ca630
only update route location if location is empty. Fixes bug introduced in 18b346def1
2015-02-09 21:08:21 -07:00
Spencer Gibb
18b346def1
update the serviceId and location for statically configured routes that are also part of serviceDiscovery.
...
fixes gh-199
2015-02-09 17:30:23 -07:00
Dave Syer
96335e1d24
Fix broken test
2015-02-09 17:00:22 +00:00
Dave Syer
c9b4761544
More defensive exception handling
2015-02-09 16:39:14 +00:00
Dave Syer
8dd9b830e0
Add logic for servlet prefix in ProxyRouteLocator
...
If the ServerProperties contain a servletPath then the handler mapping
does not contain that prefix, but the incoming request URI does. This leads
to some interesting prefix stripping gymnastics. All the existing tests
assumed that the prefix was empty (the default for a Spring boot app).
See gh-199
2015-02-09 15:04:54 +00:00
Dave Syer
6f569976e8
Avoid NPE if discovery is not available yet
2015-02-06 17:54:50 +00:00
Spencer Gibb
06d0bbe779
add netflixoss bintray
2015-02-05 14:19:02 -07:00
Spencer Gibb
94b0b7b692
add additional /hystrix.stream endpoint integration test
2015-02-05 14:18:44 -07:00
Spencer Gibb
27c418825d
Revert "move /hystrix.stream from an endpoint to a servlet"
...
This reverts commit 29bee28db5 .
2015-02-05 13:08:32 -07:00
Dave Syer
29383de8c1
Allow zuul.ignoredServices to be a pattern
...
and also allow explicitly configured services to be unignored. I.e.
zuul:
ignoredServices: *
routes:
foo: /foo/**
Will expose only the foo service.
Fixes gh-198
2015-02-05 17:00:17 +00:00
Dave Syer
b8cf89fb45
Use an HttpMessageConverter for form body
...
Instead of building a String, if we use an existing
HttpMessageConverter from Spring web, we can support multipart
form data.
Fixes gh-197 (hopefully)
2015-02-05 16:32:33 +01:00
Dave Syer
069afb2a73
Use logback by default in Eureka server
...
Now that blitz4j 1.36.0 is out, with a bit of hackery we can prevent
it from barfing on startup. Seems worth it (and certainly makes
it easier to embed Eureka server).
Fixes gh-3
2015-02-05 12:01:12 +01:00
Dave Syer
be0c2287ae
Documentation for status page and health URL paths
...
The Eureka instance has to provide status page and health check
URLs. We only provide a sensible default if the app is a vanilla
Actuator. This change shows users explicitly how to customize those
settings.
Fixes gh-192
2015-02-04 15:57:45 +01:00
Dave Syer
00a951c1f1
Clarify status of @EnableEurekaClient
...
Fixes gh-194
2015-02-04 15:50:18 +01:00
Julien Roy
00b689f58a
Add retryable property on Zuul route configuration
...
The ProxyRouteLocator now has a retryable property (default
null which means Ribbon will choose the default - usually false).
Fixes gh-115, fixes gh-124
2015-02-04 15:02:49 +01:00
Dave Syer
9fb833e4a9
Fix paths in /hystrix HTML pages
...
When running from /hystrix or from / (with a forward) the
webjars and the monitor endpoint need to be resolvable, so
we need to use the FTL macros again.
Fixes gh-193
2015-02-04 11:54:08 +01:00
Dave Syer
4c5179130e
Add metadataMap option for Server.zone
...
Adds a metadataMap for the Server.zone so that user can
provide the data through external configuration if needed.
2015-02-03 12:13:21 +01:00
Dave Syer
4afc44acaf
Catch exception and log instead of failing
...
Some singleton clashes are inevitable if running multiple
apps i nteh same JVM, but we can at least try and not fall off
a cliff when they happen.
2015-02-03 10:38:57 +01:00
Dave Syer
4f39b64f26
Make test Eureka run on port 8761
2015-02-03 10:38:39 +01:00
Dave Syer
63e6c813a3
Remove guava usages (fixes gh-154)
2015-01-30 14:10:38 +00:00
Spencer Gibb
29bee28db5
move /hystrix.stream from an endpoint to a servlet
...
fixes gh-187
2015-01-29 13:28:33 -07:00
Spencer Gibb
42422bef5c
prepend http:// to feign url if not there
2015-01-29 11:53:14 -07:00
Dave Syer
8410b8938a
Fix autconfig class name in renamed package
2015-01-29 17:59:02 +00:00
Dave Syer
6dc0bd5f5e
Refactor @FeignClient to use name= or url= but not both
...
Replaces the boolean flag (loadbalance) for switching between service
resolution (by name) or straight URL bashing.
2015-01-29 17:40:56 +00:00
Dave Syer
9aa979cd31
@FeignClientScan -> @EnableFeignClients
...
By analogy with @EnableJpaRepositories, so it's obvious that
the same thing will happen (interfaces are turned into concrete
@Beans).
2015-01-29 17:39:59 +00:00
Dave Syer
fe08762f50
Rename package that was missing 'cloud'
2015-01-29 17:39:59 +00:00
Dave Syer
e100207e8a
Clarify and document some Feign stuff
2015-01-29 17:39:59 +00:00
Spencer Gibb
a739884207
added preferIpAddress section to eureka and updated ribbon docs to show what beans are created by default and how to override them.
2015-01-29 09:55:17 -07:00
Spencer Gibb
39eb9815b6
Merge branch 'loadbalancer-builder'
2015-01-29 08:27:11 -07:00
Dave Syer
91e3bee54b
Update some dependencies
2015-01-29 11:24:20 +00:00
Spencer Gibb
af0b24d1a2
use LoadBalancerBuilder so all parts of the LoadBalancer can be injected via Spring.
...
This includes support for: ServerList, ServerListFilter, IRule, IPing and IClientConfig.
Eliminates custom wrapping of ServerList.
fixes gh-185
2015-01-28 12:33:32 -07:00
Dave Syer
b5bd371d8c
Be defiensive about errors getting remote status
2015-01-27 07:29:27 +00:00
Spencer Gibb
01c5b44a18
propagate EnvironmentChangeEvents to archaius dynamic property listenters
...
fixes gh-144
2015-01-26 22:16:09 -07:00
Spencer Gibb
614ec44c04
update sidecare enabled property, make eureka portion of config conditional on eureka on classpath so other DiscoveryClient impls can use it.
2015-01-26 22:01:21 -07:00