RRDFLUSHCACHED(1)
β¨ RRDFLUSHCACHED π
ok so this is the rrdtool girlies' guide to rrdflushcached β one of the little rrdtool subcommands, and honestly? she's giving niche but essential. sit down, bestie, we're flushing cache π«Ά
πΈ NAME πΈ
rrdflushcached β flush the values for a specific RRD file from memory. that's it, that's the whole vibe. memory says "I gotchu", disk says "where's my data", and this little icon steps in π
π SYNOPSIS π
rrdtool flushcached [--daemon|-d address] filename [filename ...]
literally the whole thing. that's her. no cap β¨
π¦ DESCRIPTION π¦
okay so picture this: the flushcached function connects to rrdcached β that's the RRD caching daemon, the backstage crew of this whole operation β and it issues a "flush" command for the files you hand it. and when it says flush, it means flush.
the daemon will put the files at the head of the update queue so they get written "soon" β yes, the manpage puts "soon" in quotes, and honestly? iconic of them to be that honest about it π
and here's the part that lowkey matters most: the status will be returned only after the files' pending updates have actually been written to disk. so like, you don't get a "k cool done" until it's actually done done. no cap, that's the whole point π₯
filenameβ the name(s) of the RRD file(s) that are to be written to disk. plural, bestie, you can pass more than one, she's flexible like that π--daemon,-daddress β the address of therrdcacheddaemon. if you don't specify it, theRRDCACHED_ADDRESSenvironment variable must be set (see below, I gotchu π«Ά). for the full list of accepted formats, go look at the-loption in therrdcachedmanual β that's where the format lore lives.
and here's a lil example straight from the source, copy it exactly, don't @ me:
rrdtool flushcached --daemon unix:/var/run/rrdcached.sock /var/lib/rrd/foo.rrd
look at her go π unix socket, one RRD file, flushed, slayed π
ngl, if you forget--daemonand forget to setRRDCACHED_ADDRESS, she literally cannot find the daemon and that's a you problem. set your env var, bestie π
π ENVIRONMENT VARIABLES π
the following environment variables may be used to change the behavior of "rrdtool flushcached":
RRDCACHED_ADDRESSβ if this environment variable is set, it will have the same effect as specifying the--daemonoption on the command line. and if both are present? the command line argument takes precedence. queen behavior, honestly β command line always wins π
π AUTHOR π
Florian Forster <octo at verplant.org> β thank you for your service, legend π«‘π
ok that's the whole page, you're a rrdflushcached expert now, go forth and flush responsibly πβ¨
this lil masterpiece is from rrdtool version 1.11.0, dated 2026-10-17 β screenshot the date, she's a whole timestamp ππ¦
π¦ where this page comes from
- arch rolling: rrdtool 1.11.0-2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms