Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 10 个应用程序服务器和 1 个 mysql 数据库。我想为 mysql 做连接池,但是仅仅启用 mysql_pconnect() 是行不通的,因为它会导致一些服务器比其他服务器拥有更多的连接。
这种情况的最佳解决方案是什么..?
为什么要使用持久连接?
它们可能会造成麻烦并且不会显着提高性能(很可能)。
在您的实验室中对生产级硬件进行一些性能测试,您就会看到。