Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

About MySQL sync_binlog


Published on

Published in: Technology
  • You can hardly find a student who enjoys writing a college papers. Among all the other tasks they get assigned in college, writing essays is one of the most difficult assignments. Fortunately for students, there are many offers nowadays which help to make this process easier. The best service which can help you is ⇒ ⇐
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

About MySQL sync_binlog

  1. 1. sync_binlog & max_binlog_size Dehua Yang 2012-10-09
  2. 2. sync_binlog• Where is the difference between 0,1?• sync_binlog=0 – MySQL just write the binlog into OS buffer – not use fdatasync(), – in high concurrent pressure, this value would impact performance when OS flush buffer into disk• sync_binlog=1 • Every sync_binlog writes to the binary log, MySQL will call the fdatasync() to synchronizes its binary log to disk (autocommit =true) • A value of 1 is the safest choice , but if MySQL cash, we still lose one binlog event. • If have a raid battery-backed cache, which makes synchronization very fast
  3. 3. max_binlog_size• Default value is 100M• Sometimes we would see some binlog file excee the value of max_binlog_size• Because... – Your binlog format is RBR – You have big transcation , and MySQL woundn’t split one transcation into serveral binary logs.