2

Can I use persistent connection when using combination of NGINX + PHP-FPM?

1 Answer 1

2

There would be nothing holding you back by doing so (though I have never done it before), but I would highly advise not to use persistent connections in MySQL. It would just give your server way more overhead than what it needs.

Take a look at the below Stack Overflow link for some more info: https://stackoverflow.com/questions/2252612/mysql-persistent-connections

If you want more performance out of your server, take a look into HTTP caching like Varnish. Varnish will have a much heavier impact on your performance than enabling persistent connections.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .