缓存池是对于mysql服务端来说的,用于做数据缓存 减少数据查询开销,连接池是对客户端应用程序来说的,减少每次创建销毁连接的开销的。
高并发不单单是改MYSQL参数来实现的。
这个和整个平台的架构,硬件,缓存等等有一定的关系。
一言难尽。
0和2都是每秒从缓冲区写入文件一次。区别是commit操作时,0不做任何操作,为2 的时候,commit时会把缓冲区内容写入文件。文档上是这么写的:If the value of innodb_flush_log_at_trx_commit is 0, the log buffer is written out to the log file once per second and the flush to disk operation is performed on the log file, but nothing is done at a transaction commit.. When the value is 2, the log buffer is written out to the file at each commit, but the flush to disk operation is not performed on it. However, the flushing on the log file takes place once per second also when the value is 2.