Skip to content

Commit

Permalink
Add read_only tunable useful for replication slave servers
Browse files Browse the repository at this point in the history
  • Loading branch information
sciurus committed Dec 1, 2012
1 parent dd6de50 commit da21009
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions attributes/server.rb
Expand Up @@ -148,6 +148,7 @@
default['mysql']['tunable']['log_slave_updates'] = false
default['mysql']['tunable']['sync_binlog'] = 0
default['mysql']['tunable']['skip_slave_start'] = false
default['mysql']['tunable']['read_only'] = false

default['mysql']['tunable']['log_error'] = nil
default['mysql']['tunable']['log_queries_not_using_index'] = true
Expand Down
3 changes: 3 additions & 0 deletions templates/default/my.cnf.erb
Expand Up @@ -131,6 +131,9 @@ sync_binlog = <%= node['mysql']['tunable']['sync_binlog'] %>
<%- if node['mysql']['tunable']['skip_slave_start'] %>
skip_slave_start
<%- end %>
<%- if node['mysql']['tunable']['read_only'] %>
read_only = 1
<%- end %>

#
# * InnoDB
Expand Down

0 comments on commit da21009

Please sign in to comment.