May 21, 2012

Comment: Percona XtraDB Cluster Feature 2: Multi-Master replication

…: success, donor: 0 Apr 1 14:14:27 ubuntu-server-129 mysqld: 120401 14:14:26 [Warning] IP address ‘192.168.210.128′ could not be resolved: Name or service not known Apr 1 14:14:27 ubuntu…:14:27 [Note] WSREP: 1 (ubuntu-server-129): State transfer from 0 (ubuntu-server-128) complete. Apr 1 14:14:27 ubuntu-server…

Comment: Disaster: LVM Performance in Snapshot Mode

0.1 0.1 2.9 0.1 1678.6 | 1341.6 0.1 74.4 1584.6 87.0 | 337.0 0.1 0.1 1.1 0.0 1670.9 | 1334.9 0.1 75.0 1567.0 88.0 | 336.0 0.1 0.1 1.0 0.00.1 0.1 1.5 0.0 [root@udbqa006.sf2p ~]# lvcreate –size 60g –snapshot –name snap /dev/VolGroup20/mysqldata Logical volume “snap” created 626.7 | 502.0 0.1 168.7 2581.4 192.8 | 124.7 0.1 121.5 2471.1 203.7 310.3 | 248.7…

Post: INSERT ON DUPLICATE KEY UPDATE and summary counters.

… often forgotten MySQL feature. It was introduced in MySQL 4.1 but I still constantly see people unaware of it. Myself… timestamp); insert into ipstat values(inet_aton(‘192.168.0.1‘),1,now()) on duplicate key update hits=hits+1; This example actually shows one more… address in the table it will be added with hits=1 if it is already where (note ip is PRIMARY KEY…

Comment: INSERT ON DUPLICATE KEY UPDATE and summary counters.

[...] use INSERT ON DUPLICATE KEY UPDATE (via MySQL Performance Blog): my $ret = $dbh->do(“INSERT INTO ipstat VALUES(inet_aton(‘192.168.0.1‘),1,now()) ON duplicate KEY UPDATE hits=hits+1“); Note: ip should be a primary key in this case [...]

Post: Debugging sleeping connections with MySQL

0 0 192.168.1.70:58555 192.168.1.90:11211 ESTABLISHED 28540/php-cgi tcp 0 0 192.168.1.70:52711 192.168.1.88:8080 ESTABLISHED 28540/php-cgi tcp 0 0 192.168.1.70:45384 192.168.1.82:3306 ESTABLISHED 28540/php-cgi tcp 0 0 192.168.1.70:45399 192.168.1

Comment: Percona Replication Manager, a solution for MySQL high availability with replication using Pacemaker

…:heartbeat:IPaddr \ params ip=”192.168.2.200″ \ operations $id=”failover-ip-operations” \ op monitor start-delay=”0” interval=”2″ \ meta …” \ expected-quorum-votes=”2″ \ stonith-enabled=”false” \ dc-version=”1.1.6-3.el6-a02c0f19a00c1eb2527ad38f146ebc0834814558″ \ no-quorum-policy=”ignore” \ cluster-…

Post: Shard-Query turbo charges Infobright community edition (ICE)

…=5029 column=date_id mapper=hash gearman=127.0.0.1:7000 inlist=* between=* [shard1] host=192.168.56.102 Scale-out In addition to… gearman=127.0.0.1:7000 inlist=* between=* [shard1] host=192.168.56.101 db=ontime [shard2] host=192.168.56.102 db=ontime [shard3] host=192.168.56.103 db=ontime [shard4] host=192.168.56…

Post: Google's user_statistics V2 port and changes

…: 0 LOST_CONNECTIONS: 0 ACCESS_DENIED: 0 EMPTY_QUERIES: 0 1 row in set (0.00 sec) mysql> select * from information_schema.client_STATISTICS\G *************************** 1. row *************************** CLIENT: 192.168.10.174 TOTAL_CONNECTIONS: 10 CONCURRENT_CONNECTIONS: 0 CONNECTED_TIME: 0

Post: How SHOW SLAVE STATUS relates to CHANGE MASTER TO

… Position: 98 Binlog_Do_DB: Binlog_Ignore_DB: 1 row in set (0.00 sec) If you’re backing up from the…. mysql> show slave status\G *************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: 192.168.10.171 Master_User…_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: 0 1 row in set (0.00 sec) As you can see in this output…