Man page - ocf_heartbeat_redis(7)
Packages contas this manual
- ocf_heartbeat_rabbitmq-cluster(7)
- ocf_heartbeat_smb-share(7)
- ocf_heartbeat_lvmlockd(7)
- ocf_heartbeat_openstack-floating-ip(7)
- ocf_heartbeat_lxc(7)
- ocf_heartbeat_slapd(7)
- ocf_heartbeat_docker(7)
- ocf_heartbeat_azure-events(7)
- ocf_heartbeat_awsvip(7)
- ocf_heartbeat_iface-bridge(7)
- ocf_heartbeat_mdraid(7)
- ocf_heartbeat_iface-macvlan(7)
- ocf_heartbeat_sg_persist(7)
- ocf_heartbeat_exportfs(7)
- ocf_heartbeat_pound(7)
- ocf_heartbeat_garbd(7)
- ocf_heartbeat_ipsec(7)
- ocf_heartbeat_vmware(7)
- ocf_heartbeat_anything(7)
- ocf_heartbeat_mysql-proxy(7)
- ocf_heartbeat_varnish(7)
- ocf_heartbeat_mariadb(7)
- sfex_init(8)
- ocf_heartbeat_dnsupdate(7)
- ocf_heartbeat_mpathpersist(7)
- ocf_heartbeat_conntrackd(7)
- ocf_heartbeat_nvmet-namespace(7)
- ocf_heartbeat_gcp-vpc-move-ip(7)
- ocf-tester(8)
- ocf_heartbeat_ovsmonitor(7)
- ocf_heartbeat_docker-compose(7)
- ocf_heartbeat_ids(7)
- ocf_heartbeat_asterisk(7)
- ocf_heartbeat_dhcpd(7)
- ocf_heartbeat_mysql(7)
- ocf_heartbeat_iscsi(7)
- ocf_heartbeat_galera(7)
- ocf_heartbeat_pingd(7)
- ocf_heartbeat_portblock(7)
- ocf_heartbeat_minio(7)
- ocf_heartbeat_nginx(7)
- ocf_heartbeat_jboss(7)
- ocf_heartbeat_oralsnr(7)
- ocf_heartbeat_dovecot(7)
- ocf_heartbeat_nfsnotify(7)
- ocf_heartbeat_crypt(7)
- ocf_heartbeat_fio(7)
- ocf_heartbeat_gcp-ilb(7)
- ocf_heartbeat_gcp-vpc-move-route(7)
- ocf_heartbeat_ethmonitor(7)
- ocf_heartbeat_nvmet-port(7)
- ocf_heartbeat_gcp-vpc-move-vip(7)
- ocf_heartbeat_vsftpd(7)
- ocf_heartbeat_openstack-virtual-ip(7)
- ocf_heartbeat_storage-mon(7)
- ocf_heartbeat_lxd-info(7)
- ocf_heartbeat_awseip(7)
- ocf_heartbeat_oracle(7)
- ocf_heartbeat_osceip(7)
- ocf_heartbeat_rabbitmq-server-ha(7)
- ocf_heartbeat_jira(7)
- ocf_heartbeat_symlink(7)
- ocf_heartbeat_scsi2reservation(7)
- ocf_heartbeat_rsyncd(7)
- ocf_heartbeat_ocivip(7)
- ocf_heartbeat_powervs-subnet(7)
- ocf_heartbeat_machine-info(7)
- ocf_heartbeat_tomcat(7)
- ocf_heartbeat_gcp-pd-move(7)
- ocf_heartbeat_aliyun-vpc-move-ip(7)
- ocf_heartbeat_nvmet-subsystem(7)
- ocf_heartbeat_oraasm(7)
- ocf_heartbeat_openstack-info(7)
- ocf_heartbeat_azure-lb(7)
- ocf_heartbeat_syslog-ng(7)
- ocf_heartbeat_redis(7)
- ocf_heartbeat_pgagent(7)
- ocf_heartbeat_rsyslog(7)
- ocf_heartbeat_aws-vpc-route53(7)
- ocf_heartbeat_vdo-vol(7)
- ocf_heartbeat_iface-vlan(7)
- ocf_heartbeat_azure-events-az(7)
- ocf_heartbeat_postfix(7)
- ocf_heartbeat_rkt(7)
- ocf_heartbeat_zabbixserver(7)
- ocf_heartbeat_corosync-qnetd(7)
- ocf_heartbeat_dummypy(7)
- ocf_heartbeat_clvm(7)
- ocf_heartbeat_nfsserver(7)
- ocf_heartbeat_named(7)
- ocf_heartbeat_aws-vpc-move-ip(7)
- ocf_heartbeat_nagios(7)
- ocf_heartbeat_sfex(7)
- ocf_heartbeat_podman(7)
- ocf_heartbeat_openstack-cinder-volume(7)
- ocf_heartbeat_pgsql(7)
- ocf_heartbeat_kamailio(7)
- ocf_heartbeat_db2(7)
- ocf_heartbeat_proftpd(7)
- ocf_heartbeat_apache(7)
apt-get install resource-agents
Manual
| OCF_HEARTBEAT_REDIS(7) | OCF resource agents | OCF_HEARTBEAT_REDIS(7) |
NAME
ocf_heartbeat_redis - Redis server
SYNOPSIS
redis [start | stop | status | monitor | promote | demote | meta-data | validate-all]
DESCRIPTION
Resource agent script for redis server.
This resource fully supports master/slave replication. The master preference of a node is determined by the 'slave_priority' parameter of the redis config. When taking the resource from 'unmanaged' to 'managed', the currently active master will be given a priority of 1000 (plus 1 for each active connection). The default 'slave_priority' is 100, so the master will stay master. For a slave to become master after converting the resource to managed, set a slave_priority greater than 1000.
SUPPORTED PARAMETERS
bin
(optional, string, default "/usr/bin/redis-server")
client_bin
(optional, string, default "/usr/bin/redis-cli")
config
(unique, optional, string, default "/etc/redis/redis.conf")
user
(optional, string, default "redis")
rundir
(unique, optional, string, default "/var/run/redis")
pidfile_name
(optional, string, default "redis-server.pid")
socket_name
(optional, string, default "redis.sock")
port
(optional, string, default "6379")
tunnel_host
Note that in order to enable replication traffic tunneling, parameter {tunnel_port_map} must be populated.
(optional, string, default "127.0.0.1")
tunnel_port_map
To be used when redis servers need to tunnel replication traffic. On every node where the redis resource is running, the redis server listens to a different port. Each redis server can access its peers for replication traffic via a tunnel accessible at {tunnel_host}:port.
The mapping the form of: pcmk1-name:port-for-redis1;pcmk2-name:port-for-redis2;pcmk3-name:port-for-redis3
where the redis resource started on node pcmk1-name would listen on port port-for-redis1
(optional, string, no default)
wait_last_known_master
(optional, boolean, default false)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
stop
status
monitor
monitor (Promoted role)
promote
demote
notify
validate-all
meta-data
EXAMPLE CRM SHELL
The following is an example configuration for a redis resource using the crm(8) shell:
primitive p_redis ocf:heartbeat:redis \
op monitor depth="0" timeout="60s" interval="45s" \
op monitor role="Promoted" depth="0" timeout="60s" interval="20s"
ms ms_redis p_redis \
meta notify="true" interleave="true"
EXAMPLE PCS
The following is an example configuration for a redis resource using pcs(8)
pcs resource create p_redis ocf:heartbeat:redis \
op monitor OCF_CHECK_LEVEL="0" timeout="60s" interval="45s" \
op monitor role="Promoted" OCF_CHECK_LEVEL="0" timeout="60s" interval="20s" promotable
SEE ALSO
http://clusterlabs.org/
AUTHOR
ClusterLabs contributors (see the resource agent source for information about individual authors)
| 08/24/2025 | resource-agents 4.16.0-3+deb13 |