3 ms·
Is there any configuration to keep alive the machine for X seconds after a request has been served, instead of scaling down to zero immediately? I couldn't find
by riquito 3y ago
Is there any configuration to keep alive the machine for X seconds after a request has been served, instead of scaling down to zero immediately? I couldn't find it skimming the docs
- mrkurt 3y agoMachines are both dumber and more powerful than you'd think. Scaling down means just exit(0) if you have the right restart policy set. So you can implement any kind of keep-warm logic you want.
- Aeolun 3y agoOh! I hadn’t thought if it like that. That makes sense.
- kylemclaren 3y agoyou might also be looking for `kill_signal` and `kill_timeout`: https://fly.io/docs/reference/configuration/#runtime-options https://fly.io/docs/reference/configuration/#runtime-options