Hi team,
thanks for this amazing product, we are using livekit+twilio for more than 1000 calls with 30 hours of call duration everyday.
we are using a single VM with 16cpus and 64GB RAM which usually handles the traffic fine but sometimes is not able to serve the incomings calls.
On livekit's dashboard it shows invalid credentials but this happens only for 20-30 calls everyday. I tried increasing the NUM_IDLE_PROCESSES but not sure if this would help.
What I have observed that sometimes worker is unable to create room properly even though load never crosses 40% for cpu and RAM. Please advice if we shall increase VM instances or there is another way of solving this. Thanks in advance
# livekit-agents version =1.2.2
if __name__ == "__main__":
agents.cli.run_app(WorkerOptions(
agent_name=os.getenv('AGENT_ENVIRONMENT'),
entrypoint_fnc=entrypoint,
prewarm_fnc=prewarm_fnc,
initialize_process_timeout=30.0,
num_idle_processes=int(os.getenv('NUM_IDLE_PROCESSES', 30))
))