Skip to content

Commit 4642454

Browse files
scribambogdanap
authored andcommitted
Set innodb_flush_log_at_trx_commit=0 to improve MySQL performance (#893)
1 parent 82e3307 commit 4642454

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

cookbooks/travis_build_environment/recipes/mysql.rb

+7
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@
9292
only_if { mysql_version == 5.7 }
9393
end
9494

95+
template "/etc/mysql/conf.d/innodb_flush_log_at_trx_commit.cnf" do
96+
source 'root/innodb_flush_log_at_trx_commit.cnf.erb'
97+
owner 'root'
98+
group 'root'
99+
mode 0o640
100+
end
101+
95102
template "/etc/mysql/conf.d/performance-schema.cnf" do
96103
source 'root/performance-schema.cnf.erb'
97104
owner 'root'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[mysqld]
2+
innodb_flush_log_at_trx_commit=0

0 commit comments

Comments
 (0)