mysqli_real_connect($connection, $url['host'], $url['user'], $url['pass'], substr($url['path'], 1), $url['port'], NULL, MYSQLI_CLIENT_FOUND_ROWS);
What's the reason that it can take much time to make a connection?
Now about 3 out of 8 connections will hang for 5 seconds or even more.