June 19, 2013

Post: Is Synchronous Replication right for your app?

… one at a time.  So, Callaghan’s law applied to semi-sync is: [On a semi-sync replication master] you can’t commit (at… your hotspots were really bad in standalone Innodb, you might consider relaxing the fsync:  set innodb_flush_log_at_trx_commit to something besides 1 and suddenly…

Post: Heikki Tuuri Innodb answers - Part I

… this with care: you MUST use row-based binlogging and replication, and remember that the execution is not serializable. PZ: Cool… Innodb fuzzy checkpointing is activated HT: InnoDB flushes about 128 dirty pages per flush. That means that under a heavy write load, a new flush… way to get good performance is to set innodb_flush_log_at_trx_commit=2, that is, to flush the log to the disk only once per second…

Post: Jeremy Cole on MySQL Replication

… operations to single stream so group commit can’t work. Furthermore even if you run with innodb_flush_logs_at_trx_commit=2 you still do not solve all problems. You still will practically have only One CPU to handle replication load…

Post: Comparing Percona XtraDB Cluster with Semi-Sync replication Cross-WAN

… Percona XtraDB Cluster server 5.5.24.  Innodb durability was disabled for all tests (innodb_flush_log_at_trx_commit=2).  All other settings were the same… replication (at least in 5.5), I could be missing something. PXC’s true parallel replication shines here, applying up to 16 writesets at

Post: Innodb Performance Optimization Basics

… unless you’re piping large blobs to Innodb in this case increase it a bit. innodb_flush_log_at_trx_commit=2 If you’re not concern… your application and default which is 8 is decent start innodb_flush_method=O_DIRECT Avoid double buffering and reduce swap pressure… row level replication. There are bunch of other options you may want to tune but lets focus only on Innodb ones today…

Post: Reasons for MySQL Replication Lag

… problems with replication lag (and performance in general). Typical problems for replication include setting sync_binlog=1, enabling log_slave_updates, setting innodb_flush_log_at_trx_commit=1… to analyze your replication traffic regularly with mk-query-digest (Percona Server marks Slave Thread in slow query log so it is…

Post: Storing MySQL Binary logs on NFS Volume

… binary log stored on NFS volume. This number is for sync_binlog=0 and innodb_flush_log_at_trx_commit=2 I noted however if I enable replication…. If I would pause replication for prolonged period of time and let few GB of binary logs to accumulate the performance on Master will be high even with replication running, but it will…

Post: Maximal write througput in MySQL

trx_commit=0 : innodb_flush_log_at_trx_commit = 0 and no binary logs trx_commit=1 : innodb_flush_log_at_trx_commit = 1 and no binary logs trx_commit=0 & binlog : innodb_flush_log_at_trx_commit = 0 and binary logs trx_commit=1 & binlog : innodb_flush_log_at_trx_commit = 1 and binary logs trx_commit

Post: MySQL should have dynamic durability settings

Innodb could do is at least to make innodb_flush_log_at_trx_commit a session variable, this is really where it belongs as decision how to commit

Post: Ultimate MySQL variable and status reference list

innodb_flush_log_at_trx_commitblogpercona.commanual innodb_flush_methodblogpercona.commanual innodb_force_recoveryblogpercona.commanual Innodb_have_atomic_builtinsblogpercona.commanual innodb_io_capacityblogpercona.commanual innodb_lock_wait_timeoutblogpercona.commanual innodb