You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe:
How does a load balancer work according to middleware?At any time, the operating load on each node should be balanced, so we need strategy to determine which tidb executes current sql in a short time(time must be a constant), we can’t waste too much time making decisions.
Describe the feature you'd like:
An algorithm is used to enable us to get an accurate decision for select nodes.
Describe alternatives you've considered:
The result relying solely on sql cost calculation is not very accurate, cpu should also be taken into consideration. Dynamically adjust this strategy throughout the process. @spxcmss
Currently, the SWRR(Smooth Weighted Round-Robin) algorithm is considered to be used in tidb nodes‘s allocation, and the weights are set according to the cpus of different TIDB nodes. In the future, the cost and TIDB CPU usage and some other factors will be taken into comprehensive consideration as the weight value. Therefore, when selecting back-end TIDB nodes, the weight can be allocated according to dynamic changes to ensure that the real load of each back-end TIDB node is balanced as much as possible.
spxcmss
changed the title
[Feature] Connection pool algorithm
[Feature] TiDB nodes assignment algorithm when receiving a request
Aug 11, 2021
Feature Request
Is your feature request related to a problem? Please describe:
How does a load balancer work according to middleware?At any time, the operating load on each node should be balanced, so we need strategy to determine which tidb executes current sql in a short time(time must be a constant), we can’t waste too much time making decisions.
Describe the feature you'd like:
An algorithm is used to enable us to get an accurate decision for select nodes.
Describe alternatives you've considered:
The result relying solely on sql cost calculation is not very accurate, cpu should also be taken into consideration. Dynamically adjust this strategy throughout the process. @spxcmss
Teachability, Documentation, Adoption, Migration Strategy:
The text was updated successfully, but these errors were encountered: