List:General Discussion« Previous MessageNext Message »
From:madunix Date:January 22 2010 6:55am
Subject:mysql update
View as plain text  
I have the following update procedure that update mySQL DB over the
internet between source Linux Centos (local machine on my net behind a
DMZ with real IP A.B.C.D) and target Linux fedora (web server every day on a specific time 18:00 through a crontab on
my source linux server

server(source) ---DMZ---ASA---Router-----Internet----HostingCompany---Myweb(target)
[root@source]# mysql -u updatex -p -h test < sample.SQL

[root@source]$ mysql -u updatex -p -h test < sample.SQL
Enter password: *****

[root@source]$ mysql -u updatex -p -h test < sample.SQL
Enter password:*****

I did the above procedure multiple times in different times in the
day. the duration of this procedure takes from 22sec to 10min
see above...., before a while it was running constant with duration of
30sec. I checked with my ISP, hosting company and network nothing been
changed from the structure/configuration.....

[root@source]# lsof -i -P | grep 3306
mysqld     3806   mysql   11u  IPv4  10926       TCP *:3306 (LISTEN)
mysql     15150    user    3u  IPv4 297528       TCP> (ESTABLISHED)

[root@target]# netstat -a |grep mysql
tcp        0      0 *:mysql                     *:*
tcp        0      0 www.myweb.:mysql A.B.C.D:8366 TIME_WAIT
tcp        0     11 www.myweb.:mysql A.B.C.D:8372 ESTABLISHED
also i attached tcp connection between the nodes as above from source
and target,
can any one help why i have this behavior and how can i fix the delay,
thinking doing QoS or clean up and remoteexcution at that time ...

Thanks in advance
mysql updatemadunix22 Jan
  • Re: mysql updateSuresh Kuna22 Jan
  • Re: mysql updateKrishna Chandra Prajapati22 Jan