Joey
06/08/2022, 11:35 PMJwatton
06/08/2022, 11:36 PMJwatton
06/08/2022, 11:36 PMRupa
06/09/2022, 6:54 AMRupa
06/09/2022, 6:54 AMAbhishek Dwivedi
06/09/2022, 10:53 AMRupa
06/09/2022, 10:54 AMAbhishek Dwivedi
06/09/2022, 10:58 AMif(process.env.AUTHZED_SPACE=="development"){
client = v1.NewClient(process.env.AUTHZED_PRESHARED_TOKEN,process.env.AUTHZED_LOCAL_CONN,ClientSecurity.INSECURE_LOCALHOST_ALLOWED);
} else {
client = v1.NewClient(process.env.AUTHZED_CLIENT_TOKEN);
}
Abhishek Dwivedi
06/09/2022, 10:58 AMJake
06/09/2022, 11:35 AMserve-testing
, it can be anything.vad8615
06/09/2022, 1:19 PMJoey
06/09/2022, 2:31 PMJoey
06/09/2022, 2:31 PMvad8615
06/09/2022, 2:48 PMConsistency(minimize_latency=True)
and it doesn't seem to improve at all. It wouldn't be a problem: 8k resources are a lot, it's not a use case for us. The problem is that this user is used by CI tests, and sometimes spicedb OOMs during CI runs. Usually spice runs on ~400MB of memory, but then it can spike to >1GB and oom. We're on spice 1.8.0. Since the dataset is pretty static, this is something unexpected and worrying. Again, we don't need to support 8k resources per user, but I wonder what would happen with real-world load (10k users in our case)vad8615
06/09/2022, 2:50 PMvad8615
06/09/2022, 2:54 PMvad8615
06/09/2022, 2:57 PMJoey
06/09/2022, 3:28 PMJoey
06/09/2022, 3:29 PMJoey
06/09/2022, 3:29 PMJoey
06/09/2022, 3:29 PMJoey
06/09/2022, 3:30 PMTomek
06/10/2022, 8:14 AMnamespace | object_id | relation | userset_namespace | userset_object_id
--------------+--------------------------------------+-------------+-------------------+--------------------------
aminal | 1234 | owner | user | 4321
--------------+--------------------------------------+-------------+-------------------+--------------------------
aminal | 1234 | owner | user | 8765
Let's say I want to remove all relationships where animal's resource id
is 1234
. My request via REST to SpiceDB looks like this.
wget -qO- --post-data '{"relationshipFilter":{"resourceType": "animal", "optionalResourceId":"1234" }}' --header="Authorization: Bearer []" http://localhost:8443/v1/relationship/delete
From what I expected from this request, is that it removes all records from the db table snippet I introduced you. Unfortunately nothing happened and the records are still present. Could you help me out and try to figure out what is wrong with my understanding of relationship removal?Rupa
06/10/2022, 9:05 AMRupa
06/10/2022, 9:05 AMRupa
06/10/2022, 9:05 AMRupa
06/10/2022, 9:24 AMRupa
06/10/2022, 9:26 AMJake
06/10/2022, 11:45 AMJake
06/10/2022, 11:47 AMdatastore-engine
to cockroachdb
and set an appropriate connection string: https://github.com/authzed/spicedb/blob/main/pkg/cmd/datastore/datastore.go#L91