For self hosted agent - what should be the deploym...
# agents
f
For self hosted agent - what should be the deployment strategy to not to disrupt ongoing calls on release ?
l
No personal experience, but I believe you need to set the drain timeout: https://docs.livekit.io/agents/worker/options/#drain-timeout So: start updated agents, then stop old agents, who will shutdown gracefully after they have handled any current calls.
r
Darryn is correct. When you send the sig kill to the process the existing calls should continue and drain naturally. Once it is done draining it will exit. It will also stop receiving "new" sessions during that period. The newly deployed agent will receive those new sessions.
Defaults are usually pretty good but you can adjust based on your needs.
f
hmmm, this means instances are shut without waiting for them to finish
l
hmmm, this means instances are shut without waiting for them to finish
No, the opposite 🙂; instances will wait until all calls have completed (or drained) so long as that is within the
drain_timeout
period.
f
sorry, I meant right now our instances are being shut before that is done. I need to find why