Hi, I am using strapi and for testing I want to use volume to load and store assets from admin. I have two machines and the recommendation is two volumes.
And i am observing that sometimes files uploaded are not available. I understand that different volume is used at different moment.
How to synchronize them, or in this case it is better to make one volume?
[mounts]
source="assets"
destination="/app/public/uploads"
Hi… The Fly.io platform doesn’t have a built-in feature for synchronizing volumes.
For testing, it’s ok to reduce down to a single machine and a single volume, though.
(But be sure to have copies of everything elsewhere, since there is a real risk of losing your most recent 1–2 days of work.)
For production, it’s best to think of volumes as not being a beginner feature here. Fly.io’s approach to them is way more nuanced than people guess, , and they come with only half (roughly speaking) of the guarantees that people have come to expect in the cloud setting.
Use Postgres and Tigris instead for things that do need to be dynamic in production; they take care of all of the replication and synchronization for you…
Hope this helps a little!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.