Has anyone setup Farcaster Hubble in Fly.io?

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:

  1. Is it possible to attach a volume outside of the app folders in Fly.io?
  2. 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.

if someone even ends up having this issue, the way i solved it was putting on destination an absolute path in fly.toml

destination = ‘/home/node/app/apps/hubble/.rocks’
it works

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.