Benchmarking Performance of node.js (cluster) with mysql pools : Lighttpd + PHP?

后端 未结 7 1059
無奈伤痛
無奈伤痛 2020-12-28 12:01

Edit(2): Now using db-mysql with generic-pool module. The error rate has dropped significantly and hovers at 13% but the throughput is still around 100 req/

7条回答
  •  失恋的感觉
    2020-12-28 12:30

    Have you enabled APC with PHP?

    Can you try to enable persistent connections with PHP? e.g.

    $conn = new mysqli('p:localhost', 'root', 'password', 'v3edb2011');
    

提交回复
热议问题