Closed quqiufeng closed 3 years ago
"serverInfo": {
"": {
"write": {
"host": [""],
"port": 3306,
"timeout": 5,
"account": ""
},
"read": {
"host": [""],
"port": 3306,
"timeout": 5,
"account": "",
"startConns": "swoole_cpu_num()*40",
"maxSpareConns": "swoole_cpu_num()*40",
"maxSpareExp": 3600,
"maxConns": "swoole_cpu_num()*40"
}
}
},
"databases": {
"": {
"serverInfo": "",
"startConns": "swoole_cpu_num()*40",
"maxSpareConns": "swoole_cpu_num()*40",
"maxSpareExp": 3600,
"maxConns": "swoole_cpu_num()*40",
"charset": "utf8mb4"
}
}
}
升级到 swoole 4.5.3 后 启动报错 WARNING swTableColumn_add: unkown column type
连接数不建议设置过大
连接数不建议设置过大 升级到 swoole 4.5.3 后 启动报错 WARNING swTableColumn_add: unkown column type
连接数不建议设置过大
一个连接占用多少资源?cpu飙高是什么原因?
Describe Your Environment (描述你的环境)
cpu 一直100%
连接数配置为 swoole_cpu_num()*40
两个cpu 一直100%