Skip to content

Commit

Permalink
Merge pull request #180 from yusufnar/TEY-197-disable-binary-logging-…
Browse files Browse the repository at this point in the history
…on-solo

[TEY-197] Disable binary logging on solo environments
  • Loading branch information
mushyy authored Jun 15, 2020
2 parents 53f7cfb + 40a2436 commit 632ad82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions cookbooks/mysql/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
:innodb_buff => innodb_buff,
:replication_master => node['dna']['instance_role'] == 'db_master',
:replication_slave => node['dna']['instance_role'] == 'db_slave',
:solo_environment => node['dna']['instance_role'] == 'solo',
:server_id => server_id,
}
})
Expand Down
3 changes: 3 additions & 0 deletions cookbooks/mysql/templates/default/my.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ log-slave-updates = 1
binlog-format = MIXED
<% end %>
sync_binlog = 0
<% if @solo_environment %>
skip-log-bin
<% end %>

# END master/slave configuration

Expand Down

0 comments on commit 632ad82

Please sign in to comment.