# Mysql timeouts while running large update or mysql import

**URL:** <https://forums.percona.com/t/mysql-timeouts-while-running-large-update-or-mysql-import/4146>\
**Category:** Percona XtraDB Cluster 5.x\
**Created:** [April 9, 2015, 3:16am UTC](https://forums.percona.com/t/mysql-timeouts-while-running-large-update-or-mysql-import/4146 "2015-04-09T03:16:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![binadit](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@binadit](https://forums.percona.com/u/binadit)\
**Post date:** [April 9, 2015, 3:16am UTC](https://forums.percona.com/t/mysql-timeouts-while-running-large-update-or-mysql-import/4146/1 "2015-04-09T03:16:04Z")

</div>

Hello cluster techies,

We are running a 5 node Percona Xtradb cluster, all runnning in the same rack, connected with a 1 gb lan connection. We are using the cluster for some larger websites that do a lot of read and writes. Everytime we need to duplicate or import a new database, our website get timeouts when the do a select. It looks like all databases are “offline” while doing this import.

Is there something wrong with our cluster, is this normal or did we do something wrong?

Server specs:  
12 cores  
64GB memory  
750 GB hardware raid  
Centos Linux  
Percona XtraDB 5.6

Google didn’t help me find anything about it, I really hope you can.

---

<div class="post-metadata">

**Author:** ![jrivera](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/jrivera/32/13_2.png) [@jrivera](https://forums.percona.com/u/jrivera)\
**Post date:** [April 9, 2015, 6:37am UTC](https://forums.percona.com/t/mysql-timeouts-while-running-large-update-or-mysql-import/4146/2 "2015-04-09T06:37:14Z")

</div>

Per the manual - [url][Percona XtraDB Cluster](http://www.percona.com/doc/percona-xtradb-cluster/5.6/limitation.html%5B/url%5D)  
[LIST]  
[\*]The write throughput of the whole cluster is limited by weakest node. If one node becomes slow, whole cluster is slow. If you have requirements for stable high performance, then it should be supported by corresponding hardware.  
[/LIST] So this might explain that when you start the ‘heavy’ SELECT transaction it slows down the rest of the cluster nodes.

One way to check this is to use Jay Janssen’s myq-tools ([url][https://github.com/jayjanssen/myq-tools[/url]](https://github.com/jayjanssen/myq-tools%5B/url%5D)) while running the SELECT query. So you can have a better view of what is happening under the hood.

---

<div class="post-metadata">

**Author:** ![binadit](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@binadit](https://forums.percona.com/u/binadit)\
**Post date:** [April 10, 2015, 4:37am UTC](https://forums.percona.com/t/mysql-timeouts-while-running-large-update-or-mysql-import/4146/3 "2015-04-10T04:37:54Z")

</div>

Thank you jrivera. But is it normal selects are not working while doing an import? io cpu and network usage are low on the servers.

---

<div class="post-metadata">

**Author:** ![przemek](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/przemek/32/3_2.png) [@przemek](https://forums.percona.com/u/przemek)\
**Post date:** [April 12, 2015, 7:32am UTC](https://forums.percona.com/t/mysql-timeouts-while-running-large-update-or-mysql-import/4146/4 "2015-04-12T07:32:27Z")

</div>

Hi,  
Selects could be paused if the cluster went into Flow Control condition. This may happen when some transactions are being applied with too much delay on some (or all) of the slave nodes (nodes replicating from writer node(s)).  
From your description, I assume you are doing some large imports, so probably huge transactions are involved. Note that this is not good for Galera based clusters, and you should probably split large imports into smaller chunks.
