I'm happy to share the specification requirements for running the LiveKit server and egress server on separate AWS EC2 instances. Let’s walk through them together:
Compute Requirements:
•
LiveKit Egress Server: It’s best to have at least 4 CPUs and 4 GB memory. For smoother performance, you might want to consider compute-optimized instances like
c5.2xlarge or
c6i.2xlarge.
•
LiveKit Server: While there aren’t strict documented requirements, examples suggest around 7.5 CPUs and 2 GB memory. Using compute-optimized instances is a good idea, and remember to run only one instance per physical node because of port restrictions.
Network Configuration:
• For the LiveKit Server, please open these ports: UDP 50000–60000, TCP 7880, 7881, 3478 (TURN), 22 (SSH), and 443 (TLS).
• The Egress Server will need ports configured for health checks, Prometheus metrics, and templates as necessary.
Storage Requirements:
• The Egress Server supports various storage options like S3-compatible storage, Google Cloud Storage, Azure Blob Storage, Alibaba Cloud OSS, or local storage—as long as proper write permissions are set.
• The LiveKit Server mainly manages real-time media routing, so it doesn’t have specific storage needs, but do ensure there’s enough space for logs and TLS certificates.
Additional Considerations:
• Both servers will need to connect to Redis. Please make sure your Redis instance is accessible and that security groups allow connections on port 6379.
• For Egress, Chrome sandboxing requires Docker or Kubernetes configurations to enable the necessary system calls.
• Don’t forget to configure TLS certificates and domain settings for the LiveKit Server.
If you have any questions or need a hand with the deployment, just let me know—I’m here to help!
Sources:
config-sample.yaml |
Running LiveKit on AWS |
LiveKit turn detector plugin | LiveKit docs |
Deploy to a VM | LiveKit docs |
Self-hosting the Egress Service | LiveKit docs