{"message": "registered worker", "level": "INFO", ...
# ask-ai
b
{"message": "registered worker", "level": "INFO", "name": "livekit.agents", "id": "AW_jzMvXCrHGfoo", "url": "wss://agent1-cm03hot7.livekit.cloud", "region": "India South", "protocol": 16, "timestamp": "2025-08-25T085207.616014+00:00"} {"message": "worker is at full capacity, marking as unavailable", "level": "INFO", "name": "livekit.agents", "load": 1.0, "threshold": "_WorkerEnvOption(dev_default=inf, prod_default=0.7)", "timestamp": "2025-08-25T085210.120986+00:00"}
t
Thanks for reaching out, Aman. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! The log message is letting you know that a LiveKit worker has hit its load limit and is taking a little break from accepting new jobs. This usually happens when the worker’s load — often measured by CPU usage or a custom load function — goes over the set threshold. Here’s what happens when that occurs: • The worker switches to unavailable and pauses taking on new jobs. • Any jobs it’s already working on keep running smoothly, no worries there. • Once the load eases up and goes below the threshold, the worker automatically becomes available again. If you want, you can tweak how the load is measured and set your own threshold in the worker’s configuration. Just give me a shout if you want a hand with that! Sources: Worker options | LiveKit Docs | livekit-agents/livekit/agents/worker.py | Deployment and scaling | LiveKit Docs
b
it shows that even if i dont have any sessions running (.venv) amansharma@test-MS-7D70:~/projects/voice_agent$ python3 teliphoney_agent_v2.py start {"message": "starting worker", "level": "INFO", "name": "livekit.agents", "version": "1.2.3", "rtc-version": "1.0.12", "timestamp": "2025-08-25T085159.966200+00:00"} {"message": "preloading plugins", "level": "INFO", "name": "livekit.agents", "packages": ["livekit.plugins.google", "av"], "timestamp": "2025-08-25T085159.966406+00:00"} {"message": "initializing process", "level": "INFO", "name": "livekit.agents", "pid": 591126, "timestamp": "2025-08-25T085204.459205+00:00"} {"message": "initializing process", "level": "INFO", "name": "livekit.agents", "pid": 591128, "timestamp": "2025-08-25T085204.490142+00:00"} {"message": "initializing process", "level": "INFO", "name": "livekit.agents", "pid": 591135, "timestamp": "2025-08-25T085204.513330+00:00"} {"message": "process initialized", "level": "INFO", "name": "livekit.agents", "pid": 591128, "elapsed_time": 2.64, "timestamp": "2025-08-25T085207.132827+00:00"} {"message": "process initialized", "level": "INFO", "name": "livekit.agents", "pid": 591135, "elapsed_time": 2.75, "timestamp": "2025-08-25T085207.264072+00:00"} {"message": "process initialized", "level": "INFO", "name": "livekit.agents", "pid": 591126, "elapsed_time": 3.02, "timestamp": "2025-08-25T085207.475703+00:00"} {"message": "registered worker", "level": "INFO", "name": "livekit.agents", "id": "AW_jzMvXCrHGfoo", "url": "wss://agent1-cm03hot7.livekit.cloud", "region": "India South", "protocol": 16, "timestamp": "2025-08-25T085207.616014+00:00"} {"message": "worker is at full capacity, marking as unavailable", "level": "INFO", "name": "livekit.agents", "load": 1.0, "threshold": "_WorkerEnvOption(dev_default=inf, prod_default=0.7)", "timestamp": "2025-08-25T085210.120986+00:00"}
t
Hey there! If you’re seeing the worker showing 'full capacity' even when no sessions are running, it could be due to a few reasons: • High CPU Usage: The load calculation usually looks at CPU usage. So, if other processes on your machine are using a lot of CPU, the worker might show as full capacity. • Draining State: Sometimes, if the worker is winding down (like during a shutdown), it’ll mark itself as unavailable. • Custom Load Function: If you’ve set up a custom load function, it might be checking other things besides active sessions—like the ratio of active jobs to max capacity. Here’s how you can troubleshoot: 1. Keep an eye on the CPU usage on the worker machine to see if something else is hogging resources. 2. Take a look at the logs to check if the worker is in that draining state. 3. If you have a custom load function, give it a review to make sure it’s measuring what you expect. 4. If the default load threshold (0.75) feels too strict, you might want to tweak it to better fit your setup. If you want, I’m here to help you walk through any of these steps—just let me know! Sources: Deployment and scaling | LiveKit Docs | Deployment and scaling | LiveKit Docs | livekit-agents/livekit/agents/worker.py | Worker options | LiveKit Docs