nchan_redis_cluster_recovery_delay_min
The nchan_redis_cluster_recovery_delay_min directive specifies the minimum delay before a Redis cluster node recovery process begins in Nchan.
Description
The nchan_redis_cluster_recovery_delay_min directive allows you to set a minimal delay period for recovering a node in a Redis Cluster when using Nchan's pub/sub messaging system. When a failure occurs and a node becomes unresponsive, this directive helps to control the recovery behavior by specifying a duration that must elapse before the node will be marked as available for reconnection attempts. This can be particularly useful in environments with fluctuating connectivity, ensuring that the system does not prematurely attempt to reconnect to a node that may still be unstable. This parameter can help prevent unnecessary high-frequency retry attempts that could lead to further complications or overloading the cluster.
Config Example
upstream nchan_redis {
server redis1:6379;
server redis2:6379;
nchan_redis_cluster_recovery_delay_min 5s;
}Setting this value too low can cause frequent unnecessary reconnections.
If set too high, it can delay recovery and message propagation.
This directive should be configured according to the specific network stability of the deployment environment.