I’m trying to host a Farcaster Hubble (GitHub - farcasterxyz/hub-monorepo: Implementation of the Farcaster Hub specification and supporting libraries for building applications on Farcaster) on Fly.io and facing an issue with RocksDB storage. The database grows to hundreds of GB, and I need to properly configure persistent storage.
Current Setup
I’ve added a volume in my fly.toml
:
Copy
[mounts]
source = "hubble_data_volume"
destination = "~/.rocks/"
Issues
The machine still runs out of memory, suggesting the volume isn’t mounting to the correct location. My questions are:
- Is it possible to attach a volume outside of the app folders in Fly.io?
- What is the correct folder path where RocksDB stores data on Ubuntu?
I suspect the ~/.rocks/
path in my configuration might not be resolving correctly, causing the database to write to ephemeral storage instead of the persistent volume.