[Bug] maxkb When the conversation concurrent user is high (200 concurrent users), the dialogue page obtains the dialogue history interface request for a long time, resulting in the right dialogue page answering process, because the left dialogue history refresh causes the response in the right answer to be flashed.
Closed this issue · 6 comments
Contact Information
shenkaibo
MaxKB Version
v1/v2
Problem Description
现象:
maxkb 对话并发用户高时(200并发用户),对话页面获取对话历史接口请求时间长,导致右侧对话页面回答过程中 ,因为左侧对话历史刷新导致右侧回答中响应被刷没。
已修改参数:
- MAXKB_DB_MAX_OVERFLOW=500
- pgsql 最大连接池 2000
- pgsql shm=4g shared_buffers=3g
其他信息:
- 当并发达到200时,对话页面对话历史接口请求响应慢,大概9-10s,但是访问后台知识库、应用管理接口响应很快。
- 当并发达到200时,手动在数据中执行查询对话历史的sql,速度很快
Steps to Reproduce
方式1:可用jmeter 压测工具 设置200并发,迭代1次,压测对话应用。偶像上述现象。
方式2:对话页面 新建两个会话,一个会话保持 回答中,此时删除另一个会话,右侧回答中的信息会被刷新掉。
The expected correct result
建议对话页面 左侧刷新对话历史的时候,不要刷新右侧问答页面,防止 回答中的文字 因为左侧对话刷新给刷没。
Related log output
Additional Information
No response
服务器带宽是不是满了,有监控么
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Is the server bandwidth full? Is there any monitoring?
服务器带宽是不是满了,有监控么
查看监控,带宽没跑满。总共200M带宽,大概最高占用 80M
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Is the server bandwidth full? Is there any monitoring?
Check the monitoring, the bandwidth is not full. A total of 200M bandwidth, with a maximum occupancy of 80M
感谢反馈,下个版本优化。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Thanks for the feedback, the next version is optimized.