Skip to content

Commit

Permalink
Merge pull request #26 from hostinger/fix/cluster
Browse files Browse the repository at this point in the history
Fix cluster settings
  • Loading branch information
PovilasV1 authored Nov 6, 2023
2 parents aa26c1a + dbdc7cc commit 1c079f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
description 'Installs Percona MySQL client and server'
source_url 'https://github.com/hostinger/chef-percona'
issues_url 'https://github.com/hostinger/chef-percona/issues'
version '5.11.23'
version '5.11.24'
chef_version '>= 16.0'

depends 'yum'
Expand Down
7 changes: 0 additions & 7 deletions templates/my.cnf.cluster.erb
Original file line number Diff line number Diff line change
Expand Up @@ -387,13 +387,6 @@ binlog-do-db = <%= db_name %>
binlog-ignore-db = <%= db_name %>
<% end -%>

<%- if node["percona"]["version"].to_f >= 5.6 %>
gtid_mode = <%= node["percona"]["server"]["gtid_mode"] %>
<% if node["percona"]["server"]["enforce_gtid_consistency"] %>
enforce_gtid_consistency = <%= node["percona"]["server"]["enforce_gtid_consistency"] %>
<% end %>
<% end %>

<% if node["percona"]["server"]["sync_master_info"] %>
sync_master_info = <%= node["percona"]["server"]["sync_master_info"] %>
<% end %>
Expand Down
2 changes: 2 additions & 0 deletions templates/my.cnf.main.erb
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,8 @@ read_only
skip-slave-start
<% end %>

slave_exec_mode = <%= node["percona"]["server"]["replication"]["slave_exec_mode"] %>

# Number of times the replica SQL thread will retry a transaction in case it
# failed with a deadlock or elapsed lock wait timeout, before giving up and
# stopping.
Expand Down

0 comments on commit 1c079f5

Please sign in to comment.