|
|
|
|
|
by benjiro
337 days ago
|
|
I think you missed the part in the middle: ----------------- So the protocol ends up becoming: Write intent record (async)
Perform operation in memory
Write completion record (async)
Return success to client ----------------- In other words, the client only knows its a success when both wal files have been written. The goal is not to provide faster responses to the client, on the first intent record, but to ensure that the system is not stuck with I/O Waiting on fsync requests. When you write a ton of data to database, you often see that its not the core writes but the I/O > fsync that eat a ton of your resources. Cutting back on that mess, results that you can push more performance out of a write heavy server. |
|