Crab health connection pool
# spicedb
s
Hi team, I am testing SpiceDB against self-hosted CockroachDB cluster of 3 nodes. SpiceDB metrics show that only one node is detected as healthy (crdb_healthy_nodes is 1). I tried to specify all my nodes in connection uri, but still crdb_healthy_nodes is the same. What is the correct way to connect to a cluster? Should I have a common domain name or smth?
v
@ecordell may be able to provide some insight
e
yes, you'll need one service / load balancer in front of your CRDB nodes. this is how cockroach dedicated works, for example. CRDB uses the postgres protocol which expects a single endpoint to connect to
you can run the way you're describing but it won't be HA - only one of the CRDB nodes will accept all query traffic
s
got it, will update my setup then thanks!
3 Views