mbox series

[0/1] hashserv unihash cache

Message ID 20231130081525.2537624-1-tobiasha@axis.com
Headers show
Series hashserv unihash cache | expand

Message

Tobias Hagelborn Nov. 30, 2023, 8:15 a.m. UTC
I saw that the ratio of reads to inserts in our hasherv is ~10:1.
So I have added a cache for unihash reads to somewhat off-load the
hashserver. This since it rapidly becomes CPU bound and also that it
is unresponsive during cleanup operations like vacuum. This goes for
the classic sqlite based solution.

We have run this cache in production now with and it seems to do OK
so I would like to share it either as a contribution or an idea for
improvement.

Tobias Hagelborn (1):
  hashserv: Unihash cache

 lib/hashserv/server.py | 188 ++++++++++++++++++++++++++++++++++-------
 1 file changed, 159 insertions(+), 29 deletions(-)