pyr / cyanite

cyanite stores your metrics
http://cyanite.io
Other
446 stars 79 forks source link

Add Caffeine / LIRS cache for resolved paths #229

Open ifesdjeen opened 8 years ago

ifesdjeen commented 8 years ago

It'd be great if we could avoid round-trips to Cassandra index for every dashboard query we do.

Thing is that when we're doing wildcard queries to dashboard, we keep hitting Cassandra SASI index for paths. Since even largest dashboard will be relatively small (say, hundreds of charts), the savings we have are outweighing the space we waste for cache significantly.

pkalemba commented 7 years ago

for my setup making just list of paths of one graph lasts about 4 sec ( we have 4 wildcards in this query) full dashboard loads about 2 minutes.I think some optimization or at least in memory path cache for query until CASSANDRA-12675 will be done.

pkalemba commented 7 years ago

@ifesdjeen is there any eta for this?

ifesdjeen commented 7 years ago

@Samaelson I'll take a closer look over the weekend, hope to at least get to know how much time it might be.