Better HN
topnewbestaskshowjobs
Log inSign up

irfansharif

1,122 karma · joined Jun 14, 2016 (10y ago) · 166 submissions

irfansharif.io/blog
Submissions

comment 3y ago · link · parent

If you're just using the pre-compiled binaries, this Go patch is baked in. If you're building the CockroachDB binary from source, and are just following our usual build steps using Bazel, you'll get this stuff as is. There's no need to compile a custom Go first.

2.

Rubbing control theory on the Go scheduler(cockroachlabs.com ↗)

37 points · by irfansharif · 3y ago · 3 comments

3.

Show HN: SAT Solver/Constraint Programming library in Go(github.com ↗)

5 points · by irfansharif · 5y ago · discuss

comment 5y ago · link · parent

(crdb eng) I'm not sure what "document DB" means here, mind elaborating?

comment 5y ago · link · parent

Yes, the distributed backup/restore functionality was folded into the free version in our last release. See https://www.cockroachlabs.com/blog/distributed-backup-restor....

comment 6y ago · link · parent

(crdb eng here) I'll shamelessly call out that distributed backup/restore, which was previously in our enterprise offering, was moved into the free one. Internally a large part of that decisions was driven by the "suggestions" made here on HN, so keep 'em coming.

comment 6y ago · link · parent

Click around through the rest of their blog if you're interested in what those tradeoffs are. Let's not spread FUD unnecessarily.

comment 6y ago · link · parent

It's not, not at all. We've actually gone as far as replacing RocksDB with https://github.com/cockroachdb/pebble/ by default now (and it's written in Go).

comment 6y ago · link · parent

what "data warehousing"/"data management" tools are missing?

10.

(CMU talk) Building Materialize: Streaming Database powered by Timely Dataflow(materialize.io ↗)

12 points · by irfansharif · 6y ago · discuss

11.

Living Without Atomic Clocks(cockroachlabs.com ↗)

14 points · by irfansharif · 6y ago · discuss

comment 6y ago · link · parent

> Note that neither CockroachDB [...] use Golang for their actual storage engine

We do, now. We're looking to move away from RocksDB to https://github.com/cockroachdb/pebble/.

comment 6y ago · link · parent

Congrats on the launch! If you're looking at CockroachDB (looking at some other comment on this thread), you should reach out to us if you haven't already. Your design here seems like the exact kind of thing we're hoping to push towards.

comment 6y ago · link · parent

(Linked in the post but) github repo: https://github.com/MaterializeInc/materialize

15.

Materialize: A Streaming Data Warehouse(materialize.io ↗)

262 points · by irfansharif · 6y ago · 100 comments

comment 6y ago · link · parent

I have no idea what you're saying. What's a "row-oriented storage" if not storing all the column values of a row in sequence, in contrast to storing all the values in a column across the table in sequence (aka "column store"). What does the fact that it's exposed behind a KV interface have to do with anything? What's "more" about Postgres' "row-orientedness" compare to MySQL?

In case you didn't know, a row [idA, valA, valB, valC] is not stored as [idA: [valA, valB, valC]]. It's more [id/colA: valA, id/colB: valB, id/colC: valC] (modulo caveats around what we call column families[0], where you can have it be more like option (a) if you want). My explanation here is pretty bad, but [1][2] go into more details.

[0]: https://www.cockroachlabs.com/docs/stable/column-families.ht...

[1]: https://www.cockroachlabs.com/blog/sql-in-cockroachdb-mappin...

[2]: https://github.com/cockroachdb/cockroach/blob/master/docs/te...

comment 6y ago · link · parent

> Actually, I always believed that the internal key-value store that they use would never scale to represent table workloads.

Care to elaborate here? As someone working at that layer of the system, our RocksDB usage is but a blip in any execution trace (as it should be, any network overhead you have given it's a distributed system would dominate single-node key-value perf). That aside, plenty of RDBMS systems are designed such that they sit atop internal key-value stores. See MySQL+InnoDB[0], or MySQL+RocksDB[1] used at facebook.

[1]: https://en.wikipedia.org/wiki/InnoDB

[0]: https://myrocks.io/

comment 6y ago · link · parent

> Just, please, pretty please, give us a --insecure

Have you taken a look at [0]? (All caveats around running an insecure cluster apply)

[0]: https://www.cockroachlabs.com/docs/stable/deploy-cockroachdb...

comment 6y ago · link · parent

TrueTime is not a publicly available GCP service.

comment 6y ago · link · parent

We take our claims if correctness very seriously. The behavior you're describing, depending on exactly what you're doing, is likely an allowed serializable history, which is the isolation level we claim to support. See [0] for a deeper dive on the subject. Either way, you should show us what you found (if you haven't already).

As for your performance analysis, do share your results and methodology. We published an in-depth, reproducible comparison with YugaByte here [1] in addition to publishing our TPCC-100k numbers[2]. If you're seeing performance that doesn't line up with the above, let us know.

[0]: https://www.cockroachlabs.com/blog/consistency-model/

[1]: https://www.cockroachlabs.com/blog/unpacking-competitive-ben...

[2]: https://www.cockroachlabs.com/blog/tpcc-100k/

comment 6y ago · link · parent

CockroachCloud has public pricing. https://www.cockroachlabs.com/docs/cockroachcloud/stable/coc...

comment 6y ago · link · parent

As someone working for crdb, I disagree with you re: "the whole point is that it enables Google scale". There's a wide gulf up to that point that cockroachdb is still imminently useful for, especially considering the alternatives.

comment 6y ago · link · parent

CockroachDB runs the Jepsen test suite nightly. We've been following along Aphyr's recent test additions (`multi-register` for instance, which immediately caught [0]), porting them over when appropriate. We definitely have work to be done incorporating the more DDL focused tests that tripped up YugaByte.

[0]: https://github.com/cockroachdb/cockroach/pull/40600

comment 6y ago · link · parent

v20.1 is slated for release in April.

comment 6y ago · link · parent

Those numbers are surprising to me. Have latency charts to share? And are you using think time? http://www.tpc.org/tpcc/detail.asp

comment 6y ago · link · parent

> cdb went with Go but their storage layer ended up being rewritten with C,

The storage layer was not rewritten in C, it's just RocksDB. There's ongoing work to use a custom built LSM store instead: https://github.com/cockroachdb/pebble

comment 7y ago · link · parent

The core shopify codebase is a monolithic one, hence the merging infrastructure described in the post. It's not a "single project" in any useful definition of the phrase.
123456