Best Practices for Operating Redis for PCF
This topic is for PCF operators. It introduces some best practices, but does not provide details about operation.
Pivotal recommends that operators do the following:
- Resource Allocation — Work with app developers to anticipate memory requirements and to configure VM sizes. Redis for PCF is configured by default with small VMs. For information about configuring VM sizes, see Configure Redis Service Plans.
- Logs — Configure a syslog output. Storing logs in an external service helps operators debug issues both current and historical.
- Monitoring — Set up a monitoring dashboard for metrics to track the health of the installation.
- Backing Up Data — When using Redis for persistence, configure automatic backups so that data can be restored in an emergency. Validate the backed-up data with a test restore.
You can back up Redis for PCF instances in two way:
- Configure automatic backups to be run for each instance, across both service plans. For information about setting up automatic backups, see Configure Backups.
- Create manual backups of individual instances. For information about how to make manual backups of instances, see Manual Backup and Restore of Redis for PCF.
Redis for PCF emits Redis metrics via the firehose. Details here
Syslog can be forwarded to an external log service.
The following example shows syslog message:
Nov 15 17:05:01 10.0.24.10 audispd: [job=dedicated-node index=4] node=7bfe8b1b-6c fd-4d33-b704-c9214ce6bb3e type=USER_ACCT msg=audit(1479229501.290:86): pid=6655 ui d=0 auid=4294967295 ses=4294967295 msg='op=PAM:accounting acct="root" exe="/usr/sbi n/cron" hostname=? addr=? terminal=cron res=success'
For information about how to set up syslog output, see Configure Syslog Output.
Redis for PCF has smoke tests that are run as a post-install errand by Ops Manager. Information on what they do is here. They can be run by the operator via
bosh run errand smoke-tests.