We recently added a new thing to our Machines API that lets you Auto Extend Volumes after a certain threshold. Now, as of flyctl v0.1.127
, this feature has come to your fly.toml too!
I’ve created a livebook example here: fly-apps/livebook-with-auto-volume-extension-example (Im bad at naming things!)
How to use this?
For the fly.toml we decided on this UX:
[[mounts]]
source = "data"
destination = "/data"
auto_extend_size_threshold = 80
auto_extend_size_increment = "1GB"
auto_extend_size_limit = "5GB"
All fields live under mounts as auto_extend_*
, the GB fields being string in the format XGB
.
If you have an existing app don’t forget to fly deploy
after changing your fly.toml
Hope you enjoyed this update and see you next time