"Chuck" <skilover_nospam@bluebottle.com> wrote in message
news:L7TIj.6169$A87.1381@trnddc06...
> Richard wrote:
>> "Chuck" <skilover_nospam@bluebottle.com> wrote in message
>> news:ZoRIj.6160$A87.2057@trnddc06...
>>> Chuck wrote:
>>>> I have master/slave replication working but I was wondering why I
>>>> am getting so many very small relay logs on the slave. It seems
>>>> to be ignoring max_relay_log_size and max_binlog_size.
>>>>
>>>> I first noticed this when my replication broke for about a week
>>>> and I needed to resync the slave. Instead of a few 1 gig log
>>>> files like were created on the master, the slave had over 14000
>>>> relay logs ranging in size from 200-2000 bytes.
>>>>
>>>> From the slave:
>>>>
>>>> +------------------------+----------------------+
>>>> | Variable_name | Value |
>>>> +------------------------+----------------------+
>>>> | max_binlog_size | 1073741824 |
>>>> | max_relay_log_size | 0 |
>>>> | version | 5.0.41-log |
>>>> +------------------------+----------------------+
>>>>
>>>> AFAIK there are no flush logs executing on the slave. I do get
>>>> one on the master every night as part of the backup script.
>>>>
>>>> TIA
>>> No takers?
>>
>> Is the slave log not starting a new file everytime it is started /
>> restarted?
>> Something in the docs somewhere if I remember well.
>>
>> Try a search for "binlog" "reset slave" on the mysql site, or
>> variations
>>
>> Richard.
>
> Nothing is restarting the slave threads, except for the one time I
> did it when I noticed that replication was broken and I had to fix
> it.
>
> The docs clearly lay out three things that cause a new relay log to
> be started ...
>
> . Each time the I/O thread starts.
> . When the logs are flushed;
> . When the size of the current relay log file becomes too large. The
> meaning of “too large” is determined as follows: If the value of
> max_relay_log_size is greater than 0, that is the maximum relay log
> file size. If the value of max_relay_log_size is 0, max_binlog_size
> determines the maximum relay log file size.
>
> I'm not encountering any of these thoughs
I dont know answers.... sorry, but
Are you sure? And how do you know?
Is the binlog the same thing as the relay log?
I have a replication setup since last month, and still find it a sort
of dark corner. Lots of repeated and copied info everywhere on the
web, but hardly any details...
Richard.