OpenVZ Forum


Home » General » Support » 20 second delay with private ip address
20 second delay with private ip address [message #38633] Sat, 09 January 2010 17:09 Go to previous message
walter7788 is currently offline  walter7788
Messages: 7
Registered: January 2010
Junior Member
Hi,
I run into a strange problem which I call "20 second delay" problem. I found that this huge delay is caused by the private ip of the 've database'. Well, I got a pc with 3 VEs:

ve reverse proxy (82.xx.xx.xx public ip)
|
ve webserver (192.168.90.20 private ip)
|
ve database (192.168.90.30 private ip)

The 've reverse proxy' talks to the 've webserver' and this talks to the 've database'. Basically everything works BUT a reply from the database takes ca. 20 seconds! When I change the 've database' ip from private ip to a public ip then everything works very fast, no delay. Though, I do not want the database to have a public ip.

I know that the information I provide is pretty vague. Please, could anyone point me into the right direction? Do I have to deal with 'routing' or something?

When I enter the 've webserver' and there do a 'ping 192.168.90.30' to the 've database' I get:

[root@webserver]# ping 192.168.90.30
PING 192.168.90.30 (192.168.90.30) 56(84) bytes of data.
From 82.xx.xx.xx: icmp_seq=1 Redirect Host(New nexthop: 192.168.90.30)
64 bytes from 192.168.90.30: icmp_seq=1 ttl=64 time=0.056 ms
From 82.xx.xx.xx: icmp_seq=2 Redirect Host(New nexthop: 192.168.90.30)
64 bytes from 192.168.90.30: icmp_seq=2 ttl=64 time=0.048 ms
From 82.xx.xx.xx: icmp_seq=3 Redirect Host(New nexthop: 192.168.90.30)
64 bytes from 192.168.90.30: icmp_seq=3 ttl=64 time=0.030 ms
64 bytes from 192.168.90.30: icmp_seq=4 ttl=64 time=0.025 ms
...

List looks similar when I enter 've database' and send ping to 've webserver'. So ping tests 've webserver' <-> 've database' in both directions work very fast (but the "Redirect Host(New nexthop" text makes me wonder).

Thanks for any help and pointers.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: TCP hangs up
Next Topic: Kernel Update
Goto Forum:
  


Current Time: Tue Jul 16 16:35:32 GMT 2024

Total time taken to generate the page: 0.02979 seconds