Commit Graph

378 Commits

Author SHA1 Message Date
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
Spencer Gibb
d78982973e add support for feign RequestInterceptors
fixes gh-159
2015-01-26 21:45:18 -07:00
Spencer Gibb
6435b73f40 remove EurekaHeartbeatEvent 2015-01-26 21:16:14 -07:00
Spencer Gibb
81bc83312c removed TODOs that are out of date 2015-01-26 20:48:39 -07:00
Spencer Gibb
01abd6d123 removed in favor of github issues 2015-01-26 20:45:06 -07:00
Spencer Gibb
5c84080d62 Upgrade netflix archaius to 0.6.5
fixes gh-179
2015-01-26 15:44:41 -07:00
Spencer Gibb
32a9033661 upgrade to netflix eureka to 1.1.147
fixes gh-180
2015-01-26 15:30:06 -07:00
Spencer Gibb
49b81607a3 upgrade to netflix hystrix to 1.4.0-RC6
fixes gh-182
2015-01-26 15:04:28 -07:00
Spencer Gibb
e265a5e3c8 upgrade to netflix feign 7.1.0.
Add feign-slf4j support.

fixes gh-178
2015-01-26 14:54:01 -07:00
Dave Syer
b2301434d2 Align with API changes from config client 2015-01-25 11:49:13 +00:00
Spencer Gibb
cdf34fddb1 Auto configure EurekaClientAutoConfiguration after NoopDiscoveryClientAutoConfiguration 2015-01-23 10:55:37 -07:00