HNHacker News
TopNewBestAskShowJobs

drkp

84 karma · joined January 14, 2016

Research Assistant Professor @ UW CSE - distributed systems & operating systems

https://drkp.net/

[ my public key: https://keybase.io/drkp; my proof: https://keybase.io/drkp/sigs/4hEB3x7opIOJe5g_egj89MqZYDIyPwh0sAS3jHGLBlk ]

submissionscomments
drkp··on The part of Postgres we hate the most: Multi-version concurrency control
_And_ it wasn't even originally designed to be used for concurrency control at all...
drkp··on What Write Skew Looks Like
I have some experience with that specific question, although it was a few years ago...

Do you remember what conflict was causing things to fall over?

In general, the usual important parameters to tweak are:

- max_pred_locks_per_transaction may need to be increased; otherwise locks will switch to coarse granularity to save room in the lock table

- for tables that fit in memory, the planner may choose a sequential scan even when an index scan is available, which can be faster but creates more conflicts on a serializable workload. Increasing cpu_tuple_cost should avoid that (or even just enable_seqscan=off to force indexes whenever available)

drkp··on Haret: A strongly consistent distributed coordination system implemented in Rust
Yes, Viewstamped Replication is underappreciated! It is actually older than Paxos, although the original paper is pretty incomprehensible too.

The more recent "Viewstamped Replication Revisited" paper is probably my favorite introduction to consensus protocols and their use in a real system: http://pmg.csail.mit.edu/papers/vr-revisited.pdf

drkp··on Bedrock – Rock-solid distributed data
Thanks! Glad you have been enjoying them.
drkp··on Bedrock – Rock-solid distributed data
You're correct that SI with a single writer will always be serializable.

(I was one of the authors of SSI in Postgres)