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

服务端重启后可能会造成瞬时单节点高网络负载 #13157

Open
zz630 opened this issue Mar 5, 2025 · 2 comments
Open

服务端重启后可能会造成瞬时单节点高网络负载 #13157

zz630 opened this issue Mar 5, 2025 · 2 comments
Labels
kind/question Category issues related to questions or problems

Comments

@zz630
Copy link
Contributor

zz630 commented Mar 5, 2025

Issue Description

Type: bug report or feature request
the same as #8317

Describe what happened (or what feature you want)

想确定#8317的问题在最新的版本有没有解决?
我在#8310没有找到相关代码。在develop分支也没找到。那我提交一个commit修复该问题?
I want to make sure whether the issue #8317 has been resolved in the latest version?
I did not find the relevant code in #8310. I also did not find it in the develop branch. Should I submit a commit to fix the issue?

Describe what you expected to happen

How to reproduce it (as minimally and precisely as possible)

Tell us your environment

Anything else we need to know?

@zz630
Copy link
Contributor Author

zz630 commented Mar 5, 2025

可能我的场景比较少见。搞了一层代理,去订阅所有服务。客户端通过访问代理层接口,来获取服务列表。
nacos集群只要有重启,这个节点的请求就打到下一个节点,并一直维持。
不确定大家为什么没遇到这个问题,难道是客户端数量多,上下线也多,流量后面逐渐均衡了?

Maybe my scenario is rare. I set up a proxy layer to subscribe to all services. The client obtains the service list by accessing the proxy layer interface.
As long as the nacos cluster is restarted, the request of this node will be sent to the next node and maintained.
I'm not sure why everyone has not encountered this problem. Is it because there are many clients and many online and offline connections, and the traffic is gradually balanced later?

@KomachiSion
Copy link
Collaborator

可以自行拓展ServerListProvider 让不同的nacos-client获取到部分nacos-server节点,相当于自行进行分片。

ServerListProvider可以控制nacos-client可连接的server列表, 但nacos-client依旧会在ServerListProvider返回的列表中进行轮训。

@KomachiSion KomachiSion added the kind/question Category issues related to questions or problems label Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Category issues related to questions or problems
Projects
None yet
Development

No branches or pull requests

2 participants