sentinel.conf: redis => redict

This commit is contained in:
Drew DeVault 2024-03-21 10:43:01 +01:00
parent 51a42a3728
commit b01802415d

View File

@ -9,15 +9,15 @@ protected-mode no
# The port that this sentinel instance will run on # The port that this sentinel instance will run on
port 26379 port 26379
# By default Redis Sentinel does not run as a daemon. Use 'yes' if you need it. # By default redict Sentinel does not run as a daemon. Use 'yes' if you need it.
# Note that Redis will write a pid file in /var/run/redis-sentinel.pid when # Note that redict will write a pid file in /var/run/redict-sentinel.pid when
# daemonized. # daemonized.
daemonize no daemonize no
# When running daemonized, Redis Sentinel writes a pid file in # When running daemonized, redict Sentinel writes a pid file in
# /var/run/redis-sentinel.pid by default. You can specify a custom pid file # /var/run/redict-sentinel.pid by default. You can specify a custom pid file
# location here. # location here.
pidfile /var/run/redis-sentinel.pid pidfile /var/run/redict-sentinel.pid
# Specify the server verbosity level. # Specify the server verbosity level.
# This can be one of: # This can be one of:
@ -67,12 +67,12 @@ logfile ""
# dir <working-directory> # dir <working-directory>
# Every long running process should have a well-defined working directory. # Every long running process should have a well-defined working directory.
# For Redis Sentinel to chdir to /tmp at startup is the simplest thing # For redict Sentinel to chdir to /tmp at startup is the simplest thing
# for the process to don't interfere with administrative tasks such as # for the process to don't interfere with administrative tasks such as
# unmounting filesystems. # unmounting filesystems.
dir /tmp dir /tmp
# sentinel monitor <master-name> <ip> <redis-port> <quorum> # sentinel monitor <master-name> <ip> <redict-port> <quorum>
# #
# Tells Sentinel to monitor this master, and to consider it in O_DOWN # Tells Sentinel to monitor this master, and to consider it in O_DOWN
# (Objectively Down) state only if at least <quorum> sentinels agree. # (Objectively Down) state only if at least <quorum> sentinels agree.
@ -94,16 +94,16 @@ sentinel monitor mymaster 127.0.0.1 6379 2
# sentinel auth-pass <master-name> <password> # sentinel auth-pass <master-name> <password>
# #
# Set the password to use to authenticate with the master and replicas. # Set the password to use to authenticate with the master and replicas.
# Useful if there is a password set in the Redis instances to monitor. # Useful if there is a password set in the redict instances to monitor.
# #
# Note that the master password is also used for replicas, so it is not # Note that the master password is also used for replicas, so it is not
# possible to set a different password in masters and replicas instances # possible to set a different password in masters and replicas instances
# if you want to be able to monitor these instances with Sentinel. # if you want to be able to monitor these instances with Sentinel.
# #
# However you can have Redis instances without the authentication enabled # However you can have redict instances without the authentication enabled
# mixed with Redis instances requiring the authentication (as long as the # mixed with redict instances requiring the authentication (as long as the
# password set is the same for all the instances requiring the password) as # password set is the same for all the instances requiring the password) as
# the AUTH command will have no effect in Redis instances with authentication # the AUTH command will have no effect in redict instances with authentication
# switched off. # switched off.
# #
# Example: # Example:
@ -113,10 +113,10 @@ sentinel monitor mymaster 127.0.0.1 6379 2
# sentinel auth-user <master-name> <username> # sentinel auth-user <master-name> <username>
# #
# This is useful in order to authenticate to instances having ACL capabilities, # This is useful in order to authenticate to instances having ACL capabilities,
# that is, running Redis 6.0 or greater. When just auth-pass is provided the # that is, running redict 6.0 or greater. When just auth-pass is provided the
# Sentinel instance will authenticate to Redis using the old "AUTH <pass>" # Sentinel instance will authenticate to redict using the old "AUTH <pass>"
# method. When also an username is provided, it will use "AUTH <user> <pass>". # method. When also an username is provided, it will use "AUTH <user> <pass>".
# In the Redis servers side, the ACL to provide just minimal access to # In the redict servers side, the ACL to provide just minimal access to
# Sentinel instances, should be configured along the following lines: # Sentinel instances, should be configured along the following lines:
# #
# user sentinel-user >somepassword +client +subscribe +publish \ # user sentinel-user >somepassword +client +subscribe +publish \
@ -132,8 +132,8 @@ sentinel monitor mymaster 127.0.0.1 6379 2
# Default is 30 seconds. # Default is 30 seconds.
sentinel down-after-milliseconds mymaster 30000 sentinel down-after-milliseconds mymaster 30000
# IMPORTANT NOTE: starting with Redis 6.2 ACL capability is supported for # IMPORTANT NOTE: starting with redict 6.2 ACL capability is supported for
# Sentinel mode, please refer to the Redis website https://redis.io/topics/acl # Sentinel mode, please refer to the redict website https://redict.io/topics/acl
# for more details. # for more details.
# Sentinel's ACL users are defined in the following format: # Sentinel's ACL users are defined in the following format:
@ -144,9 +144,9 @@ sentinel down-after-milliseconds mymaster 30000
# #
# user worker +@admin +@connection ~* on >ffa9203c493aa99 # user worker +@admin +@connection ~* on >ffa9203c493aa99
# #
# For more information about ACL configuration please refer to the Redis # For more information about ACL configuration please refer to the redict
# website at https://redis.io/topics/acl and redis server configuration # website at https://redict.io/topics/acl and redict server configuration
# template redis.conf. # template redict.conf.
# ACL LOG # ACL LOG
# #
@ -164,9 +164,9 @@ acllog-max-len 128
# ACL file, the server will refuse to start. # ACL file, the server will refuse to start.
# #
# The format of the external ACL user file is exactly the same as the # The format of the external ACL user file is exactly the same as the
# format that is used inside redis.conf to describe users. # format that is used inside redict.conf to describe users.
# #
# aclfile /etc/redis/sentinel-users.acl # aclfile /etc/redict/sentinel-users.acl
# requirepass <password> # requirepass <password>
# #
@ -174,9 +174,9 @@ acllog-max-len 128
# so Sentinel will try to authenticate with the same password to all the # so Sentinel will try to authenticate with the same password to all the
# other Sentinels. So you need to configure all your Sentinels in a given # other Sentinels. So you need to configure all your Sentinels in a given
# group with the same "requirepass" password. Check the following documentation # group with the same "requirepass" password. Check the following documentation
# for more info: https://redis.io/topics/sentinel # for more info: https://redict.io/topics/sentinel
# #
# IMPORTANT NOTE: starting with Redis 6.2 "requirepass" is a compatibility # IMPORTANT NOTE: starting with redict 6.2 "requirepass" is a compatibility
# layer on top of the ACL system. The option effect will be just setting # layer on top of the ACL system. The option effect will be just setting
# the password for the default user. Clients will still authenticate using # the password for the default user. Clients will still authenticate using
# AUTH <password> as usually, or more explicitly with AUTH default <password> # AUTH <password> as usually, or more explicitly with AUTH default <password>
@ -259,7 +259,7 @@ sentinel failover-timeout mymaster 180000
# generated in the WARNING level (for instance -sdown, -odown, and so forth). # generated in the WARNING level (for instance -sdown, -odown, and so forth).
# This script should notify the system administrator via email, SMS, or any # This script should notify the system administrator via email, SMS, or any
# other messaging system, that there is something wrong with the monitored # other messaging system, that there is something wrong with the monitored
# Redis systems. # redict systems.
# #
# The script is called with just two arguments: the first is the event type # The script is called with just two arguments: the first is the event type
# and the second the event description. # and the second the event description.
@ -269,7 +269,7 @@ sentinel failover-timeout mymaster 180000
# #
# Example: # Example:
# #
# sentinel notification-script mymaster /var/redis/notify.sh # sentinel notification-script mymaster /var/redict/notify.sh
# CLIENTS RECONFIGURATION SCRIPT # CLIENTS RECONFIGURATION SCRIPT
# #
@ -294,7 +294,7 @@ sentinel failover-timeout mymaster 180000
# #
# Example: # Example:
# #
# sentinel client-reconfig-script mymaster /var/redis/reconfig.sh # sentinel client-reconfig-script mymaster /var/redict/reconfig.sh
# SECURITY # SECURITY
# #
@ -305,13 +305,13 @@ sentinel failover-timeout mymaster 180000
sentinel deny-scripts-reconfig yes sentinel deny-scripts-reconfig yes
# REDIS COMMANDS RENAMING (DEPRECATED) # redict COMMANDS RENAMING (DEPRECATED)
# #
# WARNING: avoid using this option if possible, instead use ACLs. # WARNING: avoid using this option if possible, instead use ACLs.
# #
# Sometimes the Redis server has certain commands, that are needed for Sentinel # Sometimes the redict server has certain commands, that are needed for Sentinel
# to work correctly, renamed to unguessable strings. This is often the case # to work correctly, renamed to unguessable strings. This is often the case
# of CONFIG and SLAVEOF in the context of providers that provide Redis as # of CONFIG and SLAVEOF in the context of providers that provide redict as
# a service, and don't want the customers to reconfigure the instances outside # a service, and don't want the customers to reconfigure the instances outside
# of the administration console. # of the administration console.
# #
@ -335,7 +335,7 @@ sentinel deny-scripts-reconfig yes
# HOSTNAMES SUPPORT # HOSTNAMES SUPPORT
# #
# Normally Sentinel uses only IP addresses and requires SENTINEL MONITOR # Normally Sentinel uses only IP addresses and requires SENTINEL MONITOR
# to specify an IP address. Also, it requires the Redis replica-announce-ip # to specify an IP address. Also, it requires the redict replica-announce-ip
# keyword to specify only IP addresses. # keyword to specify only IP addresses.
# #
# You may enable hostnames support by enabling resolve-hostnames. Note # You may enable hostnames support by enabling resolve-hostnames. Note