We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
totalCountLimit 是 配置文件里设置的最大连接数,totalCount是现在已经注册到nacos的服务实例数量。
这里的判断应该修改为 if (totalCount >= totalCountLimit) ,否则会导致多注册一个实例。
if (totalCount >= totalCountLimit)
The text was updated successfully, but these errors were encountered:
我认为多一个问题应该不大, 而且默认插件使用的是固定秒的统计方式, 如果同一秒有多个连接同时连接, 且超过限流值, 会超过限流值不止1个, 不过下一秒就会被拒绝。
就像插件文档里说的, 如果对精确度有更高要求, 可以使用滑动窗口等统计方式实现。
这里如果期望改成大于等于可以的。欢迎提交pr
Sorry, something went wrong.
No branches or pull requests
totalCountLimit 是 配置文件里设置的最大连接数,totalCount是现在已经注册到nacos的服务实例数量。
这里的判断应该修改为
if (totalCount >= totalCountLimit)
,否则会导致多注册一个实例。The text was updated successfully, but these errors were encountered: