OpenTSDB / opentsdb

A scalable, distributed Time Series Database.
http://opentsdb.net
GNU Lesser General Public License v2.1
5k stars 1.25k forks source link

Add support to disable or limit cache #850

Open lygn128 opened 8 years ago

lygn128 commented 8 years ago

hi:

Is there a switch to stop cache in tsd.http.cachedir? because the cache file is big. It seems that there the cache file cannot be removed periodic? or If you hava a better idea to deal the cache file?

thank you very much.

johann8384 commented 8 years ago

The cache is just a cache of the queries in the UI. I could probably write up a logrotate command or something that would periodically clean the cache files for you.

katameru commented 8 years ago

Actually, the ability to disable/skip the cache would be very useful for us. We have an application that will often write data with timestamps in the past, and it's sometimes useful to monitor this as it happens. You can't really do that with with the OpenTSDB UI; a simple reload will hit the disk cache, so we can either delete the data every time or change the query a little.

The ability to disable the cache in OpenTSDB (or adding a parameter to the UI that skips the cache) would be really helpful.