I have 2 linodes in Dallas. One's a web server, the other a mysql server, and they communicate over the private network. Today I noticed my site wasn't responding. For some reason, it's taking around 30 seconds to set up a mysql connection to the private address of the mysql server:
Code:
$ time mysql -h 192.168.130.XX -u xxxx -p
Enter password:
... (ctrl-D)
mysql> Bye
real 0m30.632s
user 0m0.004s
sys 0m0.001s
$
Substituting the server's public IP address, it connects instantly. The same thing happens with ssh, so I'm pretty sure it's not a mysql issue. In both cases, once the connection is set up, it's fast as usual.
What the hell? Any ideas? I've tried to poke around and debug this, but I'm not sure where to start. My /etc/network/interfaces on both nodes seem fine, and rebooting both of them didn't help.
Edit: plain HTTP connects instantly over the private IP, though.