Hey team, we're seeing some interesting
# spicedb
a
Hey team, we're seeing some interesting behaviour from the tracing of our CheckPermission calls where SpiceDB is doing nothing and hanging, increasing our latency. Attached is a screenshot. To give some context, we're self-hosted, we use the SpiceDB operator and we're using Postgres. Can someone help inform what might be happening here? Thanks a lot in advance! https://cdn.discordapp.com/attachments/844600078948630559/1387149098427093164/Screenshot_2025-06-24_at_1.10.08_PM.png?ex=685c4ac5&is=685af945&hm=ce5a824b9c3ddcfa80e261485f3d5a2aebb9cee6f5aeab80c8ab5cebf8b8e9c1&
y
the first thing i'd check is whether spicedb is waiting on DB connections
a
y
pgxpoll_empty_acquire
is the metric that SpiceDB exposes that will tell you whether SpiceDB was waiting on connection acquisition
hmm that is strange
Our CPU usage is very high...
y
CPU usage being high could be related
especially if there's goroutine thrashing
a
🤔 How do you recommend we proceed? 😢
y
are you familiar with the go profiler? spicedb exposes a [profiling endpoint](https://authzed.com/docs/spicedb/ops/observability#profiling) that could help you understand where it's hanging
a
Will give that a try, thank you!
7 Views