busy
The 'busy' directive in the NGINX RTMP module controls handling of simultaneous connections during high load periods.
Description
The 'busy' directive is part of the configuration for applications using the NGINX RTMP module, designed to manage resource allocation efficiently when faced with multiple incoming publish or play requests. It helps limit the number of simultaneous streams that can be processed at any given time, thereby effectively managing server loads and preventing overload situations which can lead to service degradation. When the server is marked as busy, new connections may be temporarily rejected until existing connections are settled, ultimately aiming for a balanced performance during peak activity.
Config Example
application myapp {
live on;
busy on;
}Ensure that the directive does not adversely affect legitimate users during peak times by misconfiguring limits.
Be careful when setting this directive alongside other rate-limiting configurations, as they may conflict.
Testing the server under load conditions is recommended to determine an appropriate setting for the busy directive.