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

请教几个使用的问题 #1

Open
qqizai opened this issue Jun 30, 2022 · 3 comments
Open

请教几个使用的问题 #1

qqizai opened this issue Jun 30, 2022 · 3 comments

Comments

@qqizai
Copy link

qqizai commented Jun 30, 2022

No description provided.

@qqizai qqizai closed this as not planned Won't fix, can't repro, duplicate, stale Jun 30, 2022
@qqizai qqizai reopened this Jun 30, 2022
@qqizai
Copy link
Author

qqizai commented Jun 30, 2022

1、如果高峰期,超过指定并发数,是返回什么?我看了一下统一处理返回的是503/500,这样暂时还不清楚返回的 "return" 值?
这两种是否,哪一个是算属于,限定的并发数返回的呢?

2、task_level 这个字段是 任务等级?但是我好像没发现到有什么具体作用。

烦请大佬讲解一下,感谢感谢。

@qqizai
Copy link
Author

qqizai commented Jun 30, 2022

3、为什么我设置了1024个最大并发数,然后还是会导致超出这个数量?(因为,Linux默认打开的文件数量是1024,所以并发数过高,会触发这个错误)

所用的测试就是官网的demo,只改了并发数量为1024;我使用feapder爬虫框架来测,8000并发,总请求数量是16000个;你可以再测下哈

@GoodManWEN
Copy link
Owner

GoodManWEN commented Jul 26, 2022

有两层限制,第一层是服务节点本身的拦截,第二层是Redis配置的允许并发数。第二层是严格的,第一层是粗略的,但第一层成本非常低所以可以拦截明显不符的。level忘了当初写的时候是怎么设计的了,印象里可能是共用token的时候,比如两个接口加在一起限制并发多少多少,可以控制某些任务高优先级?

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