June 19, 2013

Post: Percona Server 5.5.30-30.2 rerelease fixes non-restart issue

… after the upgrade was completed regardless of its state before updating. This caused some problems for some users, especially if automatic… statements on an existing table could wait on a metadata lock instead of failing or returning immediately if there is a… documentation. Bugs can be reported on the launchpad bug tracker. UPDATE[18-04-2013]: There was a RPM packaging regression introduced…

Post: Is Synchronous Replication right for your app?

… a player makes an achievement, your application updates this table with a statement like this: UPDATE achievements SET count = count + 1 where… might you do that ? Write to one node If your issue is really the deadlock errors and not so much the… the lock waiting that your application will need to do for hotspots. wsrep_retry_autocommit If your hotspots are all updates with…

Post: Innodb Table Locks

… id 12304 lock_mode X When updating the table it also gets “locked“, now with IX lock… this is because update needs to lock the rows… table level locks because innodb will only set intentional level locks for everything by DDL operations. If you’re having locking issues with Innodb chances are it is row level locks or auto increment table level lock (mostly with MySQL…

Comment: INSERT ON DUPLICATE KEY UPDATE and REPLACE INTO

… for that. I was wondering if INSERT … UPDATE might lock for read access (or lock only the index, or something simmilar) while checking… lock for write access when performing the update. This would lead to a deadlock when trying to upgrade two read locks to write locks… I described is really happenning? Might a REPLACE solve the issue? Would it work right where INSERT … UPDATE locks?

Post: Investigating MySQL Replication Latency in Percona XtraDB Cluster

…: sysbench –test=oltp –oltp-test-mode=nontrx –oltp-nontrx-mode=update_key –mysql-user=root –mysql-password=”" –oltp-table-size=1000000… delays but it visibly stalls, as I guess because the UPDATE statement issued to DPE1 is blocked for some time. To check… binlog_format=ROW default_storage_engine=InnoDB innodb_autoinc_lock_mode=2 innodb_locks_unsafe_for_binlog=1 wsrep_sst_auth=root:

Post: Index lock and adaptive search - next two biggest InnoDB problems

…. So I suspect it’s going to be next biggest issues to make InnoDB scaling on high-end system. This is… read / write queries, InnoDB locks index for write operation and thus keeps all selects waiting when update/insert is done. This is… be done there internally: there is B-Tree lock free or only page-level lock algorithms, so operation does not need to…

Comment: Benchmarks of new innodb_flush_neighbor_pages

… I dont know if it will help for Selects and Updates http://mysqlopt.blogspot.com/2012/06/mysql-how-to-scale… on log file sizes and stalls/lockups, even though the lock issue might be solved for this I still think the idea… should be better ways of allowing read and writes without locking ie. a special algorithm. I think something like the Deadline…

Post: Using MyISAM in production

… rows may end up being updated, and you might not know which ones. Concurrency. MyISAM uses table locks and has concurrent inserts… is enough. Lock priorities. By default MySQL treats updates as higher priority operations. You can use SELECT HIGH_PRIORITY or UPDATE LOW_PRIORITY…). You can use multiple of cache tables to avoid concurrency issues. Temporary tables used in batch processing and other means Exported…