Keep in mind that:
- there is very little space in the ZRAM file system, and for good reason as every MB in the ZRAM file system is one MB that is no longer available to running programs as RAM.
- InfluxDB databases can become quite sizable
- ZRAM does not automatically flush the data back to disk except on shutdown; should your machine crash without shutting down nicely you will lose all the data saved since the last nice shutdown
So I recommend not trying to run InfluxDB or any other database out of zram. And once you attach an SSD the whole problem that ZRAM is attempting to solve, namely SD card wear out, goes away if you move the writes to the SSD, I’d recommend focusing on moving as much as possible to the SSD instead of trying to move everything to ZRAM.
I talks to InfluxDB through InfluxDB’s API. It won’t know and won’t care where InfluxDB is saving it’s data.