straight-painting-40361
08/15/2025, 2:46 PMtall-airline-16756
08/15/2025, 2:47 PMtall-airline-16756
08/15/2025, 2:47 PM<HEALTH_CHECK_ENDPOINT>
to keep an eye on things.
• Environment Variables: Make sure to configure LIVEKIT_URL
, LIVEKIT_API_KEY
, LIVEKIT_API_SECRET
, and any plugin-specific keys like OPENAI_API_KEY
.
If you want, I can share more details about deployment platforms like Kubernetes or Render.com, or help you with configuring plugins. Just let me know!
Sources: Deploying to production | LiveKit Docs | Deployment and scaling | LiveKit Docs | Deployment and scaling | LiveKit Docs | Deploying to production | LiveKit Docsstraight-painting-40361
08/15/2025, 3:47 PMtall-airline-16756
08/15/2025, 3:48 PM<HEALTH_CHECK_ENDPOINT>
(the default port is 8081).
• Purpose: While optional, it’s a great idea to use it in production to make sure your workers are up and running smoothly.
• Configuration: You can easily change the port using the port
option in the WorkerOptions
settings.
• Usage: This endpoint is super handy for monitoring, load balancing, or autoscaling your setup in production.
If you’d like, I’m here to help you set it up or show you how to make the most of it in your deployment—just let me know!
Sources: Deployment and scaling | LiveKit Docs | Deploying to production | LiveKit Docs | livekit-agents/livekit/agents/worker.pystraight-painting-40361
08/15/2025, 3:54 PMtall-airline-16756
08/15/2025, 3:54 PMfrom livekit import agent
from livekit.agents import Worker, WorkerOptions
# Custom worker configuration with a different health check port
options = WorkerOptions(
entrypoint_fnc=async def(job_context):
# Your job entrypoint logic here
pass,
port=8082, # Change the health check port to 8082
)
# Initialize and run the worker
worker = Worker(options)
worker.run()
Just a couple of things to keep in mind:
• The default health check port is 8081, but you can easily switch it up using the port
parameter in WorkerOptions
.
• Once you set the port, you’ll find the health check running at <http://localhost:<port>/>
.
If you’d like, I can also share examples on how to configure this in a Kubernetes deployment—just let me know!
Sources: livekit-agents/livekit/agents/worker.py | ingress/templates/deployment.yamlstraight-painting-40361
08/16/2025, 9:55 AMtall-airline-16756
08/16/2025, 9:55 AMstraight-painting-40361
08/16/2025, 9:56 AMtall-airline-16756
08/16/2025, 9:56 AM