472,145 Members | 2,015 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 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 1906
"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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Fred the man | last post: by
39 posts views Thread by Mairhtin O'Feannag | last post: by
2 posts views Thread by Beda Christoph Hammerschmidt | last post: by
67 posts views Thread by Bob Powell | last post: by
13 posts views Thread by Jim Hubbard | last post: by

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.