Skip to content

Commit

Permalink
Merge pull request #19 from hostinger/feat/add_wsrep_retry_autocommit…
Browse files Browse the repository at this point in the history
…_variable

Add wsrep_retry_autocommit variable to cluster template
  • Loading branch information
LukoJy3D authored Aug 11, 2023
2 parents 6183a36 + f653ac6 commit 87ee716
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Berksfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ GRAPH
mingw (2.1.8)
seven_zip (>= 0.0.0)
openssl (8.5.5)
percona (5.11.19)
percona (5.11.20)
apt (>= 2.7.0)
build-essential (>= 0.0.0)
chef-vault (>= 0.0.0)
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ default["percona"]["server"]["binlog_ignore_db"] = []
default["percona"]["server"]["expire_logs_days"] = 10
default["percona"]["server"]["max_binlog_size"] = "100M"
default["percona"]["server"]["binlog_cache_size"] = "1M"
default["percona"]["server"]["binlog_space_limit"] = 0
default["percona"]["server"]["binlog_space_limit"] = 0
default["percona"]["server"]["binlog_format"] = "MIXED"
default["percona"]["server"]["log_bin"] = "master-bin"
default["percona"]["server"]["relay_log"] = "slave-relay-bin"
Expand Down Expand Up @@ -413,6 +413,7 @@ default["percona"]["cluster"]["wsrep_provider"] = value_for_platform_family(
"debian" => "/usr/lib/libgalera_smm.so",
"rhel" => "/usr/lib64/libgalera_smm.so"
)
default["percona"]["cluster"]["wsrep_retry_autocommit"] = 1
default["percona"]["cluster"]["wsrep_provider_options"] = ""
default["percona"]["cluster"]["wsrep_cluster_address"] = ""
default["percona"]["cluster"]["wsrep_slave_threads"] = 2
Expand Down
1 change: 1 addition & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@
"rhel" => "/usr/lib64/libgalera_smm.so"
)
default["percona"]["cluster"]["wsrep_provider_options"] = ""
default['percona']['cluster']['wsrep_retry_autocommit'] = 1
default["percona"]["cluster"]["wsrep_cluster_address"] = ""
default["percona"]["cluster"]["wsrep_slave_threads"] = 2
default["percona"]["cluster"]["wsrep_cluster_name"] = ""
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
license "MIT"
description "Installs Percona MySQL client and server"
long_description "Please refer to README.md"
version "5.11.19"
version "5.11.20"

recipe "percona", "Includes the client recipe to configure a client"
recipe "percona::package_repo", "Sets up the package repository and installs dependent packages"
Expand Down
1 change: 1 addition & 0 deletions templates/default/my.cnf.cluster.erb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ wait_timeout = <%= node["percona"]["server"]["wait_timeout"] %>
binlog_format = <%= node["percona"]["cluster"]["binlog_format"] %>
wsrep_provider = <%= node["percona"]["cluster"]["wsrep_provider"] %>
wsrep_provider_options = <%= node["percona"]["cluster"]["wsrep_provider_options"] %>
wsrep_retry_autocommit = <%= node["percona"]["cluster"]["wsrep_retry_autocommit"] %>
wsrep_cluster_address = <%= node["percona"]["cluster"]["wsrep_cluster_address"] %>
wsrep_slave_threads = <%= node["percona"]["cluster"]["wsrep_slave_threads"] %>
wsrep_cluster_name = <%= node["percona"]["cluster"]["wsrep_cluster_name"] %>
Expand Down

0 comments on commit 87ee716

Please sign in to comment.