Skip to content

Commit

Permalink
New Options innodb_flush_log_at_trx_commit log_bin sync_binlog
Browse files Browse the repository at this point in the history
  • Loading branch information
erkules committed Apr 23, 2014
1 parent af74909 commit e60bfd4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
5 changes: 4 additions & 1 deletion Changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
10240104 erkan
20140423 erkan
- New Options innodb_flush_log_at_trx_commit log_bin sync_binlog
- Changed Defaults. We are going to use the actual Binaries.
20140104 erkan
- As we consolidate configuration files we removded old configfiles
- User/user_configuration_vars.yaml added. User can configure the cluster via
configfile also
Expand Down
20 changes: 15 additions & 5 deletions Playbooks/templates/my.cnf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ user = mysql
binlog_format = ROW
default-storage-engine = innodb

innodb_autoinc_lock_mode = 2
innodb_flush_log_at_trx_commit= 0
innodb_buffer_pool_size = {{ innodb_buffer_pool_size| default('2048M') }}
innodb_log_buffer_size = {{ innodb_log_buffer_size| default('128M') }}
innodb_file_per_table = 1
innodb_autoinc_lock_mode = 2
innodb_flush_log_at_trx_commit = {{ innodb_flush_log_at_trx_commit | default(2) }}
#innodb_buffer_pool_size = {{ innodb_buffer_pool_size| default('2048M') }}
#innodb_log_buffer_size = {{ innodb_log_buffer_size| default('128M') }}

datadir = {{ datadir | default('/var/lib/mysql') }}

query_cache_size = 0
query_cache_type = 0
Expand All @@ -17,6 +18,15 @@ init_file = /etc/mysql/init
skip_name_resolve
max_connections = 2000

{% if log_bin is defined %}
log_bin = {{ datadir }}/mysql_bin
{% endif %}

{% if sync_binlog is defined %}
sync_binlog = 1
{% endif %}


# Galera
wsrep_provider = "{{ galerapath }}"
wsrep_cluster_name = deadcandance
Expand Down

0 comments on commit e60bfd4

Please sign in to comment.