userver: userver/storages/redis/health_check_param.hpp Source File
Loading...
Searching...
No Matches
health_check_param.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/storages/redis/health_check_param.hpp
4/// @brief @copybrief storages::redis::HealthCheckParams
5
6#include <userver/storages/redis/wait_connected_mode.hpp>
7
8USERVER_NAMESPACE_BEGIN
9
10namespace storages::redis {
11
12/// @brief Parameters for checking Redis cluster health
14 /// Wait mode for checking Redis cluster health
16 /// Maximum number of failed shards allowed.
17 /// 0 means all shards must be ready.
18 uint32_t max_failed_shards{0};
19 /// Maximum percent of failed shards allowed.
20 /// 0 means all shards must be ready.
22};
23
24} // namespace storages::redis
25
26USERVER_NAMESPACE_END