-
Notifications
You must be signed in to change notification settings - Fork 16
Zone Affinity
Nadim Benabdenbi edited this page Dec 7, 2017
·
2 revisions
The zone affinity routes exclusively to servers that are in the same zone using a round robin load balancing.
@RibbonClients(defaultConfiguration = RibbonClientsConfig.class)
@SpringBootApplication
public class Application{
...
}
@Configuration
@EnableRibbonZoneAffinity
public class RibbonClientsConfig {
}
ribbon.extensions.rule.zone-affinity.enabled=true
ribbon.extensions.client.my-client-name.rule.zone-affinity.enabled=true
Where my-client-name is the ribbon client name