MySQL Forums
Forum List  »  Replication

Sync_replication?
Posted by: tillermanwork
Date: February 20, 2006 06:45PM

I was recently using MySQL replication and was testing an unclean shutdown of the system(e.g pulling out the power cable) when I discovered that MySQL will lose a small amount of data that has not yet been flushed to disk. After browsing the manual, I discovered that the server variable sync_binlog can be set to 1 to cause the binary log to flush after every update to a table.

Now using this, I was able to get the replication setup (and the Master server, too) to correctly keep all records, however with this approach I have taken a rather large hit to performance.

Now, while attempting this on a MySQL 5.0 server, when performing a SHOW VARIABLES command, I noticed the following variables:

sync_replication | 0
sync_replication_slave_id | 0
sync_replication_timeout | 10

I have looked through the manual and even tried google with no success as to what these variables represent. Does anyone have any idea what these do?

Would it be possible to setup MySQL replication in such a way that replication is performed immediately, as each request comes in, yet the binary file is only synched at a rate that yields high performance? This seems possible to achieve (at least in theory), so I am wondering if these variables could possibly be related in some way?

Options: ReplyQuote


Subject
Views
Written By
Posted
Sync_replication?
3023
February 20, 2006 06:45PM
1526
April 05, 2006 11:59AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.