Traffic for Master/Slave

This is a discussion on Traffic for Master/Slave within the MySQL Database forums, part of the Database Forums category; Hi! How much traffic does a master/slave configuration produce beyond the inserted/updated data? As to say: How much &...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-11-2005
Marco Dieckhoff
 
Posts: n/a
Default Traffic for Master/Slave

Hi!

How much traffic does a master/slave configuration produce beyond
the inserted/updated data?

As to say: How much "meta"-traffic is to be expected?

It's a very small database with around 20 tables, each around
5 - 10 fields, evenly spread varchars and numerics.

There are about 10 inserts and 50 updates a day.

--
Marco Dieckhoff
icq# 22243433
GPG Key 0x1A6C95BA -- http://www.frankonia-brunonia.de/keys
Reply With Quote
  #2 (permalink)  
Old 10-11-2005
Gordon Burditt
 
Posts: n/a
Default Re: Traffic for Master/Slave

>How much traffic does a master/slave configuration produce beyond
>the inserted/updated data?


Essentially, it seems to be the queries that changed something
sent from the master to the slave. The size of the binary
logs on the master is a good indication of this. If, for example,
you increment a field in *EVERY* row, it sends the query (which is
likely much smaller), not a copy of every row.

>As to say: How much "meta"-traffic is to be expected?


There's the usual TCP overhead. And the slave does have to log in
on the master.

>It's a very small database with around 20 tables, each around
>5 - 10 fields, evenly spread varchars and numerics.
>
>There are about 10 inserts and 50 updates a day.


It sounds like you are dealing with traffic that could easily be
handled over a 300 bps (that is, really ancient and very slow)
modem. At about 100 characters per query, and double it for overhead,
that's about 1.1 bits per second (not bytes, not kilobits, not
megabits, just *bits*). It sounds like this could easily be handled
with carrier pigeons or mailed floppy disks.

Gordon L. Burditt
Reply With Quote
  #3 (permalink)  
Old 10-11-2005
Axel Schwenke
 
Posts: n/a
Default Re: Traffic for Master/Slave

gordonb.7utfk@burditt.org (Gordon Burditt) wrote:
>>How much traffic does a master/slave configuration produce beyond
>>the inserted/updated data?

>
> Essentially, it seems to be the queries that changed something
> sent from the master to the slave. The size of the binary
> logs on the master is a good indication of this.


In fact the content of the binary log is exactly what's going over
the wire (modulo compressed/tunneled connection).

You can look at the contents of the binary log with the mysqlbinlog
utility. In it's output it shows the corresponding binlog position of
each log entry. So you can estimate the overhead yourself.


XL
Reply With Quote
  #4 (permalink)  
Old 10-24-2005
nico rijsmus
 
Posts: n/a
Default Re: Traffic for Master/Slave


"Marco Dieckhoff" <dieck@gmx.de> schreef in bericht
news:n59s13-6p6.ln1@hamlet.frbr.etc.tu-bs.de...
> Hi!
>
> How much traffic does a master/slave configuration produce beyond
> the inserted/updated data?
>
> As to say: How much "meta"-traffic is to be expected?
>
> It's a very small database with around 20 tables, each around
> 5 - 10 fields, evenly spread varchars and numerics.
>
> There are about 10 inserts and 50 updates a day.
>
> --
> Marco Dieckhoff
> icq# 22243433
> GPG Key 0x1A6C95BA -- http://www.frankonia-brunonia.de/keys



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:40 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0