# Joining cluster fails because of SST timeout

**URL:** <https://forums.percona.com/t/joining-cluster-fails-because-of-sst-timeout/5777>\
**Category:** Percona XtraDB Cluster 5.x\
**Created:** [July 31, 2017, 12:50am UTC](https://forums.percona.com/t/joining-cluster-fails-because-of-sst-timeout/5777 "2017-07-31T00:50:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dree](https://avatars.discourse-cdn.com/v4/letter/d/f14d63/32.png) [@Dree](https://forums.percona.com/u/Dree)\
**Post date:** [July 31, 2017, 12:50am UTC](https://forums.percona.com/t/joining-cluster-fails-because-of-sst-timeout/5777/1 "2017-07-31T00:50:08Z")

</div>

I’m running into the same problem as this topic:  
[url][https://www.percona.com/forums/questions-discussions/percona-xtradb-cluster/44077-xtradb-cluster-keeps-failing-to-join-cluster[/url]](https://www.percona.com/forums/questions-discussions/percona-xtradb-cluster/44077-xtradb-cluster-keeps-failing-to-join-cluster%5B/url%5D)

After 9000 seconds SST is stopped, so nodes can no longer join my cluster, as it’s too big now to complete in time.  
Is there a fix for this yet?

---

<div class="post-metadata">

**Author:** ![bdelmedico](https://avatars.discourse-cdn.com/v4/letter/b/ec9cab/32.png) [@bdelmedico](https://forums.percona.com/u/bdelmedico)\
**Post date:** [August 2, 2017, 12:27pm UTC](https://forums.percona.com/t/joining-cluster-fails-because-of-sst-timeout/5777/2 "2017-08-02T12:27:57Z")

</div>

Man, change the systemd timeout

---

<div class="post-metadata">

**Author:** ![Dree](https://avatars.discourse-cdn.com/v4/letter/d/f14d63/32.png) [@Dree](https://forums.percona.com/u/Dree)\
**Post date:** [August 3, 2017, 12:30am UTC](https://forums.percona.com/t/joining-cluster-fails-because-of-sst-timeout/5777/3 "2017-08-03T00:30:43Z")

</div>

It’s not the systemd timeout, it’s a timeout in SST.

---

<div class="post-metadata">

**Author:** ![bdelmedico](https://avatars.discourse-cdn.com/v4/letter/b/ec9cab/32.png) [@bdelmedico](https://forums.percona.com/u/bdelmedico)\
**Post date:** [August 3, 2017, 7:32am UTC](https://forums.percona.com/t/joining-cluster-fails-because-of-sst-timeout/5777/4 "2017-08-03T07:32:47Z")

</div>

Kkk I’ll tell you a little about my replication problems .. hope it helps ..

I had a lot of timeout problem ..

1 - systemd timeout in mysql start  
2 - I discovered with the help of Rene that the next bottleneck was my firewall that was generating timeout when it got the processor in 100%, with that it knocked down all the connections.  
3 - I closed a VPC with aws  
4 - timeout settings within my.cnf (wsrep\_provider\_options = " gcs.max\_packet\_size=1048576; evs.send\_window=512; evs.user\_send\_window=512; evs.inactive\_timeout = PT90S; evs.suspect\_timeout = PT30S; evs.install\_timeout = PT60S; evs.keepalive\_period = PT6S; evs.max\_install\_timeouts = 8 ")  
5 - memory confguration problems in joiner server my.cnf  
6 - to run without crashes I upgraded the insternet link from 10Mb to 50Mb.

I think that was all that … kkkk but solved my problems … today my bank of 80G takes 240 minutes to replicate everything, this nor generate any line of warning in the logs.

Besides that I did tuning the operating system.  
net.core.somaxconn = 1024  
net.core.netdev\_max\_backlog = 5000  
net.core.rmem\_max = 16777216  
net.core.wmem\_max = 16777216  
net.ipv4.tcp\_wmem = 4096 12582912 16777216  
net.ipv4.tcp\_rmem = 4096 12582912 16777216  
net.ipv4.tcp\_max\_syn\_backlog = 8096  
net.ipv4.tcp\_slow\_start\_after\_idle = 0  
net.ipv4.tcp\_tw\_reuse = 1  
net.ipv4.ip\_local\_port\_range = 10240 65535

fs.file-max=200000  
kernel.sem=250 32000 100 1024  
kernel.shmmax=4294967295

###### 

net.ipv4.tcp\_retries2 = 2

#net.ipv4.tcp\_syn\_retries = 0  
net.ipv4.tcp\_synack\_retries = 0

net.ipv4.tcp\_keepalive\_time = 30  
net.ipv4.tcp\_keepalive\_intvl = 1  
net.ipv4.tcp\_keepalive\_probes = 2

vm.swappiness = 0  
vm.dirty\_ratio = 80  
vm.dirty\_background\_ratio = 5  
vm.dirty\_expire\_centisecs = 12000

---

<div class="post-metadata">

**Author:** ![Dree](https://avatars.discourse-cdn.com/v4/letter/d/f14d63/32.png) [@Dree](https://forums.percona.com/u/Dree)\
**Post date:** [August 3, 2017, 8:20am UTC](https://forums.percona.com/t/joining-cluster-fails-because-of-sst-timeout/5777/5 "2017-08-03T08:20:23Z")

</div>

I just switched to MariaDB Galera Cluster, which doesn’t seem to have this timeout. It’s working fine on that.

Thanks for your very detailed answer though!
