多agent,服务之间发送消息延迟过高 #1910
Replies: 5 comments 13 replies
-
你开了多少个agent ?为什么要去call agentmgr去那agent 直接username hash到固定的agent即可,效率会更高,目前你的瓶颈在skynet.call(agentmgr, "lua", "query", usrname) |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
经过了2个单点服务才到agent,肯定延迟高 |
Beta Was this translation helpful? Give feedback.
-
建议使用jwt 签发token,避免每次走login和agent查询 |
Beta Was this translation helpful? Give feedback.
-
经过排查,是其他地方导致了cpu飚升。问题已解决。 |
Beta Was this translation helpful? Give feedback.
-
这是webagent里的代码,send数据到agent服务,随着消息变多,agent那边收到消息的延迟很大。每秒100个消息是正常,每秒200个消息,cpu直接接近100%
Beta Was this translation helpful? Give feedback.
All reactions