-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Eureka 2.0 Server Configuration And Use
- JDK 1.7
You can get the Eureka 2.0 client binaries from the following sources. Always try to get the latest release as tend to have more fixes.
Eureka 2.0 uses two main types of servers by default, write servers and read servers. An optional bridge module is available that can be configured to be a component of a write server that allows bridge of data from a currently deployed eureka 1.0 system to the 2.0 system.
The combination of resolverType and serverList defines the write server cluster.
- ResolverType can either be fixed (read straight from the serverList) or dns (the serverList name is taken as a dns entry and expanded);
- ServerList is a comma delimited list with each entry in the format name:registrationPort:interestPort:replicationPort.
eureka.common.writeCluster.resolverType=fixed
eureka.common.writeCluster.serverList=["localhost:12102:12103:12104","localhost:12112:12113:12114"]
Each server will also need configuration to self identify.
- appName - the server's appName in its own InstanceInfo record
- vipAddress - the server's vipAddress in its own InstanceInfo record
- dataCenterInfo.type - Basic or AWS
eureka.instanceInfo.appName=eureka-write-cluster
eureka.instanceInfo.vipAddress=eureka-write-cluster
eureka.dataCenterInfo.type=Basic
Artifact
- com.netflix.eureka:eureka2-write-server
Write servers have the following responsibilities:
- accepting registration requests from eureka registration clients
- accepting interest discover requests from eureka interest clients
- replicate local registration data to peer write servers
For each of the responsibilities listed above, a separate port needs to be exposed. See the ]example configuration](../blob/2.x/eureka2-write-server/src/main/resources/eureka-write-server.properties)
Artifact
- com.netflix.eureka:eureka2-read-server
- Eureka at a glance
- Configuring Eureka
- Building Eureka Client and Server
- Running the Demo Application
- Deploying-Eureka-Servers-in-EC2
- Understanding Eureka Client/Server Communication
- Server Self Preservation Mode
- Eureka REST operations
- Understanding Eureka Peer to Peer communication
- Overriding Default Configurations
- FAQ