473,387 Members | 1,295 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

MySql Replication and network speed

We purchased 2 new HP DL385 servers that will be used for MySQL 5 in a
replication environment.

Server 1 (Master) is connected gigabit to our Cisco 3550 core switch

The Cisco 3550 core switch is connected gigabit over fiber to a Cisco 3548
switch in another building.

Server 2 (Slave) is connected to the Cisco 3548 on a 100MB switched port.

My question is whether or not the 100MB connection is going to be good
enough to do replication, or if I have to invest in getting gigabit all the
way to the slave server?

Thanks for any input or experience you can share.

- Chad J. Lemmer
Jan 27 '06 #1
3 1989
"Chad J. Lemmer" <cj******@charter.net> wrote:
My question is whether or not the 100MB connection is going to be good
enough to do replication, or if I have to invest in getting gigabit all the
way to the slave server?


It depends on how much you write on the Master machine. To be more
consise: how many and how big data modifying SQL statements you have.
As a very rough estimation MySQL replication sends all data modifying
*statements* from the master to each slave. No row data is sent (but
this will change with row based replication, coming in 5.1). So if
you delete 100GB rows on the master with TRUNCATE TABLE, only a few
bytes are sent to the slave(s). However UPDATE and INSERT are more
expensive in this respect.

Typically MySQL replication is cpu bound rather than I/O bound, because
all statements are serialized on the slave.
XL
Jan 27 '06 #2
>We purchased 2 new HP DL385 servers that will be used for MySQL 5 in a
replication environment.

Server 1 (Master) is connected gigabit to our Cisco 3550 core switch

The Cisco 3550 core switch is connected gigabit over fiber to a Cisco 3548
switch in another building.

Server 2 (Slave) is connected to the Cisco 3548 on a 100MB switched port.

My question is whether or not the 100MB connection is going to be good
enough to do replication, or if I have to invest in getting gigabit all the
way to the slave server?


So how much traffic in queries will the servers have? I can envision
a setup where replication by slow dialup modem is more than enough
(say, for the IP list of blocked mail servers). How up to date
must the slave be? There's a difference between my address book
(7 days for updates to take is not a big deal. I don't know if
anyone has implemented replication by postal service or carrier
pigeons, but it probably wouldn't be too slow.) and stock market
quotes (10 minutes delay may be a VERY big deal).

Replication tends to be more CPU-intensive than network-intensive.
If you update 10,000 rows, it doesn't send the 10,000 rows, it sends
the query that updated 10,000 rows (which is much shorter, but the
slave also has to go to the effort to figure out which 10,000 rows
need changing and how).

Gordon L. Burditt
Jan 27 '06 #3
Our current database (in Visual FoxPro) contains less than 10GB of data.
We're just moving into MySQL as we re-design and re-write our current
manufacturing (and accounting) system. We have about 150 users, so in
comparison to what MySQL is capable of, I get the impression we're just
touching the tip of the iceberg, at least for now until we get everything
re-written and implemented.

Thanks for all the info.

- Chad J. Lemmer

"Gordon Burditt" <go***********@burditt.org> wrote in message
news:11*************@corp.supernews.com...
We purchased 2 new HP DL385 servers that will be used for MySQL 5 in a
replication environment.

Server 1 (Master) is connected gigabit to our Cisco 3550 core switch

The Cisco 3550 core switch is connected gigabit over fiber to a Cisco 3548
switch in another building.

Server 2 (Slave) is connected to the Cisco 3548 on a 100MB switched port.

My question is whether or not the 100MB connection is going to be good
enough to do replication, or if I have to invest in getting gigabit all
the
way to the slave server?


So how much traffic in queries will the servers have? I can envision
a setup where replication by slow dialup modem is more than enough
(say, for the IP list of blocked mail servers). How up to date
must the slave be? There's a difference between my address book
(7 days for updates to take is not a big deal. I don't know if
anyone has implemented replication by postal service or carrier
pigeons, but it probably wouldn't be too slow.) and stock market
quotes (10 minutes delay may be a VERY big deal).

Replication tends to be more CPU-intensive than network-intensive.
If you update 10,000 rows, it doesn't send the 10,000 rows, it sends
the query that updated 10,000 rows (which is much shorter, but the
slave also has to go to the effort to figure out which 10,000 rows
need changing and how).

Gordon L. Burditt

Jan 29 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: I.P. | last post by:
Hi, it's my story. I have two 4.0.14 mysql server on one machine with win XP Professional polish version. First acts as master: on port 3300 Second acts as slave: on port 3301 below my...
0
by: I.P. | last post by:
No one has replied to my post. ----- Original Message ----- From: "I.P." <jancio_wodnik@wp.pl> To: <mysql@lists.mysql.com> Sent: Monday, August 18, 2003 1:01 PM Subject: mysql 4.0.14 +...
10
by: Fred the man | last post by:
Hi, Some of our customers have remote offices. I was wondering if it'd be safe to have a DBMS running at their central office, and have our client application running on hosts in the branches...
2
by: AMD | last post by:
Hi, I would like to have MySQL use a mapped network drive. I'd like to do this in case there is a failure of the mysql machine, I can just replace it with a new machine pointing to the same...
39
by: Mairhtin O'Feannag | last post by:
Hello, I have a client (customer) who asked the question : "Why would I buy and use UDB, when MySql is free?" I had to say I was stunned. I have no experience with MySql, so I was left sort...
2
by: Beda Christoph Hammerschmidt | last post by:
MySQL, Access, ODBC, Replication Hello, i have a central mysql database that is accesed by multiple clients running MS Access with ODBC. This works fine if Access has a permanent connection...
67
by: Bob Powell | last post by:
To whom it may concern: I find the recent articles in various trade publications a little disturbing due to the lack of PostgrSQL mention. I continue to see articles about how IBM may be...
13
by: Jim Hubbard | last post by:
I have a client that desires a new application for use at several stores in different cities. He wants "real time" access to all store data and the ability to continue to run locally even if the...
0
Coldfire
by: Coldfire | last post by:
Since i cannot show the differences in a two-column like table. I am first putting MS SQL Server 2005 and then MySQL 5.x. MS SQL Server 2005 Brief Overview - SQL Server is a full-fledged...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.