2 ms·
There is an open question about how file persistence works. The docs claim they persist the filesystem even when they move the container to an idle state but i
by alooPotato 1y ago
There is an open question about how file persistence works.
The docs claim they persist the filesystem even when they move the container to an idle state but its unclear exactly what that means - https://github.com/cloudflare/sandbox-sdk/issues/102 https://github.com/cloudflare/sandbox-sdk/issues/102
- SparkyMcUnicorn 1y agoTo me, the docs answer it pretty clearly. The defined directories persist until you destroy(). The part that's unclear to me is how billing works for a sandbox's disk that's asleep, because container disks are ephemeral and don't survive sleep[2] but the sandbox pricing points you to containers which says "Charges stop after the container instance goes to sleep". https://developers.cloudflare.com/sandbox/concepts/sandboxes/#idle https://developers.cloudflare.com/sandbox/concepts/sandboxes... https://developers.cloudflare.com/sandbox/concepts/sandboxes/#persistence https://developers.cloudflare.com/sandbox/concepts/sandboxes... [2] https://developers.cloudflare.com/containers/faq/#is-disk-persistent-what-happens-to-my-disk-when-my-container-sleeps https://developers.cloudflare.com/containers/faq/#is-disk-pe...
- alooPotato 1y agoYeah thats basically the issue. If container disks are ephemeral, how are they persisting it? And however they are doing it, whats the billing for it?
- ZiiS 1y agoSandbox is built on top of their Durable Objects; the underlying storage is $0.20/ GB-month.
- alooPotato 1y agoYou’re saying the file system in the container is persisted to the durable object storage? That doesn’t sound right.
- ZiiS 1y agoWhilst it is in the idle state. Not whilst it is stopped.