Skip to content

mention tx retries in Production Checklist #3266

Closed
@tomholub

Description

@tomholub

I think this point is worth mentioning in prod checklist because it differs from how postgres works. Postgres uses locks and the client doesn't have to do a whole lot of retrying (small/simple apps may not need to do any), whereas roach will try and fail and leave retries to the client.

This is imo very crucial, but not clear from the production checklist.

Additional details: https://forum.cockroachlabs.com/t/insert-failed-on-transaction/831/6

I suggest to add something of this sort:

CockroachDB uses optimistic concurrency control instead of table or row locks. When several transactions compete for the same resource, all but one will fail. The client must implement a retry mechanism to avoid failures in production. See https://www.cockroachlabs.com/docs/stable/transactions.html#client-side-transaction-retries

to the production checklist at https://www.cockroachlabs.com/docs/stable/recommended-production-settings.html

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions