Live data from Hacker News

CockroachDB 20.1

cockroachlabs.com

11–20 of 23 posts

Re: CockroachDB 20.1

#11

Online primary key migrations is some interesting voodoo. We ran it in production from the v2.x days before they moved to a new versioning schema and the support was really good. The paid support is worth the enterprise license. It's also good to see the added work on supporting ORMs for shops that use it. We used SQLAlchemy heavily and had to do a lot of work to fix our app to work around the transaction retry error…

Retrying transactions is something every app ought to handle, but it's rare enough that most codebases I've seen just punt on it.

Re: CockroachDB 20.1

#12
post #2

Looking at the product comparison chart[1], there's quite a lot of features that aren't in the open source "core" CockroachDB. That's fine of course, but the one that seems concerning is the backup/restore. Is there a reasonable and reliable way to do backups and restores with just the "core" open source product? [1] https://www.cockroachlabs.com/compare/

No, there isn't.

The only option is the dump command (full backup). But it's slow. And the restore is unreasonably slow. If you have a medium-sized database, you'll likely have to accept uncomfortably large (possibly even disastrous) data-loss window and a long downtime while you restore.

There's even cases where it can't work (1).

The free options from PG (namely things like barman and the built-in replication) is far superior to what the paid version of CockroachDB offers, let alone the community edition.

I wish they'd let you take a rocksdb checkpoint of a single node and restore that into another cluster. This should work if your replica == node count (a common setup). Getting access to the checkpoint isn't complicated, but recovering this with the leaseholders and cluster config baked into the database requires more insight into their abstractions than I have. Feels like something they need anyways, because, as-is, a permanent loss of 2 nodes is impossible to recover from (2)

(1) https://github.com/cockroachdb/cockroach/issues/28948

(2) https://github.com/cockroachdb/cockroach/issues/17186

Re: CockroachDB 20.1

#13
Maybe I've been living under a rock, but this is the first I've heard of the Business Source License (BSL). https://www.cockroachlabs.com/docs/stable/licensing-faqs.htm... So after it converts to Apache 2.0 licensing, how does that affect redistribution of CockroachDB if I include it in my commercial applications?

Re: CockroachDB 20.1

#14
post #2

Looking at the product comparison chart[1], there's quite a lot of features that aren't in the open source "core" CockroachDB. That's fine of course, but the one that seems concerning is the backup/restore. Is there a reasonable and reliable way to do backups and restores with just the "core" open source product? [1] https://www.cockroachlabs.com/compare/

I may be misremembering but I'm pretty sure you can backup like any postgres database with e.g. pg_dump I think the premium distributed backup/restore thing is for backing up separate regional clusters individually edit: looks like the premium option is a nice "BACKUP" command that handles uploading or downloading from cloud storage (e.g. s3) automatically. but for free you get "cockroach dump" which is similar to pg…

The enterprise license gets you incremental backups.

cockroach dump is similar to pg_dump, but it's worth pointing out that pg offers a lot more than just pg_dump. Things like pg_basebackup (and accompanying tools) and various replication strategies and capabilities (e.g. recovery_min_apply_delay) make pg a vastly safer option from a DR point of view.

Re: CockroachDB 20.1

#15
post #2

Looking at the product comparison chart[1], there's quite a lot of features that aren't in the open source "core" CockroachDB. That's fine of course, but the one that seems concerning is the backup/restore. Is there a reasonable and reliable way to do backups and restores with just the "core" open source product? [1] https://www.cockroachlabs.com/compare/

Yeah, backup is missing. This question has been asked in the comments of every HN post about a new release.

It doesn’t make sense, they are missing out on lots of enthusiast/hacker adoption, people that can’t afford enterprise anyway.

Having backup as a “differentiating feature” for enterprise is such a stupid idea.

Re: CockroachDB 20.1

#16

Maybe I've been living under a rock, but this is the first I've heard of the Business Source License (BSL). https://www.cockroachlabs.com/docs/stable/licensing-faqs.htm... So after it converts to Apache 2.0 licensing, how does that affect redistribution of CockroachDB if I include it in my commercial applications?

First for me too. I like the idea of a time limited conversion to Apache. Companies w easily AWS’d apps need some leverage and having older versions being the only open source ones makes sense. I would prefer a non commercial source available license as well or open core but this doesn’t seem too unreasonable.

Re: CockroachDB 20.1

#17
post #2

Looking at the product comparison chart[1], there's quite a lot of features that aren't in the open source "core" CockroachDB. That's fine of course, but the one that seems concerning is the backup/restore. Is there a reasonable and reliable way to do backups and restores with just the "core" open source product? [1] https://www.cockroachlabs.com/compare/

Yeah, backup is missing. This question has been asked in the comments of every HN post about a new release. It doesn’t make sense, they are missing out on lots of enthusiast/hacker adoption, people that can’t afford enterprise anyway. Having backup as a “differentiating feature” for enterprise is such a stupid idea.

Well, and eventually sets you up for some bad press. I assume a "I chose CRDB, and now I've lost all my data" story will hit at some point. And it won't be obvious for all the readers that they weren't a paying customer.

Re: CockroachDB 20.1

#18
post #3

I see an untrusted cert: "Issued by: allot.com/emailAddress=info@allot.com". Am I the only one? EDIT: https://www.allot.com/service-providers/url-traffic-filterin... ; still not sure if it's on my side, or if the CDN (netlify in this case) is applying this to some regions (I'm in EU)

"allot.com" appears to be one of those "MITM Corporate/Parental Nanny Software" companies. You're either being MITMed by your company or your parents :)

Re: CockroachDB 20.1

#19
post #18
post #3

I see an untrusted cert: "Issued by: allot.com/emailAddress=info@allot.com". Am I the only one? EDIT: https://www.allot.com/service-providers/url-traffic-filterin... ; still not sure if it's on my side, or if the CDN (netlify in this case) is applying this to some regions (I'm in EU)

"allot.com" appears to be one of those "MITM Corporate/Parental Nanny Software" companies. You're either being MITMed by your company or your parents :)

Why just this site?

Re: CockroachDB 20.1

#20
post #19
post #18

Earlier quoted context omitted.

"allot.com" appears to be one of those "MITM Corporate/Parental Nanny Software" companies. You're either being MITMed by your company or your parents :)

Why just this site?

That type of software is pretty highly configurable...like "NO MITM for Bank type sites", "only MITM for sites with domains < 1 year old", etc.
Post reply on HN