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
d7c13ada
Unverified
Commit
d7c13ada
authored
Oct 23, 2017
by
Spencer Gibb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'tiny-dancer-patch-1'
parents
de16cb71
bd2473a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
3 deletions
+34
-3
spring-cloud-netflix.adoc
docs/src/main/asciidoc/spring-cloud-netflix.adoc
+34
-3
No files found.
docs/src/main/asciidoc/spring-cloud-netflix.adoc
View file @
d7c13ada
...
...
@@ -833,6 +833,7 @@ To set the `IRule` for a service name `users` you could set the following:
----
users
:
ribbon
:
NIWSServerListClassName
:
com
.
netflix
.
loadbalancer
.
ConfigurationBasedServerList
NFLoadBalancerRuleClassName
:
com
.
netflix
.
loadbalancer
.
WeightedResponseTimeRule
----
...
...
@@ -1500,9 +1501,39 @@ The location of the backend can be specified as either a "serviceId"
url: http://example.com/users_service
----
These simple url-routes don'
t
get
executed
as
a
`
HystrixCommand
`
nor
can
you
loadbalance
multiple
URLs
with
Ribbon
.
To
achieve
this
,
specify
a
service
-
route
and
configure
a
Ribbon
client
for
the
serviceId
(
this
currently
requires
disabling
Eureka
support
in
Ribbon
:
These simple url-routes don'
t
get
executed
as
a
`
HystrixCommand
`
nor
do
they
loadbalance
multiple
URLs
with
Ribbon
.
To
achieve
this
,
you
can
specify
a
`
serviceId
`
with
a
static
list
of
servers
:
.
application
.
yml
[
source
,
yaml
]
----
zuul
:
routes
:
echo
:
path
:
/
myusers
/**
serviceId
:
myusers
-
service
stripPrefix
:
true
hystrix
:
command
:
myusers
-
service
:
execution
:
isolation
:
thread
:
timeoutInMilliseconds
:
...
myusers
-
service
:
ribbon
:
NIWSServerListClassName
:
com
.
netflix
.
loadbalancer
.
ConfigurationBasedServerList
ListOfServers
:
http
://
example1
.
com
,
http
://
example2
.
com
ConnectTimeout
:
1000
ReadTimeout
:
3000
MaxTotalHttpConnections
:
500
MaxConnectionsPerHost
:
100
----
Another
method
is
specifiying
a
service
-
route
and
configure
a
Ribbon
client
for
the
serviceId
(
this
requires
disabling
Eureka
support
in
Ribbon
:
see
<<
spring
-
cloud
-
ribbon
-
without
-
eureka
,
above
for
more
information
>>),
e
.
g
.
.
application
.
yml
...
...
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