This is a mirror of official site: http://jasper-net.blogspot.com/

Maximal write througput in MySQL

| Sunday, March 7, 2010
I recently was asked what maximal amount transactions per second we can get using MySQL and XtraDB / InnoDB storage engine if we have high-end server. Good questions, though not easy to answer, as it depends on:

- durability setting ( innodb_flush_log_at_trx_commit = 0 or 1 ) ?
- do we use binary logs ( I used ROW based replication for 5.1)
- do we have sync_binlog options.

So why would not take these as variable parameters and run simple benchmark.
I took sysbench update_key scenario ( update indexed field on simple table)
and used Dell PowerEdge R900 with 16 cores, FusionIO as storage for table and RAID 10 with BBU as storage for innodb log files, innodb system table space and binary logs. And I used Percon-XtraDB-5.1.43-9.1 for benchmarks. All used partitions are formatted in XFS and mounted with nobarrier option.

I run update key for various threads and with next parameters

   * 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=1 & binlog & sync_bin : innodb_flush_log_at_trx_commit = 1 and binary logs and sync_binlog=1

Read more: DZone

Posted via email from jasper22's posterous

0 comments: