Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-cloud-netflix
Commits
5166994f
Commit
5166994f
authored
Apr 30, 2015
by
Spencer Gibb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add documentation for ribbon.eureka.enabled
fixes gh-325
parent
ce6d286d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
spring-cloud-netflix.adoc
docs/src/main/asciidoc/spring-cloud-netflix.adoc
+22
-4
No files found.
docs/src/main/asciidoc/spring-cloud-netflix.adoc
View file @
5166994f
...
@@ -650,6 +650,18 @@ stores:
...
@@ -650,6 +650,18 @@ stores:
listOfServers: example.com,google.com
listOfServers: example.com,google.com
----
----
=== Example: Disable Eureka use in Ribbon
Setting the property `ribbon.eureka.enabled = false` will explicitly
disable the use of Eureka in Ribbon.
.application.yml
----
ribbon:
eureka:
enabled: false
----
=== Using the Ribbon API Directly
=== Using the Ribbon API Directly
You can also use the `LoadBalancerClient` directly. Example:
You can also use the `LoadBalancerClient` directly. Example:
...
@@ -838,18 +850,24 @@ The location of the backend can be specified as either a "serviceId"
...
@@ -838,18 +850,24 @@ The location of the backend can be specified as either a "serviceId"
----
----
These simple url-routes doesn't get executed as HystrixCommand nor can you loadbalance multiple url with Ribbon.
These simple url-routes doesn't get executed as HystrixCommand nor can you loadbalance multiple url with Ribbon.
To achieve this specify a service-route and configure a Ribbon client for the serviceId, e.g.
To achieve this specify a service-route and configure a Ribbon client for the
serviceId (this currently requires disabling Eureka support in Ribbon:
see <<spring-cloud-ribbon-without-eureka,above for more information>>), e.g.
.application.yml
.application.yml
[source,yaml]
[source,yaml]
----
----
zuul:
zuul:
routes:
routes:
users:
users:
path: /myusers/**
path: /myusers/**
serviceId: users
serviceId: users
users:
ribbon:
eureka:
enabled: false
users:
ribbon:
ribbon:
listOfServers: example.com,google.com
listOfServers: example.com,google.com
----
----
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment