Datastore garbage collection across replicas #2035
-
Hi, just looking for what the best practices are for having multiple replicas for SpiceDb and specifically around garbage colleciton. I notice that we get log entries stating I don't know if it's related, but we sometimes get a timed out error on our Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
How are you running your SpiceDB instances? The coincidence of timeouts and garbage collection may have something to do with the max number of datastore connections that each pod will open, which is configured through |
Beta Was this translation helpful? Give feedback.
There are no specific settings - it depends on your workload. You could test disabling GC temporarily to see if that's the problem. If the problem was contention on connection pools, we could look into making GC happen outside of the connection pools, just like Watch API does for CockroachDB datastore.
SpiceDB offers metrics around connection pools, so you should be able to see if that's where the problem lies.