Commit Graph

140 Commits

Author SHA1 Message Date
Christian Dupuis
d715ec570f Add paragraph to documentation about Hystrix /health endpoint 2014-10-28 13:10:16 +01:00
Christian Dupuis
77b6641ac1 Introduced a new status for open circuits in the /health endpoint 2014-10-28 12:57:56 +01:00
Christian Dupuis
cbec02092f Add Hystrix HealthIndicator 2014-10-28 11:09:35 +01:00
Dave Syer
b533ad3bb2 Switch to spring.cloud.config.bootstrap.enabled=true
To enable EUreka-first bootstrap.

See gh-42
2014-10-26 15:35:11 +00:00
Dave Syer
46e6d24aa8 Add basic authentication for config server
Fixes gh-42
2014-10-26 14:41:20 +00:00
Dave Syer
8ff3462ad8 Add bootstrap configuration for eureka-first
See gh-42
2014-10-26 14:40:48 +00:00
Dave Syer
dd967120aa Add eureka peer awareness docs
It works quite well locally actually. I tested with hostnames
127.0.0.1 and 127.0.1.1 and 2 servers running on localhost.

See gh-28
2014-10-24 16:29:57 +01:00
Dave Syer
7c67fe28bc Remove references to starters in spring-cloud-netflix
Fixes gh-46
2014-10-23 12:48:43 -07:00
Dave Syer
83ed396939 Add back trace filter 2014-10-23 11:57:41 -07:00
Dave Syer
35d02f75ae Switch eureka endpoint to /eureka
All static content is excluded in the Jersey config, so we can use
/eureka for the prefix to the Eureka API (i.e. /apps etc.)

Fixes gh-44
2014-10-23 11:16:39 -07:00
Dave Syer
cce52424af Add ArchaiusEndpoint (/archaius) to inspect native Netflix config
Unfortunately only properties that have been set show up (unlike
/configprops), but possibly better than nothing. You can see some
in the Eureka server or in the customers sample (once it has
tries to contact the stores service and Ribbon is up and running).

Fixes gh-38
2014-10-23 10:39:15 -07:00
Dave Syer
f99b9935fb Remove unecessary Boot 1.1.5 artifacts
See gh-39
2014-10-23 07:36:28 -07:00
Dave Syer
df0d44d153 Update docs and tests for /eureka path 2014-10-23 06:56:53 -07:00
Dave Syer
5055b46e24 Change default eureka path
/v2/* -> /eureka/api/*

The prefix can't be /eureka because we use that for static
resources. Note that the "api" prefix gets passed to the
Jersey resources as a "version" (and defaults to "v2" when
it can't be parsed).

Fixes gh-41
2014-10-23 06:47:08 -07:00
Dave Syer
9e142bf73b InstanceInfo unmarshalling has to be at a lower level 2014-10-22 10:22:40 -07:00
Dave Syer
8db14f042d Extract ID from instance info 2014-10-22 08:18:14 -07:00
Dave Syer
8d8f6937e5 Use instanceId for server id if available 2014-10-21 19:13:41 -07:00
Dave Syer
fa4d970015 Tweaks 2014-10-21 03:53:50 -07:00
Dave Syer
cf6152821e Move @Autowired into @Configuration
I prefer to keep the actual components free of autowiring, so they
are easier to navigate in an IDE (i.e. you can see how they are
constructed)
2014-10-20 17:16:20 -07:00
Dave Syer
66b4d4c6b5 Tidy up generics a bit 2014-10-20 17:16:20 -07:00
Spencer Gibb
1e12b7456e Add Feign support for Spring MVC parameter and header annotations.
Specifically RequestParam, PathVariable and RequestHeader

 fixes gh-36
2014-10-20 18:07:56 -06:00
Spencer Gibb
31732b2100 Merge branch 'ribbon2' 2014-10-20 14:41:32 -06:00
Spencer Gibb
33b3b52170 added travis build status to readme 2014-10-20 14:41:15 -06:00
Spencer Gibb
8a5e45c466 Merge branch 'routing-nostrip' 2014-10-17 22:07:44 -06:00
Spencer Gibb
166ab38882 make stripMapping default to true to not change the current functionality 2014-10-17 18:29:21 -06:00
Spencer Gibb
658808a3e2 Update .travis.yml
gem install asciidoctor
2014-10-17 17:19:41 -07:00
Spencer Gibb
e0a7d9e033 add asciidoctor installation 2014-10-17 18:12:33 -06:00
Spencer Gibb
f38ccc352b updated to ribbon 2.0-RC9 2014-10-17 17:54:47 -06:00
Spencer Gibb
948b176cb0 Add loadBalancerRequest so that LoadBalancerStats().incrementNumRequests can be called after 2014-10-17 16:32:27 -06:00
Spencer Gibb
07a66fe8b9 updated test to match class 2014-10-17 15:26:40 -06:00
Spencer Gibb
50b1c48283 renamed ServerListInitializer to RibbonClientPreprocessor as it is a bit more descriptive 2014-10-17 15:23:16 -06:00
Spencer Gibb
6654d32056 create SpringClientFactory for ribbon to not fail on client creation if LoadBalancer is already created. SpringClientFactory is not a static factory, but an instance factory.
Remove unused hystrix configuration classes.
2014-10-17 14:53:16 -06:00
Dave Syer
f934b88a76 Ensure eureka client has a default zone with a serviceUrl 2014-10-17 18:05:46 +01:00
Dave Syer
859c96d31b Switch to using EurekaClientConfig to determine client zone
This makes perfect sense since there is already support in the API.
Unfortunately Eureka also uses that information to set the Server
zones by default (duh?!) - see DiscoveryClient.getZone(InstanceInfo),
so unless you aggressively update them, the zones will all be the same
in all servers.

I fixed that problem by unconditionally applying the "domain as zone"
guess algorithm, which is fine unless you actually want to use
the Amazon metadata. So that's an outstanding problem

See gh-30
2014-10-17 09:54:18 +01:00
Dave Syer
997f531094 Make load balancer prefer the current zone if there is one
A EurekaInstanceConfig can declare a "zone" in its metadataMap, and then
it will be matched by the RibbonLoadBalancerClient. The zone of a server
is derived from the hostname - it is the whole host name or the host name
excluding the least significant subdomain (period separated identifier).

Fixes gh-29
2014-10-16 16:29:07 +01:00
Spencer Gibb
c9dc8f5122 use boots HttpMessageConverters class rather than copied list of converters 2014-10-14 12:41:41 -06:00
Dave Syer
e52949e592 Move eureka events to server project 2014-10-14 17:49:11 +01:00
Dave Syer
826d5ff383 Tidy (mostly pom warnings) 2014-10-14 17:34:28 +01:00
Dave Syer
5bded8aa85 Make Eureka into a CF service broker 2014-10-14 17:03:46 +01:00
Dave Syer
49db709de9 Simplify README generator 2014-10-14 13:05:01 +01:00
Spencer Gibb
46cf840e25 added ipAddress to ServiceInstance 2014-10-08 16:54:40 -06:00
Christian Dupuis
3f96f3ae61 Some polishing 2014-10-08 14:32:18 +02:00
Christian Dupuis
5bd32c01b8 Add shutdown hook for Hystrix to reset internal state and thread pool.
Additionally added some license headers and @author tags.

fixes #17
2014-10-08 14:24:03 +02:00
Spencer Gibb
2505b437ef only set the eureka port from the container if server.port is 0 (originally implemented from gh-15) 2014-10-07 16:54:24 -06:00
Spencer Gibb
714741b1cd added serviceId to ServiceInstance;
added beginnings of a generic DiscoveryClient interface;
2014-10-07 16:51:04 -06:00
Dave Syer
66e0c6436d Add scm element to POM 2014-10-07 11:18:04 +01:00
Dave Syer
8eae5fb52a Add docs for Eureka server as executable JAR 2014-10-07 10:50:04 +01:00
Dave Syer
3dd15621dc Move docs to submodule for multi-module projects 2014-10-06 15:02:28 +01:00
Dave Syer
862f19beba Extract repositories to .settings.xml 2014-10-06 13:02:33 +01:00
Dave Syer
5ce8cb547e Add CI creds to secure travis vars 2014-10-06 12:09:51 +01:00