Better HN
topnewbestaskshowjobs
Log inSign up

arulajmani

8 karma · joined Jan 14, 2021 (5y ago) · 5 submissions

Submissions

comment 2y ago · link · parent

Prior to building read committed, CRDB only supported intents as a form of replicated locks. Intents are provisional values written by active transactions which are resolved once the writing transaction commits or aborts.

As part of building read committed, we introduced other forms of replicated locks. In particular, replicated shared and exclusive locks (SELECT FOR UPDATE statements acquire exclusive locks). Locks acquired by read committed transactions are always replicated.

The unit of replication in CockroachDB is called a range, and every range is its own raft group. Every range has a reserved portion of its keyspace where locks can be stored. This is known as the replicated lock table. Incorporating exclusive/shared locks in the replicated lock table involved adding a notion of lock strength to all locks that were stored (as previously they were all assumed to be intents).

comment 5y ago · link · parent

One of the engineers who worked on this project and authored the post here. I, and others who worked on this thing, will be in the comments to answer any questions you've got!

3.

How to Deploy a Multi-Region Application: Under the Hood(cockroachlabs.com ↗)

4 points · by arulajmani · 5y ago · 1 comment

comment 5y ago · link · parent

One of the engineers who helped benchmark and compile the Cloud Report. You're right in noting that the statements aren't mutually exclusive. Our overall takeaway was informed by each Cloud's performance on the individual benchmarks as shown on page 4 of the report. The results were quite close though, as each of the Clouds had specific benchmarks they did excellent in.

comment 5y ago · link · parent

One of the engineers who helped run benchmarks and compile the report here. It’s worth noting that for the majority of the machines we benchmarked on AWS, their tested bandwidth met the published AWS expectations. You may have noticed that some of the “network optimized” machines fell short of the published expectations though, and there’s an explanation in the report about how we tried to validate our findings.

As you point out, there are a variety of variables that could be tuned to eek out better performance here, and they could bring the two clouds closer. Our claim, of course, only applies to the benchmark configuration we tested with. That being said, with the size of machine we were restricting our testing to (16 vCPUS), no AWS machine claimed to offer more than 25G of throughput.