Golang聊天服务端
测试时间: 2022-10-23
测试主机: i7 8700K/16G
系统: macOS 10.15.7
群人数: 10,000
在线人数: 1,000
发送消息量: 500
消息转发量: 500,000
总耗时: 4.5秒左右
测试时间: 2022-10-15
测试主机: i7 8700K/16G
系统: macOS 10.15.7
群人数: 10,000
在线人数: 10,000
发送消息量: 1
消息转发量: 10,000
总耗时: 120毫秒左右
测试时间: 2022-10-23
测试主机: i7 8700K/16G
系统: macOS 10.15.7
群人数: 10,000
在线人数: 10,000
发送消息量: 1
消息转发量: 10,000
总耗时: 95毫秒左右
测试时间: 2022-10-23
测试主机: i7 8700K/16G
系统: macOS 10.15.7
群人数: 10,000
在线人数: 3,000
发送消息量: 500
消息转发量: 1,500,000
总耗时: 5.5秒左右
Step 1
创建日志文件目录
/var/log/lark
Step 2
创建docker容器数据卷目录
/Volumes/data/lark
Step 3
修改host文件
lark/configs/docker/host.txt
Step 4
执行build脚本
./lark/scripts/build.sh
Step 5
执行容器启动脚本
./lark/build/run/docker-up.sh
Step 6
http://127.0.0.1:9001/identity/account/new-account
Minio Create Service Account
Access Key: SEv0QKlwqQ36M1eV
Secret Key: sZVZR1RD8Pcy73NANvk6vbMmoDsGSSOk
Create Buckets And Change Access Policy
["documents","photos","videos"]
Access Policy: Public
Step 7
执行项目启动脚本
./lark/build/run/run_all.sh