Commit Graph

476 Commits

Author SHA1 Message Date
Spencer Gibb
e3b42e79b6 fix misspelling 2015-05-05 10:54:59 -06:00
Spencer Gibb
688b577d63 Merge pull request #334 from marcingrzejszczak/patch-1
Reason why Eureka instance is not found, is not visible
2015-05-05 11:43:32 -04:00
Spencer Gibb
85b7ccf618 Merge pull request #316 from brenuart/issue-312
Make creation of the RestClient LAZY as it is no always required (issue #312)
2015-05-04 16:26:17 -04:00
Marcin Grzejszczak
eed9b996fb Reason why Eureka instance is not found is not visible
With the following configuration at `bootstrap.yaml`

```yaml

spring:
  application.name: spring-cloud-hystrix-dashboard
  profiles.active: prod
  cloud:
    config:
      discovery:
        enabled: true
        serviceId: spring-cloud-server-config-with-eureka
server.port: 9003

turbine:
  appConfig: some-service
  clusterNameExpression: 'default'
```

I wasn't able to see why Turbine can't find the instance. The reason was related to SPEL:

```
org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 0): Property or field 'default' cannot be found on object of type 'com.netflix.appinfo.InstanceInfo' - maybe not public?
```

Anyways there was nothing there in the logs so maybe it should not be silenced like right now?
2015-05-04 16:55:11 +02:00
Dave Syer
3809bcbc90 More 1.0.2 snapshots 2015-05-01 16:24:20 +01:00
Dave Syer
0587df4ae2 Fix parent version 2015-05-01 16:19:51 +01:00
Dave Syer
53c0e0a246 Fix parent version 2015-05-01 16:19:21 +01:00
Dave Syer
bad44ec8ab Fix parent version 2015-05-01 16:15:48 +01:00
Dave Syer
fde4741333 Update to 1.0.3 snapshots 2015-05-01 11:22:13 +02:00
Dave Syer
c77322348c Add example for SEMAPHORE in @HystrixCommand 2015-05-01 11:20:21 +02:00
Spencer Gibb
c3f5678854 only invoke RestClient.initWithNiwsConfig once
fixes gh-324
2015-04-30 12:56:38 -06:00
Spencer Gibb
5166994f7c add documentation for ribbon.eureka.enabled
fixes gh-325
2015-04-30 09:42:28 -06:00
Spencer Gibb
ce6d286d70 Don't execute load balancer twice
fixes gh-323
2015-04-29 22:20:10 -06:00
Bertrand Renuart
df8c637a57 add short explanation in javadoc 2015-04-28 11:26:50 +02:00
Bertrand Renuart
e2fa45f960 Make creation of the RestClient LAZY as it is no always required (see
https://github.com/spring-cloud/spring-cloud-netflix/issues/312)
2015-04-24 09:32:26 +02:00
Dave Syer
b28fd07cdb Update to 1.0.2 snapshots 2015-04-23 11:11:21 +01:00
Dave Syer
22c261c8ce Update connectors version 2015-04-22 11:40:25 +02:00
Spencer Gibb
3e98c78c12 add PATCH to SimpleHostRoutingFilter
fixes gh-307
2015-04-17 11:49:51 -06:00
Spencer Gibb
6dce075e99 upgrade to feign 8.1.1 which includes a fixes bad urls
fixes 305
2015-04-17 10:08:21 -06:00
Spencer Gibb
3d9e998a01 fix missing jersey apache4client 2015-04-16 14:49:12 -06:00
Spencer Gibb
55a8195a67 throw more descriptive error if no ServiceInstance is found 2015-04-16 14:48:38 -06:00
Dave Syer
936a3b334e Set explicit cookie policy in HTTP client in RibbonClientConfiguration
When the Apache HTTP client is being set up for the Ribbon client we can jump
in and explicitly set a cookie policy. Obviously, since the client will generally
be shared across sessions, the only sensible default is IGNORE_COOKIES.

I couldn't find a way round this without using deprecated APIs (but there
are other instances of that in our code because of the way Netflix uses
it, so maybe that doesn't matter).

Fixes gh-301
2015-04-16 13:28:37 +01:00
Spencer Gibb
1799809562 Merge branch 'hystrix-144' 2015-04-14 13:28:03 -06:00
Chad Jaros
38e25f390f Support for @RequestMapping on class and ResponseEntity return types 2015-04-14 09:54:43 -06:00
Spencer Gibb
a765839771 upgrade hystrix to 1.4.4 and integrate dashboard changes
fixes gh-300
2015-04-14 08:58:18 -06:00
Spencer Gibb
20da63c238 Merge pull request #299 from royclarkson/dashboard-cf-fix
Ignore 'Connection: close' header from stream response
2015-04-13 16:48:16 -04:00
Roy Clarkson
408910e893 Ignore 'Connection: close' header from stream response
This commit resolves an issue where some versions of Cloud Foundry are
setting the 'Connection: close' HTTP header in the Hystrix stream
response, which causes the dashboard to not display the stream data.

See https://github.com/cloudfoundry/gorouter/issues/71
2015-04-13 15:19:16 -05:00
Spencer Gibb
45449cfb84 polish 2015-04-13 12:50:45 -06:00
Alexandru Burghelea
611c0b5c1c Added posibility to append archaius configuration to existing installed configurations 2015-04-13 12:50:45 -06:00
Spencer Gibb
9699664e09 Merge pull request #294 from joshiste/master
Docs: Example of static, loadbalanced Zuul configuration
2015-04-13 10:40:59 -04:00
Spencer Gibb
3279ae601f Merge pull request #298 from joshiste/exlude-mockito-all
Exlude mockito all
2015-04-13 10:40:53 -04:00
Roy Clarkson
e1b6ddf563 Format whitespace 2015-04-13 08:40:15 -05:00
Johannes Stelzer
242419726d Exclude mockito-all from zuul-core and turbine-core
However turbine and zuul are depending on mockito-all in compile-scope. Not only I want to get rid of these (usually) test-dependencies, but also mockito-all contains some hamcrest-classes (in older versions) getting in conflict with the classes from spring-test
2015-04-11 16:59:19 +02:00
Spencer Gibb
3794213aaf add a note about the Spring Cloud DiscoveryClient.
fixes gh-276
2015-04-06 15:12:38 -06:00
Johannes Stelzer
6a0737dacf Example of static, loadbalanced Zuul configuration
It took me quite a bit, to figure out how to configure Zuul to use a loadbalanced route without Eureka. I hope this short explicit example will clarify it for other people.
2015-04-02 20:33:05 +02:00
Dave Syer
873854810a Fix eureka instance metadata in Cloud Foundry example 2015-04-02 13:45:05 +01:00
Dave Syer
555b1f1c06 Use UrlPathHelper to determine the current url path in Zuul
If the app has a context path then the route locator does not match
the whole requestURI (as provided by the raw servlet API), but Spring
has a utility for stripping it off, so we can just use that.

Fixes gh-270
2015-04-01 12:05:05 +01:00
Dave Syer
5961931caf Make /error path a special case in ZuulHandlerMapping
If there is a default route (/**) then the ZuulHandlerMapping will
mask the /error path in a normal Spring Boot application. This change
makes it a special case so that ZuulHandlerMapping will never map
the /error route (the one specified by the ErrorController).

Fixes gh-284
2015-04-01 11:50:33 +01:00
Spencer Gibb
814f7e9283 added warn logging to hystrix dashboard proxy servlet 2015-03-27 10:57:03 -06:00
Spencer Gibb
20bb1af655 added debug logging to hystrix dashboard proxy servlet 2015-03-27 10:11:53 -06:00
Roy Clarkson
370ce804e3 Update docs to use @EnableCircuitBreaker 2015-03-27 10:44:06 -05:00
Spencer Gibb
2d18706219 updated to use RestTemplateCustomizer 2015-03-26 11:45:37 -06:00
Spencer Gibb
8bfef044d2 fixed bad class name 2015-03-26 11:45:37 -06:00
Spencer Gibb
28db47c72a move RibbonClientHttpRequestFactory to configuration conditional on netflix httpclient classes 2015-03-26 11:45:37 -06:00
Spencer Gibb
55d46eb6c7 add support for ribbon http client in RestTemplate.
fixes gh-280
2015-03-26 11:45:37 -06:00
Dave Syer
5f9c3e6073 Ensure management.port=-1 switches off actuator endpoints in turbine 2015-03-26 09:37:50 +00:00
Dave Syer
3714cee51d Clarify impact of @ComponentScan on @RibbonClient
Fixes gh-281
2015-03-26 09:36:27 +00:00
Dave Syer
d0021f0415 Clarify turbine config
Also fixes gh-277 (metioning starters explicitly).
2015-03-25 09:42:00 +00:00
Spencer Gibb
f5b6c58f30 upgrade hystrix to 1.4.1
fixes gh-279
2015-03-24 13:44:29 -06:00
Spencer Gibb
f0d8c86b51 Only call shutdown() if DiscoveryClient is not null.
fixes spring-cloud-samples/tests/issues/2
2015-03-24 13:21:46 -06:00