Skip to content

feat(storage): add libsql file-based storage with network volume support - #9

Merged
TimPietruskyRunPod merged 2 commits into
mainfrom
feat/network-volume-storage
Dec 16, 2025
Merged

feat(storage): add libsql file-based storage with network volume support#9
TimPietruskyRunPod merged 2 commits into
mainfrom
feat/network-volume-storage

Conversation

@TimPietruskyRunPod

Copy link
Copy Markdown
Contributor

Summary

Add LibSQL (SQLite) file-based storage as default when PostgreSQL is not configured.

Changes

  • Add @mastra/libsql as storage backend
  • Detect /runpod-volume at runtime for persistent storage on network volumes
  • Fallback to /tmp for ephemeral storage when no volume attached
  • Update documentation with three storage modes:
    • Ephemeral: /tmp (default, lost on restart)
    • Network Volume: /runpod-volume (persistent with attached volume)
    • PostgreSQL: Full-featured with pgvector embeddings

Testing

  • Built Docker image locally
  • Verified storage file creation on startup
  • Tested agent endpoint with weather query
  • Confirmed persistent/ephemeral path detection works correctly

… notice

- fix test-endpoint-agent.mjs to use /generate instead of /chat
- update README.md with correct model name (qwen3-32b-awq)
- update .runpod/README.md with experimental notice explaining:
  - cold start time (20-40s) and flash boot coming for cpu
  - load balancer is experimental for mastra api exposure
  - recommend active workers = 1 to avoid cold start
  - in-memory storage is file-based and lost when worker stops
- add libsql as storage backend when postgresql not configured
- detect /runpod-volume at runtime for persistent storage
- fallback to /tmp for ephemeral storage when no volume attached
- update documentation with three storage modes
@TimPietruskyRunPod
TimPietruskyRunPod merged commit 5142cb2 into main Dec 16, 2025
1 check passed
@TimPietruskyRunPod
TimPietruskyRunPod deleted the feat/network-volume-storage branch December 16, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants