Study reference: http://blog.didispace.com/Spring-Cloud%E5%9F%BA%E7%A1%80%E6%95%99%E7%A8%8B/
Spring Cloud consists of "Service Register center, service provider, service consumer";
The Service registry stores information about each service, storing a raw data in a "double-layered map",
The first city key is the service name, the second layer of key is the service instance name,
{
Service 1:{
Example 1: Instance 1
Example 2: Instance 2
}
}
Self-protection
Eureka server will count the rate of heartbeat failure to be less than 85% in 15 minutes during run time, and if it falls below, Eureka server will protect the current instance so that these instances do not expire and protect the registration information as much as possible;
Turn off self-protection and the registry will reject instances that are not available: "Eureka.service.enable-self-preservation=false"
Cond.......
Spring Cloud Learning Summary 001-service Governance-eureka