top | item 45611301

(no title)

alooPotato | 4 months 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

discuss

order

SparkyMcUnicorn|4 months ago

To 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...

https://developers.cloudflare.com/sandbox/concepts/sandboxes...

[2] https://developers.cloudflare.com/containers/faq/#is-disk-pe...

alooPotato|4 months ago

Yeah 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|4 months ago

Sandbox is built on top of their Durable Objects; the underlying storage is $0.20/ GB-month.

alooPotato|4 months ago

You’re saying the file system in the container is persisted to the durable object storage? That doesn’t sound right.