nchan_benchmark_subscribers_per_channel

The `nchan_benchmark_subscribers_per_channel` directive sets the maximum number of concurrent subscribers for each channel in the Nchan module.

Syntaxnchan_benchmark_subscribers_per_channel number;
Defaultnone
Contextlocation
Arguments1

Description

The nchan_benchmark_subscribers_per_channel directive is a configuration option within the Nchan module that limits the number of concurrent subscribers allowed for each channel. This directive is primarily utilized during benchmarking to simulate real-world conditions where a specific maximum number of subscribers is imposed on the server, enabling developers to test the performance and scalability of their applications under defined limits. Setting this value helps in understanding how the channel performs when pushed to its limits in terms of subscriber connections.

Config Example

location /nchan {
    nchan_benchmark_subscribers_per_channel 100;
    nchan_pubsub;
}

Ensure that the value set does not exceed the application's expected maximum subscribers for accurate benchmarking.

Remember to remove or adjust this setting in production environments to avoid unintentional subscriber limits.

← Back to all directives