File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -357,6 +357,11 @@ go run main.go -test -u 10 -su 3 -lg 2 -cg 4 -cgm 5 -sm 6 -gm 7 -msgitv 1000 -re
357357
358358### ** 注意事项**
359359
360+ 运行测试程序,需要注意以下事项避免影响结果:
361+
362+ 1 . 测试程序和服务端应使用内网连接,避免网络影响。
363+ 2 . 测试程序A应该部署在内存文件系统上(此测试中为/dev/shm),避免磁盘读写开销。
364+
360365#### ** 限制修改**
361366
362367- 在模拟操作过程中,多个 SDK 实例同时运行,可能会对服务器造成较大压力,进而引发超时或其他问题。为确保系统在进行大规模数据量测试时能够平稳运行,需对以下几个关键指标进行调整:
@@ -366,10 +371,11 @@ go run main.go -test -u 10 -su 3 -lg 2 -cg 4 -cgm 5 -sm 6 -gm 7 -msgitv 1000 -re
366371 - 原因:模拟大量sdk发起请求时,会对服务器造成较大压力,超时大多是因为sdk压力过大而非服务端,因此不会影响测试服务端性能的结果。
367372
368373 2 . ** sdk异步管道超时时间**
374+
369375 - 位置:` openim-sdk-core/pkg/common/trigger_channel.go `
370376 - 调整内容:找到` const timeout ` ,将管道超时时间适当调大。
371377 - 原因:模拟大量sdk接受服务端数据时,会对服务器造成较大压力,超时大多是因为sdk压力过大而非服务端,因此不会影响测试服务端性能的结果。
372-
378+
373379 3 . ** 服务端通知超时时间**
374380 - 位置:` open-im-server/pkg/notification/msg.go `
375381 - 调整内容:搜索` WithTimeout ` ,将` context ` 超时的时间适当调大。
You can’t perform that action at this time.
0 commit comments