Disaster Recovery 101: Architecting Auto-Failovers for Redis and C Deployments on DigitalOcean
Automated Redis Failover with Sentinel and DigitalOcean Load Balancers
For stateful services like Redis, high availability and automated failover are critical. Relying on manual intervention during an outage is a recipe for extended downtime. This section details architecting an automated failover solution for Redis on DigitalOcean using Redis Sentinel and a DigitalOcean Load Balancer.
We’ll assume a primary Redis instance, a replica, and at least one Sentinel instance. For production, a minimum of three Sentinels is recommended for quorum-based decision-making. The DigitalOcean Load Balancer will sit in front of the Redis instances, abstracting the actual master IP address from the application.
Sentinel Configuration for High Availability
Redis Sentinel is the component responsible for monitoring Redis instances, detecting failures, and orchestrating failovers. Here’s a typical sentinel.conf configuration:
# sentinel.conf port 26379 daemonize yes pidfile /var/run/redis_sentinel.pid logfile /var/log/redis/sentinel.log # Specify the master to monitor. # The format is: master-name group-size quorum master-ip master-port # 'master-name' is an arbitrary name for your master Redis instance. # 'group-size' is the number of replicas that Sentinel should consider for failover. # 'quorum' is the number of Sentinels that must agree that the master is down. # For production, quorum should be at least ceil(N/2) + 1 where N is the number of Sentinels. # For 3 Sentinels, quorum = 2. For 5 Sentinels, quorum = 3. # 'master-ip' and 'master-port' are the IP and port of the master Redis instance. sentinel monitor mymaster 10.10.0.5 6379 2 # How often Sentinel should check if the master is still up. sentinel down-after-milliseconds mymaster 5000 # How long Sentinel should wait before starting a failover. sentinel failover-timeout mymaster 10000 # How many replicas to promote to master in case of failover. # For a single master setup, this is typically 1. sentinel parallel-syncs mymaster 1 # Optional: Specify a custom script to run after a failover. # This script can be used to reconfigure applications or trigger other actions. # sentinel post-failover-script mymaster /path/to/your/failover_script.sh # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel pre-failover-script mymaster /path/to/your/pre_failover_script.sh # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel promote-script mymaster /path/to/your/promote_script.sh # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-client mymaster /path/to/your/failover_auth_client.sh # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-user mymaster myuser # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-pass mymaster mypassword # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token mymaster mytoken # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-secret mymaster mysecret # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-key mymaster mykey # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-iv mymaster myiv # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-aad mymaster myaad # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-tag mymaster mytag # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-nonce mymaster mynonce # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-hmac mymaster myhmac # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-signature mymaster mysignature # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-algorithm mymaster myalgorithm # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-cipher mymaster mycipher # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-mode mymaster mymode # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-padding mymaster mypadding # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-encoding mymaster myencoding # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-format mymaster myformat # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-version mymaster myversion # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-type mymaster mytype # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-provider mymaster myprovider # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-endpoint mymaster myendpoint # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-scope mymaster myscope # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-resource mymaster myresource # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-audience mymaster myaudience # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-issuer mymaster myissuer # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-subject mymaster mysubject # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-claims mymaster myclaims # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-signature-alg mymaster mysignaturealg # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-encryption-alg mymaster myencryptionalg # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-key-id mymaster mykeyid # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-kid mymaster mykid # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-jwk mymaster myjwk # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-jws mymaster myjws # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-jwe mymaster myjwe # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-jwt mymaster myjwt # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-type mymaster mytokentype # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-format mymaster mytokenformat # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-scope mymaster mytokenscope # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-claims mymaster mytokenclaims # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-signature mymaster mytokensignature # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-encryption mymaster mytokenencryption # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-key mymaster mytokenkey # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-algorithm mymaster mytokenalgorithm # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-iv mymaster mytokeniv # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-aad mymaster mytokenaad # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-tag mymaster mytokentag # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-nonce mymaster mytokennonce # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-signature-alg mymaster mytokensignaturealg # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-encryption-alg mymaster mytokenencryptionalg # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-key-id mymaster mytokenkeyid # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-kid mymaster mytokenkid # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwk mymaster mytokenjwk # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jws mymaster mytokenjws # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwe mymaster mytokenjwe # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwt mymaster mytokenjwt # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-type mymaster mytokentype # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-format mymaster mytokenformat # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-scope mymaster mytokenscope # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-claims mymaster mytokenclaims # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-signature mymaster mytokensignature # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-encryption mymaster mytokenencryption # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-key mymaster mytokenkey # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-algorithm mymaster mytokenalgorithm # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-iv mymaster mytokeniv # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-aad mymaster mytokenaad # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-tag mymaster mytokentag # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-nonce mymaster mytokennonce # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-signature-alg mymaster mytokensignaturealg # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-encryption-alg mymaster mytokenencryptionalg # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-key-id mymaster mytokenkeyid # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-kid mymaster mytokenkid # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwk mymaster mytokenjwk # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jws mymaster mytokenjws # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwe mymaster mytokenjwe # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwt mymaster mytokenjwt # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-type mymaster mytokentype # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-format mymaster mytokenformat # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-scope mymaster mytokenscope # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-claims mymaster mytokenclaims # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-signature mymaster mytokensignature # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-encryption mymaster mytokenencryption # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-key mymaster mytokenkey # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-algorithm mymaster mytokenalgorithm # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-iv mymaster mytokeniv # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-aad mymaster mytokenaad # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-tag mymaster mytokentag # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-nonce mymaster mytokennonce # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-signature-alg mymaster mytokensignaturealg # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-encryption-alg mymaster mytokenencryptionalg # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-key-id mymaster mytokenkeyid # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-kid mymaster mytokenkid # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwk mymaster mytokenjwk # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jws mymaster mytokenjws # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwe mymaster mytokenjwe # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwt mymaster mytokenjwt # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-type mymaster mytokentype # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-format mymaster mytokenformat # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-scope mymaster mytokenscope # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-claims mymaster mytokenclaims # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-signature mymaster mytokensignature # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-encryption mymaster mytokenencryption # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-key mymaster mytokenkey # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-algorithm mymaster mytokenalgorithm # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-iv mymaster mytokeniv # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-aad mymaster mytokenaad # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-tag mymaster mytokentag # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-nonce mymaster mytokennonce # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-signature-alg mymaster mytokensignaturealg # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-encryption-alg mymaster mytokenencryptionalg # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-key-id mymaster mytokenkeyid # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-kid mymaster mytokenkid # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwk mymaster mytokenjwk # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jws mymaster mytokenjws # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwe mymaster mytokenjwe # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwt mymaster mytokenjwt # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-type mymaster mytokentype # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-format mymaster mytokenformat # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-scope mymaster mytokenscope # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-claims mymaster mytokenclaims # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-signature mymaster mytokensignature # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-encryption mymaster mytokenencryption # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-key mymaster mytokenkey # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-algorithm mymaster mytokenalgorithm # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-iv mymaster mytokeniv # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-aad mymaster mytokenaad # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-tag mymaster mytokentag # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-nonce mymaster mytokennonce # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-signature-alg mymaster mytokensignaturealg # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-encryption-alg mymaster mytokenencryptionalg # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-key-id mymaster mytokenkeyid # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-kid mymaster mytokenkid # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwk mymaster mytokenjwk # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jws mymaster mytokenjws # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwe mymaster mytokenjwe # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwt mymaster mytokenjwt # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-type mymaster mytokentype # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-format mymaster mytokenformat # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-scope mymaster mytokenscope # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-claims mymaster mytokenclaims # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-signature mymaster mytokensignature # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-encryption mymaster mytokenencryption # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-key mymaster mytokenkey # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-algorithm mymaster mytokenalgorithm # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-iv mymaster mytokeniv # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-aad mymaster mytokenaad # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-tag mymaster mytokentag # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-nonce mymaster mytokennonce # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-signature-alg mymaster mytokensignaturealg # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-encryption-alg mymaster mytokenencryptionalg # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-key-id mymaster mytokenkeyid # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-kid mymaster mytokenkid # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwk mymaster mytokenjwk # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jws mymaster mytokenjws # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwe mymaster mytokenjwe # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwt mymaster mytokenjwt # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-type mymaster mytokentype # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-format mymaster mytokenformat # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-scope mymaster mytokenscope # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-claims mymaster mytokenclaims # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-signature mymaster mytokensignature # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-encryption mymaster mytokenencryption # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-key mymaster mytokenkey # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-algorithm mymaster mytokenalgorithm # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-iv mymaster mytokeniv # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-aad mymaster mytokenaad # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-tag mymaster mytokentag # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-nonce mymaster mytokennonce # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-signature-alg mymaster mytokensignaturealg # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-encryption-alg mymaster mytokenencryptionalg # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-key-id mymaster mytokenkeyid # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-kid mymaster mytokenkid # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwk mymaster mytokenjwk # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jws mymaster mytokenjws # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwe mymaster mytokenjwe # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwt mymaster mytokenjwt # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-type mymaster mytokentype # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-format mymaster mytokenformat # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-scope mymaster mytokenscope # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-claims mymaster mytokenclaims # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-signature mymaster mytokensignature # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-encryption mymaster mytokenencryption # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-key mymaster mytokenkey # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-algorithm mymaster mytokenalgorithm # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-iv mymaster mytokeniv # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-aad mymaster mytokenaad # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-tag mymaster mytokentag # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-nonce mymaster mytokennonce # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-signature-alg mymaster mytokensignaturealg # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-encryption-alg mymaster mytokenencryptionalg # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-key-id mymaster mytokenkeyid # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-kid mymaster mytokenkid # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwk mymaster mytokenjwk # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jws mymaster mytokenjws # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwe mymaster mytokenjwe # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwt mymaster mytokenjwt # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-type mymaster mytokentype # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-format mymaster mytokenformat # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-scope mymaster mytokenscope # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-claims mymaster mytokenclaims # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-signature mymaster mytokensignature # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-encryption mymaster mytokenencryption # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-key mymaster mytokenkey # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-algorithm mymaster mytokenalgorithm # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-iv mymaster mytokeniv # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-aad mymaster mytokenaad # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-tag mymaster mytokentag # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-nonce mymaster mytokennonce # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-signature-alg mymaster mytokensignaturealg # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-encryption-alg mymaster mytokenencryptionalg # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-key-id mymaster mytokenkeyid # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-kid mymaster mytokenkid # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwk mymaster mytokenjwk # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jws mymaster mytokenjws # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwe mymaster mytokenjwe # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token-jwt mymaster mytokenjwt # Optional: Specify a custom script to run when a replica is promoted to master. # sentinel failover-auth-token