-
Notifications
You must be signed in to change notification settings - Fork 632
Ant Media Server Optimization
Murat Ugur Eminoglu edited this page May 17, 2022
·
6 revisions
Attention: We have migrated our documentation to our new platform, Ant Media Resources. Please follow this link for the latest and up-to-date documentation.
1. Kernel Network Tuning Parameters
- To set UDP Buffer size to 25Mb, run the below lines.
sysctl -w net.core.rmem_max=26214400
sysctl -w net.core.wmem_max=26214400
sysctl -w net.core.rmem_default=26214400
sysctl -w net.core.wmem_default=26214400
- if your Linux server needs lots of outgoing network connections, you can increase the local port range.
sysctl -w net.ipv4.ip_local_port_range = 1024 65000
- If the maximum File Descriptors is low, you can increase it with the following command.
cat /proc/sys/fs/file-max
sysctl -w fs.file-max = 1496257
2. You can change the maximum number of processes (nproc) and the maximum number of open file descriptors (nofile) limits by running the following command.
cat << EOF >> /etc/security/limits.conf
root soft nproc 65535
root hard nproc 65535
root soft nofile 65535
root hard nofile 65535
antmedia soft nproc 65535
antmedia hard nproc 65535
antmedia soft nofile 65535
antmedia hard nofile 65535
EOF
- Introduction
- Quick Start
- Installation
- Publishing Live Streams
- Playing Live Streams
- Conference Call
- Peer to Peer Call
- Adaptive Bitrate(Multi-Bitrate) Streaming
- Data Channel
- Video on Demand Streaming
- Simulcasting to Social Media Channels
- Clustering & Scaling
- Monitor Ant Media Servers with Apache Kafka and Grafana
- WebRTC SDKs
- Security
- Integration with your Project
- Advanced
- WebRTC Load Testing
- TURN Servers
- AWS Wavelength Deployment
- Multi-Tenancy Support
- Monitor Ant Media Server with Datadog
- Clustering in Alibaba
- Playlist
- Kubernetes
- Time based One Time Password
- Kubernetes Autoscaling
- Kubernetes Ingress
- How to Install Ant Media Server on EKS
- Release Tests
- Spaceport Volumetric Video
- WebRTC Viewers Info
- Webhook Authentication for Publishing Streams
- Recording Streams
- How to Update Ant Media Server with Cloudformation
- How to Install Ant Media Server on GKE
- Ant Media Server on Docker Swarm
- Developer Quick Start
- Recording HLS, MP4 and how to recover
- Re-streaming update
- Git Branching
- UML Diagrams