boost::redis::sentinel_config

Configuration values to use when using Sentinel.

Synopsis

Declared in <boost/redis/config.hpp>

struct sentinel_config;

Data Members

Name

Description

addresses

A list of (hostname, port) pairs where the Sentinels are listening.

master_name

The name of the master to connect to, as configured in the sentinel monitor statement in sentinel.conf.

use_ssl

Whether connections to Sentinels should use TLS or not. Does not affect connections to masters.

setup

A request to be sent to Sentinels upon connection establishment.

resolve_timeout

Time span that the Sentinel resolve operation is allowed to elapse. Does not affect connections to masters and replicas, controlled by config::resolve_timeout.

connect_timeout

Time span that the Sentinel connect operation is allowed to elapse. Does not affect connections to masters and replicas, controlled by config::connect_timeout.

ssl_handshake_timeout

Time span that the Sentinel TLS handshake operation is allowed to elapse. Does not affect connections to masters and replicas, controlled by config::ssl_handshake_timeout.

request_timeout

Time span that the Sentinel request/response exchange is allowed to elapse. Includes executing the commands in setup and the commands required to resolve the server's address.

server_role

Whether to connect to a Redis master or to a replica.

Created with MrDocs