Hey All,
Was extremely impressed by the work Jenn Schiffer has done getting Ghost working on glitch. After reviewing how it was implemented I had some questions about what’s going on under the hood
- How is persistent memory handled?
Changes to the local file system are available in between runs (including cold starts). What would be the best mental model to think about this persistent memory. Any insight into how this is accomplished? Is this related to docker snapshots?
- How are glitchs scaled?
This is closely tied to 1. Do glitchs scale at all? Is there only ever a single instance? If there is only ever a single instance that could help explain how persistence is accomplished. If not I’m very interested in how persistent memory is managed across horizontally scaled instances
- Backups
This builds upon the last 2 questions, but what are the best practices for backing up projects. I recognize that y’all keep things persistent between sessions, but are there best practices for backing up data through multiple runs? Could periodic archives of the file system be made? How would you advise backing up periodically?
- Cron
Building on the question of backups. is there a best practice for periodic work being done on the system (such as a backup)? It seems like it could be hacked into the npm start -> init.sh
but it wouldn’t be super reliable.
Let me know if you want me to open separate threads.