You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write batching (i.e. the way the cache flushes blocks) used to be tunable, but in the interest of shipping 1.3 release sooner, we removed ability to tune this and hardcoded the default to be as safe as possible. (I'm also not sure how smart we were in our defaults choices as far as performance goes, considering write performance of the current HEAD).
We should make the writeback tunable again (per-table), and see if we can pick better defaults.
Internally I'm making it possible to set the number of "disk acks" and number of "cache acks", where the number of disk acks cannot be greater than the number of cache acks required.
Here's the thing: when we want any number of disk acks from a datacenter, we're going to want one replica to be flushing to disk ASAP with no delay, and that'll be the limiting factor for throughput (assuming CPU and other problems are cleaned up). So, configuring how we write to disk (flush immediately or flush after an interval) that will depend on whether the number of disk acks desired is nonzero. There's no reason for one machine in a datacenter to do slow flushing if the other's going full-speed (and that way we avoid having the cluster trying to figure out which machine has which responsibility).
Anyway this means that the speedup between {2 cache acks, 2 disk acks} and {2 cache acks, 1 disk ack} is going to be relatively small, compared to what you get when you go full {2 cache acks, 0 disk acks}.
This will require collaboration with the web UI people (@neumino and @mglukhovsky) and @Tryneus for the CLI. Please coordinate with @srh on how to do this.
I've been waiting for @srh to finish the work on the server.
I'm done with all my urgent issues (except maybe with #551) so I'll take care of it tomorrow - at least for the web ui part (without the server).
Putting all the pieces together with the server should just be an ajax request to do, so it can be done really fast.
I just pushed an update for the web interface on michel_207_write_batching.
As far as I know, everything that were using ack_expectation (logs, replicas, shards and issues) works now.
Activity
srh commentedon Feb 12, 2013
Internally I'm making it possible to set the number of "disk acks" and number of "cache acks", where the number of disk acks cannot be greater than the number of cache acks required.
Here's the thing: when we want any number of disk acks from a datacenter, we're going to want one replica to be flushing to disk ASAP with no delay, and that'll be the limiting factor for throughput (assuming CPU and other problems are cleaned up). So, configuring how we write to disk (flush immediately or flush after an interval) that will depend on whether the number of disk acks desired is nonzero. There's no reason for one machine in a datacenter to do slow flushing if the other's going full-speed (and that way we avoid having the cluster trying to figure out which machine has which responsibility).
Anyway this means that the speedup between {2 cache acks, 2 disk acks} and {2 cache acks, 1 disk ack} is going to be relatively small, compared to what you get when you go full {2 cache acks, 0 disk acks}.
coffeemug commentedon Feb 25, 2013
Moving to 1.5. Still requires a little work in the buffer cache and on the UI side.
al3xandru commentedon Feb 25, 2013
Could we release this in 1.4 with a command line/config file option and then expose it in the UI?
srh commentedon Feb 25, 2013
No, the buffer cache stuff is the hard part.
al3xandru commentedon Feb 25, 2013
Gotcha :-(
coffeemug commentedon Mar 22, 2013
This will require collaboration with the web UI people (@neumino and @mglukhovsky) and @Tryneus for the CLI. Please coordinate with @srh on how to do this.
neumino commentedon Mar 26, 2013
@srh can you ping me when the options are available in
/ajax?srh commentedon Mar 27, 2013
@Tryneus When are you changing ack_expectations_t, and in what branch?
Tryneus commentedon Mar 28, 2013
@srh, branch is grey_207, review 312 is up for it. What happened to the sam_207 branch?
coffeemug commentedon Mar 29, 2013
@srh -- what's the state of this issue?
@neumino, @mglukhovsky -- what's the state of this on the web UI?
This requires some lead time to connect all the pieces, could you guys all coordinate?
neumino commentedon Mar 29, 2013
I've been waiting for @srh to finish the work on the server.
I'm done with all my urgent issues (except maybe with #551) so I'll take care of it tomorrow - at least for the web ui part (without the server).
Putting all the pieces together with the server should just be an ajax request to do, so it can be done really fast.
srh commentedon Mar 29, 2013
Waiting on grey_207 to be merged into the sam_207 branch, then we can have the ack expectations JSON adapter updated for @neumino.
Tryneus commentedon Mar 29, 2013
Alright, grey_207 has been merged into sam_207 and pushed.
coffeemug commentedon Apr 1, 2013
We should measure insert performance with this option turned on.
9 remaining items
neumino commentedon Apr 11, 2013
I just realized that I forgot to update the logs with the new ack system. I'll do that tonight.
I'll run a last set of tests tonight or tomorrow morning and we should be ready for the code review.
neumino commentedon Apr 11, 2013
I just pushed an update for the web interface on michel_207_write_batching.
As far as I know, everything that were using ack_expectation (logs, replicas, shards and issues) works now.
@srh you can open a code review when you want.
srh commentedon Apr 11, 2013
@neumino: Presumably you should open the code review, if you want me to be the code reviewer.
srh commentedon Apr 11, 2013
The current status of this issue is that everything except for UI changes are in code review 375, in branch sam_207.
The changes in michel_207_write_batching aren't part of that review, and can presumably be reviewed separately starting Thursday morning.
It seems unlikely that there be lingering issues that make the review go past Friday.
neumino commentedon Apr 11, 2013
The review for michel_207_write_batching is opened (review 377).
coffeemug commentedon Apr 11, 2013
@neumino -- could you ping the reviewers via e-mail to make sure we get this in?
neumino commentedon Apr 11, 2013
Done.
neumino commentedon Apr 12, 2013
Review for the web ui has been completed.
Everything is in branch michel_207_write_batching.
It can be merged in next as soon as the review for the server is done.
srh commentedon Apr 12, 2013
Okay. I will merge it when the sam_207 review is done and ready to be merged.
jdoliner commentedon Apr 12, 2013
This is in code review and I didn't budget my time well enough to be able to do it this week. I'll be doing it on monday.
srh commentedon Apr 16, 2013
This is merged into next as of 179cbc2.
srh commentedon Apr 16, 2013
Correction: michel_207_write_batching is merged into next as of ad9991f.
board: tick rethinkdb#207 — idle light audit (guard PASS, NEVER-DONE …
board: tick rethinkdb#207 — event 216 (idle audit, guard PASS, all ga…