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

DataSenderFactory中的DataSenderChecker对于按百分比选择连接,使用更合理的分散算法与策略 #2

Closed
wu-sheng opened this issue Nov 26, 2015 · 4 comments
Labels
bug Something isn't working and you are sure it's a bug!
Milestone

Comments

@wu-sheng
Copy link
Member

百分比会默认选择靠前的连接,会造成集群中的服务器连接数量不均衡。
服务器列表靠前的服务器,连接数过大。

@wu-sheng wu-sheng added this to the 1.0 milestone Nov 26, 2015
@wu-sheng wu-sheng added the bug Something isn't working and you are sure it's a bug! label Nov 26, 2015
@ascrutae
Copy link
Member

ascrutae commented Dec 1, 2015

在DataSenderChecker初始化的时候添加,添加随机获取服务方法。

@ascrutae ascrutae closed this as completed Dec 1, 2015
@wu-sheng
Copy link
Member Author

wu-sheng commented Dec 4, 2015

DataSenderChecker只在提取的时候随机,未在初始化选取连接时初始化,无法达到负载均衡的效果。

@wu-sheng wu-sheng reopened this Dec 4, 2015
@wu-sheng
Copy link
Member Author

wu-sheng commented Dec 4, 2015

应使用更合理的负载机制,随机切换可用连接,不应该选取后不替换,造成部分服务器压力过大。

@wu-sheng wu-sheng changed the title DataSenderFactory中的DataSenderChecker对于按百分比选择连接,处理不正确 DataSenderFactory中的DataSenderChecker对于按百分比选择连接,使用更合理的分散算法与策略 Dec 4, 2015
@wu-sheng
Copy link
Member Author

wu-sheng commented Dec 7, 2015

新的算法使用独立线程进行连接检测
1.释放不可用连接
2.为连接池新补充连接(连接池配额不足时)
3.连接池正常时,定期替换,保证服务器连接的负载均衡

@wu-sheng wu-sheng closed this as completed Dec 7, 2015
wu-sheng pushed a commit that referenced this issue Feb 26, 2017
wu-sheng pushed a commit that referenced this issue Jan 9, 2018
 Fix DataTTLKeeperTimer's startTimestamp and endTimestamp
wu-sheng pushed a commit that referenced this issue Feb 28, 2018
GuoDuanLZ added a commit to GuoDuanLZ/skywalking that referenced this issue Jan 29, 2020
wu-sheng pushed a commit that referenced this issue Jun 2, 2021
liqiangz pushed a commit to liqiangz/skywalking that referenced this issue Jun 9, 2021
lu-xiaoshuang pushed a commit to lu-xiaoshuang/skywalking that referenced this issue Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working and you are sure it's a bug!
Projects
None yet
Development

No branches or pull requests

2 participants