==> Creating release
Error not enough volumes named volume_name_redacted (1) to run 2 processes
I have a Flask app with two processes, a web server and a worker - both of them should be able to access the SQLite database that is located on a volume. Do I need to modify my fly.toml file to mount the same storage twice or something?
OK, I’ll follow those suggestions in the docs…but doesn’t this kind of defeat the point of being able to specify and run multiple processes in fly.toml and having the benefit of mounted volumes?
I guess if all those services are totally stateless and only rely on network connections to the outside, then it works.
It’s not really possible to mount a single volume across multiple VMs.
But like you said, there are plenty of use cases for mutli-process apps. If you run Postgresql, for example, instead of SQlite, you can do this no problem. That does not mean your app is stateless - it just stores data somewhere that does not require attaching a volume to your application VM. This is the most common way people build full stack apps today.
That said, we think it would be great to have a distributed SQLite solution. It’s definitely something we’re thinking about!
Is it possible to scale volumes like I scale instances?
For example - scale count 2 will also do the same thing with volumes and they will be each other mirrors.