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
fe50674c
Commit
fe50674c
authored
Dec 01, 2016
by
Ryan Baxter
Committed by
GitHub
Dec 01, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1520 from ryanjbaxter/eureka-client-zone-doc-1327
Document Eureka client zone config
parents
1fe1ea58
071bad21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
spring-cloud-netflix.adoc
docs/src/main/asciidoc/spring-cloud-netflix.adoc
+28
-0
No files found.
docs/src/main/asciidoc/spring-cloud-netflix.adoc
View file @
fe50674c
...
@@ -305,6 +305,33 @@ production it's probably better to stick with the default because
...
@@ -305,6 +305,33 @@ production it's probably better to stick with the default because
there
are
some
computations
internally
in
the
server
that
make
there
are
some
computations
internally
in
the
server
that
make
assumptions
about
the
lease
renewal
period
.
assumptions
about
the
lease
renewal
period
.
===
Zones
If
you
have
deployed
Eureka
clients
to
multiple
zones
than
you
may
prefer
that
those
clients
leverage
services
within
the
same
zone
before
trying
services
in
another
zone
.
To
do
this
you
need
to
configure
your
Eureka
clients
correctly
.
First
,
you
need
to
make
sure
you
have
Eureka
servers
deployed
to
each
zone
and
that
they
are
peers
of
each
other
.
See
the
section
on
<<
spring
-
cloud
-
eureka
-
server
-
zones
-
and
-
regions
,
zones
and
regions
>>
for
more
information
.
Next
you
need
to
tell
Eureka
which
zone
your
service
is
in
.
You
can
do
this
using
the
`
metadataMap
`
property
.
For
example
if
`
service
1
`
is
deployed
to
both
`
zone
1
`
and
`
zone
2
`
you
would
need
to
set
the
following
Eureka
properties
in
`
service
1
`
*
Service
1
in
Zone
1
*
```
eureka
.
instance
.
metadataMap
.
zone
=
zone1
eureka
.
client
.
preferSameZoneEureka
=
true
```
*
Service
1
in
Zone
2
*
```
eureka
.
instance
.
metadataMap
.
zone
=
zone2
eureka
.
client
.
preferSameZoneEureka
=
true
```
[[
spring
-
cloud
-
eureka
-
server
]]
[[
spring
-
cloud
-
eureka
-
server
]]
==
Service
Discovery
:
Eureka
Server
==
Service
Discovery
:
Eureka
Server
...
@@ -362,6 +389,7 @@ dependencyManagement {
...
@@ -362,6 +389,7 @@ dependencyManagement {
----
----
====
====
[[spring-cloud-eureka-server-zones-and-regions]]
=== High Availability, Zones and Regions
=== High Availability, Zones and Regions
The Eureka server does not have a backend store, but the service
The Eureka server does not have a backend store, but the service
...
...
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