frekw
02/25/2025, 1:23 PMDispatchCheck
requests vs CheckPermission
calls, and what looks like very poor cache hit ratio.
I've tried playing around with the cache paramters (spread, quantization etc) but it hasn't made much of a difference. What I do find very puzzling and am failing to understand, is that the number of DispatchChecks seem to be much lower when nodes are freshly started. Even with lower cache hits (new nodes) Spice seems to be hitting the database way less in this scenario, only due to the huge drop in `DispatchCheck`svroldanbet
02/25/2025, 4:26 PMfrekw
02/25/2025, 5:10 PMfrekw
02/25/2025, 5:11 PMfrekw
02/25/2025, 5:11 PMyetitwo
02/25/2025, 5:34 PMyetitwo
02/25/2025, 5:35 PMvroldanbet
02/25/2025, 6:02 PMvroldanbet
02/25/2025, 6:03 PMvroldanbet
02/25/2025, 6:04 PMvroldanbet
02/25/2025, 6:05 PMvroldanbet
02/25/2025, 6:05 PMvroldanbet
02/25/2025, 6:06 PMvroldanbet
02/25/2025, 6:09 PMsum(rate(spicedb_services_dispatches_sum{cached="true"}[$__rate_interval])) / sum(rate(spicedb_services_dispatches_sum{}[$__rate_interval]))
vroldanbet
02/25/2025, 6:11 PMyetitwo
02/25/2025, 6:49 PMfrekw
02/25/2025, 9:02 PMfrekw
02/25/2025, 9:02 PMfrekw
02/25/2025, 9:03 PMfrekw
02/25/2025, 9:03 PMfrekw
02/25/2025, 9:05 PMfrekw
02/25/2025, 9:05 PMyetitwo
02/25/2025, 9:15 PMyetitwo
02/25/2025, 9:15 PMyetitwo
02/25/2025, 9:17 PM--dispatch-chunk-size uint16 maximum number of object IDs in a dispatched request (default 100)
it defaults to 100, but we've had luck increasing that to 500 or 1000. the performance benefits or lack thereof will have to do with the characteristics of your database and its sizing.frekw
02/26/2025, 8:56 AMvroldanbet
02/26/2025, 10:17 AMfrekw
02/26/2025, 1:52 PMfrekw
03/10/2025, 11:05 AM1.0
was what I intended to set. 😅