Spring Cloud Ribbon Client load Balancing policy

Source: Internet
Author: User

Load Balancing Policy

Abstractloadbalancerrule

An abstract class of load balancing policies that defines a load Balancer Iloadbalancer object that can be obtained when a service policy is selected for a specific implementation

Some of the information maintained in load balancing as a basis for allocation and design algorithms to implement efficient strategies for specific scenarios

Randomrule

Randomly select a service instance

Roundrobinrule

How to poll linearly

Retryrule

Implements an instance selection function with retry mechanism

Weightedresponsetimerule

This strategy is an extension of the roundrobinrule, which increases the calculation of weights based on the operation of the instance, and selects instances based on weights to achieve better allocation results.

Scheduled Tasks

Serverweighttimer.schedule (New Dynamicserverweighttask (), 0, Serverweighttasktimerinterval); Start a scheduled task,

Used to calculate weights for each service instance

Spring Cloud Ribbon Client load Balancing policy

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.