yetitwo
08/02/2022, 1:01 PMyetitwo
08/02/2022, 1:01 PMwilliamdclt
08/02/2022, 3:21 PMschema write
where I removed 3 permissions. I was expecting this to be instant, but it took ~3min, during which i observed a huge increased load on my (Postgres) database due to this query:
SELECT namespace, object_id, relation, userset_namespace, userset_object_id, userset_relation FROM relation_tuple WHERE created_transaction <= $1 AND (deleted_transaction = $2 OR deleted_transaction > $3) AND namespace = $4 AND relation = $5 LIMIT ?
How comes removing a permission requires a DB query? How comes it is so expensive? My DB CPU jumped from ~10% to 50-60% for 3 minutes: this was my staging environment, I'm concerned about deploying this to production :/jzelinskie
08/02/2022, 5:05 PMschema write
wherewilliamdclt
08/03/2022, 9:10 AMjson
{"level":"warn","prefix":"grpc","time":"2022-08-03T08:58:35Z","message":"grpc server serving plaintext"}
{"level":"warn","addr":":8443","prefix":"http","time":"2022-08-03T08:58:35Z","message":"http server serving plaintext"}
{"level":"warn","addr":":9090","prefix":"metrics","time":"2022-08-03T08:58:35Z","message":"http server serving plaintext"}
{"level":"warn","addr":":8080","prefix":"dashboard","time":"2022-08-03T08:58:35Z","message":"http server serving plaintext"}
But the health probe fails:
/ # /opt/grpc_health_probe -v -addr=localhost:50051
parsed options:
> addr=localhost:50051 conn_timeout=1s rpc_timeout=1s
> tls=false
> spiffe=false
establishing connection
connection established (took 904.622µs)
service unhealthy (responded with "NOT_SERVING")
I'm not getting any log (with LOG_LEVEL=warn) telling me anything's wrong, how can I investigate further?Joey
08/03/2022, 1:42 PMjzelinskie
08/03/2022, 7:04 PMcalle-ibx
08/04/2022, 6:51 AMsrolevink
08/04/2022, 8:38 AM{"level":"error","module":"pgx","args":[],"err":"timeout: context canceled","pid":62,"sql":"begin isolation level serializable read only","time":0.0711,"time":"2022-08-04T06:41:56Z","message":"Exec"}
Joey
08/04/2022, 2:49 PMWriteRelationships
call is a batch call: it takes zero or more updates to apply in a single callJoey
08/04/2022, 2:52 PMserve-testing
?Joey
08/04/2022, 4:25 PMserve-testing
to allow REST API tests
- Reachability now uses batching to significantly improve the performance of LookupResources on wider datasets
- Check requests can now have their trace returned for debugging purposes (changes in Zed will go in shortly to enable this from the CLI)
- New concurrency limits to prevent too many goroutines from being spawned
- CRDB feature detection for the Watch API no longer admin permissions, enabling use against CRDB serverless
- WriteSchema no longer checks permissions for data, improving update performance where only permissions are removed
https://github.com/authzed/spicedb/releases/tag/v1.11.0ecordell
08/04/2022, 4:57 PMSingha1
08/04/2022, 7:01 PMpariktiwari
08/04/2022, 7:02 PMpariktiwari
08/04/2022, 7:02 PMSingha1
08/04/2022, 7:02 PMRupa
08/05/2022, 1:27 AMRupa
08/05/2022, 1:28 AMJake
08/05/2022, 1:39 AMRupa
08/05/2022, 1:39 AMRupa
08/05/2022, 1:39 AMJake
08/05/2022, 1:41 AMRupa
08/05/2022, 1:42 AMJake
08/05/2022, 1:43 AMRupa
08/05/2022, 1:47 AMJake
08/05/2022, 1:49 AMJake
08/05/2022, 1:50 AMspicedb serve
as you did for spicedb migrate
?