hibari / gdss-brick

http://hibari.github.com/hibari-doc/
Other
11 stars 2 forks source link

brick_server new client API - sync_wal (per chain) #20

Open tatsuya6502 opened 10 years ago

tatsuya6502 commented 10 years ago

I have not figured out what would be the best API set to do this, but I am thinking to add sync_wal operation which is analogue of fsync in file system. (wal: write ahead log, aka common hlog in Hibari)

As of v0.1.x, Hibari has option to specify whether enabling group commit or not only per table level. sync_wal operation (and maybe sync_wal do flag for write operations too) will make it possible to flush OS's dirty write buffer of the common hlog to a stable storage (HDD or SSD) only when necessary.

They might look like:

tatsuya6502 commented 10 years ago

No target milestone for now.