Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cetus负载多个从库时,是什么机制或者算法保证多个从库压力基本保持一致的? #215

Open
wwwwwwchun opened this issue Jun 25, 2021 · 1 comment

Comments

@wwwwwwchun
Copy link

您好,我想问一下,在一主多从的架构中,cetus通过什么算法或者机制实现多个从库间分配读请求的负载均衡的?

@wangbin579
Copy link
Member

目前算法比较简单,获取从库连接时,按照round robin法则去获取,如果不同连接的请求数量不同,可能负载就会不均衡。
一般而言,流量越大,越均衡。

从连接来计算,而不是请求的角度来做,主要为了性能考虑

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants