Would this be the correct way to limit
# spicedb
s
Would this be the correct way to limit connection spicedb makes to the datastore and will it matter if i limit the MaxConn?
Copy code
apiVersion: authzed.com/v1alpha1
kind: SpiceDBCluster
metadata:
  name: spicedb
  namespace: spicedb-operator
spec:
  config:
    datastoreEngine: postgres
    datastoreMaxConns: 10
    replicas: 1
  secretName: spicedb-config
---
apiVersion: v1
kind: Secret
metadata:
  name: spicedb-config
  namespace: spicedb-operator
stringData:
  preshared_key: XXXX
  datastore_uri: XXXX
e
SpiceDB sets up two separate connection pools for reads and writes, so the flags you want are actually:
Copy code
datastoreConnPoolWriteMaxOpen: "4"
datastoreConnPoolReadMaxOpen: "10"
etc
14 Views