The default was to reserve 4GB per connection, because each Wasm sandbox can allocate at most that, and each connection is its own sandbox.
It works fine, until it doesn't and I get users complaining this messes up almost everything slightly more complicated than Linux on bare metal:
https://news.ycombinator.com/item?id=42057378
Now I do mostly the same, but reserve 256MB (or even less) per connection. It works, but it's not free.
The default was to reserve 4GB per connection, because each Wasm sandbox can allocate at most that, and each connection is its own sandbox.
It works fine, until it doesn't and I get users complaining this messes up almost everything slightly more complicated than Linux on bare metal: https://news.ycombinator.com/item?id=42057378
Now I do mostly the same, but reserve 256MB (or even less) per connection. It works, but it's not free.