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

后端 未结 7 1065
無奈伤痛
無奈伤痛 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条回答
  •  萌比男神i
    2020-12-28 12:25

    100 connections is the default setting for MySQL maximum number of connections.

    So somehow your connections aren't being reused for different requests. Probably you already have one query running on each connection.

    Maybe the nodejs MySQL library you are using will not queue queries on the same MySQL connection but try to open an other connection and fail.

提交回复
热议问题