The logs I shared above are before are
# spicedb
n
The logs I shared above are before are after client.CheckPermission...
Copy code
Time difference between log 7 and log 8: 0.000 ms | Log Message: Making object
Time difference between log 8 and log 9: 9792.000 ms | Log Message: Completed CheckPermission request    ---------------------> client call for check permission
j
> "grpc.time_ms":59
that's the time SpiceDB took to answer the check
n
So maybe it is taking time to make the connection and all...
j
yes
n
Sorry that log was from my local setup, from dev I am getting this
Copy code
{"level":"info","protocol":"grpc","grpc.component":"server","grpc.service":"authzed.api.v1.PermissionsService","grpc.method":"CheckPermission","grpc.method_type":"unary","requestID":"388228908a7cf6c9d045564fe5cb82e8","peer.address":"123.123.123.123:12.3123.","grpc.start_time":"2024-03-22T08:25:59Z","grpc.request.deadline":"2024-03-22T08:26:29Z","grpc.code":"OK","grpc.time_ms":6086,"time":"2024-03-22T08:26:06Z","message":"finished call"},
{"level":"info","protocol":"grpc","grpc.component":"server","grpc.service":"authzed.api.v1.PermissionsService","grpc.method":"CheckPermission","grpc.method_type":"unary","requestID":"76a7358df8dbcb3b74a2f4035b8db400","peer.address":"123.123.123.123:12.3123.","grpc.start_time":"2024-03-22T08:25:58Z","grpc.request.deadline":"2024-03-22T08:26:28Z","grpc.code":"OK","grpc.time_ms":7984,"time":"2024-03-22T08:26:06Z","message":"finished call"},
6086 and 7984ms resp.
This setup is using mem-db and not connecting to any external db
j
how many CPUs are you allocating to it?
that seems quite wrong
n
I don't have the system configuration for the dev env, will check with the team
10 Views