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

统计成功率以及根据成功率智能分配任务 #14

Open
ouuan opened this issue May 31, 2020 · 5 comments
Open

统计成功率以及根据成功率智能分配任务 #14

ouuan opened this issue May 31, 2020 · 5 comments

Comments

@ouuan
Copy link

ouuan commented May 31, 2020

最近可能是因为 b 站在做什么 API 更改或其它原因,部分 API 请求经常失败,希望能统计每种 API 的成功率,在某种 API 成功率很低时减少相应的任务量。

其实我并不知道实现难度如何..不行的话可以临时先人工调整(

@simon300000
Copy link
Member

哇,好办法

@ouuan
Copy link
Author

ouuan commented Jun 3, 2020

看起来是会封 IP..那最好是能在客户端统计成功率,然后向服务器请求指定类型的 API。

@simon300000
Copy link
Member

wua 好复杂啊

@simon300000
Copy link
Member

b站要杀我

@simon300000
Copy link
Member

现在在服务器有一个自动drop掉一部分请求的功能,我可能需要暂时可以把这个加强一点
https://github.com/dd-center/Cluster-center/blob/7a25d4bf5670fe675903c6027581baa5d5d2feed/src/metadata.ts#L20-#L44

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