Hello team! I've read chat's history, but want to ...
# spicedb
s
Hello team! I've read chat's history, but want to make sure I understand cache metrics correctly. Can you confirm the following formula for cache hit is used in your tests https://authzed.com/blog/google-scale-authorization ?
Copy code
sum(rate(spicedb_services_dispatches_sum{method="CheckPermission",cached="true"}[$__rate_interval])) / 
sum(rate(spicedb_services_dispatches_sum{method="CheckPermission"}[$__rate_interval]))
I am trying to figure out why the following formula gives me numbers at least 2 times worse:
Copy code
sum (rate(spicedb_dispatch_check_from_cache_total{}[$__rate_interval])) / 
sum (rate(spicedb_dispatch_check_total{}[$__rate_interval]))
Do I understand it correctly that with the first approach when increasing "cached" counter you also include there all subproblems that would have been potentially dispatched?
3 Views