restrict mysql replication ?
restrict mysql replication ?
am 15.12.2010 09:45:56 von Per Jessen
I have a need to have a number of small tables (perhaps up to 10000 row=
s
each) replicated to a number of mysql slaves. Frequency of change is
very low, and they need not be replicated within seconds, an hour is
fine. The master server has a lot more and bigger tables, but each
slave will only have a small subset of those. I've held off setting up=
proper replication, thinking it was too much effort, but I've now just
yesterday set up one such replication.=20
I've got the slave only replicating two tiny, mostly static tables, so =
I
had kind of expected not to see a lot of network traffic. Instead I
see lots and lots of replication traffic? I'm guessing the master
notifies the slave(s) of all changes, not just changes to the
replicated tables?=20
Is there a way of limiting that? Alternatively, is there a way of
doing "replication-on-demand", perhaps triggered by cron? =20
/Per Jessen, Zürich
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=3Dgcdmg-mysql-2@m.gmane.o rg
Re: restrict mysql replication ?
am 15.12.2010 10:08:50 von Per Jessen
Per Jessen wrote:
> Is there a way of limiting that? Alternatively, is there a way of
> doing "replication-on-demand", perhaps triggered by cron?
Ignore this, problem solved. I'll let the slaves query the master
regularly and just reload the entire table.=20
/Per Jessen, Zürich
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=3Dgcdmg-mysql-2@m.gmane.o rg
Re: restrict mysql replication ?
am 15.12.2010 10:16:49 von Johan De Meersman
--0022152d604da3cf1604976f6589
Content-Type: text/plain; charset=ISO-8859-1
On Wed, Dec 15, 2010 at 10:08 AM, Per Jessen wrote:
> Per Jessen wrote:
>
> > Is there a way of limiting that? Alternatively, is there a way of
> > doing "replication-on-demand", perhaps triggered by cron?
>
> Ignore this, problem solved. I'll let the slaves query the master
> regularly and just reload the entire table.
>
That works. As for what you're seeing, you're probably limiting replication
on the slave instead of limiting binlogging on the master. Can't quite
recall the exact option, something like binlog-do-db I think.
--
Bier met grenadyn
Is als mosterd by den wyn
Sy die't drinkt, is eene kwezel
Hy die't drinkt, is ras een ezel
--0022152d604da3cf1604976f6589--
Re: restrict mysql replication ?
am 15.12.2010 11:35:14 von Per Jessen
Johan De Meersman wrote:
> On Wed, Dec 15, 2010 at 10:08 AM, Per Jessen wrote=
:
>=20
>> Per Jessen wrote:
>>
>> > Is there a way of limiting that? Alternatively, is there a way of=
>> > doing "replication-on-demand", perhaps triggered by cron?
>>
>> Ignore this, problem solved. I'll let the slaves query the master
>> regularly and just reload the entire table.
>>
>=20
> That works. As for what you're seeing, you're probably limiting
> replication on the slave instead of limiting binlogging on the master=
..
Yes, that sounds like what I'm doing.=20
> Can't quite recall the exact option, something like binlog-do-db I
> think.
Thanks for the hint, might still come in useful.
/Per Jessen, Zürich
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=3Dgcdmg-mysql-2@m.gmane.o rg