vhost_traffic_status_limit_check_duplicate
The `vhost_traffic_status_limit_check_duplicate` directive controls whether to check for duplicate entries when handling traffic status limits.
Description
The vhost_traffic_status_limit_check_duplicate directive is used to specify a flag that enables or disables the check for duplicate traffic limit entries for virtual hosts. When set to 'on', the module checks whether a new traffic status limit request would result in duplicate entries in the management control for traffic limits, preventing potential issues such as over-counting or conflicting limits when multiple configuration sources are applied. Conversely, when the flag is set to 'off', this check is bypassed, which could lead to multiple entries with the same parameters being written to the system, possibly creating unexpected behavior in traffic management systems.
This directive can be utilized within contexts such as http, server, or location, allowing for flexibility based on various hierarchical configurations. This means it can be applied globally to all virtual hosts, set on a per-server basis, or limited to specific URL locations within server configurations. Its proper use is essential for correct operations and ensuring that traffic limits are enforced accurately, especially in high traffic environments where resource management is critical.
Config Example
http {
vhost_traffic_status_zone;
vhost_traffic_status_limit_check_duplicate on;
server {
listen 80;
server_name example.com;
location / {
proxy_pass http://backend;
}
}
}Setting this directive to 'off' may allow duplicate entries which can lead to traffic limit conflicts.
Ensure that the directive is not set multiple times in conflicting contexts (http, server, location) to prevent unexpected behavior.