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

后端 未结 7 1069
無奈伤痛
無奈伤痛 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:24

    One thing to consider is the driver - performance to databases can be very tied into the specific driver you are using. The most popular mysql driver and the one that is the most actively maintained is https://github.com/felixge/node-mysql. Might get different results with that.

    But if you are stuck at 100 connections, sounds like connections are not being properly closed. I might add a console.log statement in the pools destroy event to make sure it really is executing.

提交回复
热议问题