userver
C++ Async Framework
Toggle main menu visibility
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
8
USERVER_NAMESPACE_BEGIN
9
10
namespace
storages::
redis
{
11
12
/// @brief Parameters for checking Redis cluster health
13
struct
HealthCheckParams
{
14
/// Wait mode for checking Redis cluster health
15
storages::
redis
::
WaitConnectedMode
mode
= storages
::
redis
::
WaitConnectedMode
::
kNoWait
;
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.
21
uint32_t
max_failed_shards_percent
{0};
22
};
23
24
}
// namespace storages::redis
25
26
USERVER_NAMESPACE_END
userver
storages
redis
health_check_param.hpp
Generated on
for userver by
Doxygen
1.17.0