| Name | Description | Default value |
|---|---|---|
| thread_pools | Thread pools options. | – |
| thread_pools.redis_thread_pool_size | Thread count to serve Redis requests. | – |
| thread_pools.sentinel_thread_pool_size | Thread count to serve sentinel requests. | – |
| groups.[] | Redis cluster to work with. | – |
| groups.[].config_name | Key name in secdist with options for this cluster. | – |
| groups.[].db | Name to refer to the cluster in components::Redis::GetClient(). | – |
| groups.[].sharding_strategy | One of RedisStandalone, RedisCluster, KeyShardCrc32, KeyShardTaximeterCrc32 or KeyShardGpsStorageDriver. Possible values: RedisCluster, KeyShardCrc32, KeyShardTaximeterCrc32, KeyShardGpsStorageDriver, RedisStandalone. | KeyShardTaximeterCrc32 |
| groups.[].allow_reads_from_master | Allows read requests and subscriptions to master instances. | false |
| groups.[].subscription_balancing | Configure load sampling for Redis subscription nodes. | – |
| groups.[].subscription_balancing.strategy | Redis node load metric to sample. Possible values: none, by_cpu_load, by_net_load. | none |
| groups.[].subscription_balancing.metrics_level | Full exports load and poll diagnostics. With basic or off, sampling continues without exporting these metrics. Possible values: off, basic, full. | basic |
| groups.[].subscription_balancing.load_poll_interval | Positive interval between INFO requests. | 5s |
| groups.[].subscription_balancing.load_max_age | Maximum sample age; at least twice load_poll_interval. | 15s |
| groups.[].enable_subscriptions | Enable subscriptions for this group using separate subscription connections. | false |
| groups.[].per_channel_statistics | Enables statistics for each redis pub/sub channel. | true |
| groups.[].topology_update_method | Topology update method for cluster databases. cluster_slots - use CLUSTER SLOTS command (default). cluster_shards - use CLUSTER SHARDS command. Possible values: cluster_slots, cluster_shards. | cluster_slots |
| groups.[].required | Required connection mode for the client. Possible values: no_wait, master, slave, master_or_slave, master_and_slave. | – |
| groups.[].max_disconnect_time | The maximum allowed time in seconds for a database host to be disconnected before it is considered unhealthy. Supported for Redis Cluster and Sentinel connections. For Redis Cluster, it should be greater than 2x cluster-node-timeout plus some additional time. | 35 |
| groups.[].refresh_topology_on_primary_unavailable | In Sentinel mode, request a rate-limited topology refresh when a primary-targeted command gets READONLY or cannot be sent to the primary. | false |
| groups.[].max_failed_shards | Maximum number or percent of failed shards allowed in GetComponentHealth check. 0 means all shards must be ready (default behavior). This only affects health checks, not WaitConnectedOnce. | – |
| groups.[].max_failed_shards.amount | Maximum number of failed shards allowed. | 0 |
| groups.[].max_failed_shards.percent | Maximum percent of failed shards allowed. | 0 |
| metrics_level | Set metrics detail level. Possible values: cluster, shard, instance. | instance |
| subscribe_groups.[] | Redis cluster to work with in subscribe mode. | – |
| subscribe_groups.[].config_name | Key name in secdist with options for this cluster. | – |
| subscribe_groups.[].db | Name to refer to the cluster in components::Redis::GetSubscribeClient(). | – |
| subscribe_groups.[].sharding_strategy | Either RedisCluster or KeyShardTaximeterCrc32. Possible values: RedisCluster, KeyShardTaximeterCrc32, RedisStandalone. | KeyShardTaximeterCrc32 |
| subscribe_groups.[].allow_reads_from_master | Allows subscriptions to master instance to distribute load. | false |
| subscribe_groups.[].topology_update_method | Topology update method for cluster databases. cluster_slots - use CLUSTER SLOTS command (default). cluster_shards - use CLUSTER SHARDS command. Possible values: cluster_slots, cluster_shards. | cluster_slots |
| subscribe_groups.[].subscription_balancing | Configure load sampling for Redis subscription nodes. | – |
| subscribe_groups.[].subscription_balancing.strategy | Redis node load metric to sample. Possible values: none, by_cpu_load, by_net_load. | none |
| subscribe_groups.[].subscription_balancing.metrics_level | Full exports load and poll diagnostics. With basic or off, sampling continues without exporting these metrics. Possible values: off, basic, full. | basic |
| subscribe_groups.[].subscription_balancing.load_poll_interval | Positive interval between INFO requests. | 5s |
| subscribe_groups.[].subscription_balancing.load_max_age | Maximum sample age; at least twice load_poll_interval. | 15s |
| subscribe_groups.[].per_channel_statistics | Enables statistics for each redis pub/sub channel. | true |
| subscribe_groups.[].required | Required connection mode for the subscription client. Possible values: no_wait, master, slave, master_or_slave, master_and_slave. | – |
| subscribe_groups.[].max_disconnect_time | The maximum allowed time in seconds for a database host to be disconnected before it is considered unhealthy. It depends on the cluster-node-timeout setting in the Redis/Valkey config and should be greater than 2x that value plus some additional time. | 35 |
| subscribe_groups.[].max_failed_shards | Maximum number or percent of failed shards allowed in GetComponentHealth check. 0 means all shards must be ready (default behavior). This only affects health checks, not WaitConnectedOnce. | – |
| subscribe_groups.[].max_failed_shards.amount | Maximum number of failed shards allowed. | 0 |
| subscribe_groups.[].max_failed_shards.percent | Maximum percent of failed shards allowed. | 0 |