Is Redis for PCF right for your enterprise?
Warning: Redis for PCF v2.0 is no longer supported because it has reached the End of General Support (EOGS) phase as defined by the Support Lifecycle Policy. To stay up to date with the latest software and security updates, upgrade to a supported version.
Page last updated:
This topic provides recommended use cases for Redis for Pivotal Cloud Foundry (PCF) and information for determining the product’s fit for your enterprise’s use case.
On-Demand plans are configured by default for cache use cases but can also be used as a datastore.
Dedicated-VM and Shared-VM plans are designed for datastore use cases.
Note: The Shared-VM service should only be used for development and testing. Do not use for production.
If you use dedicated VMs, then migrate to the on-demand service plan
or back up data before upgrading to Redis for PCF v2.0 to prevent data loss
in Redis deployments used as persistent storage.
If you are upgrading from Redis for PCF v1.14.3 or earlier, you must run the
upgrade-all-service-instances errand after upgrading.
Redis can be used in many different ways, including:
- Key/value store: For strings and more complex data structures including Hashes, Lists, Sets, and Sorted Sets
- Session cache: Persistence enabled preservation of state
- Full page cache: Persistence enabled preservation of state
- Database cache: Middle-tier database caching to speed up common queries
- Data ingestion: Because Redis is in memory, it can ingest data very quickly
- Message queues: List and set operations.
POP, and blocking queue commands.
- Leaderboards and counting: Increments and decrements sets and sorted sets
- Pub/Sub: Built in publish and subscribe operations:
The Redis for PCF team maintains a monthly Service Level Objective (SLO) of 99.95% uptime for the Redis for PCF offering on Pivotal Web Services. This is provided as a benchmark. SLOs for separate offerings of the Redis for PCF service vary based on variables such as infrastructure, networking, and relevant policies around security upgrades.
For descriptions of the Redis for PCF service offerings, see:
- The Shared-VM plan is not recommended for production use.
- The Dedicated-VM plan is removed in v2.0.
- If you have any dedicated-VM instances you must migrate to the on-demand service plan before upgrading to Redis for PCF v2.0. For information about migrating to on-demand service plans, see Migrating from dedicated-vm service plans to on-demand service plans in the Pivotal Support knowledge base.
Review the following table to determine if Redis for PCF has the features needed to support your enterprise.
|Availability||All Redis for PCF services are single nodes without clustering capabilities.
This means that planned maintenance jobs (e.g., upgrades) can result in 2–10 minutes of downtime,
depending on the nature of the upgrade.
Unplanned downtime (e.g., VM failure) also affects the Redis service.
Redis for PCF has been used successfully in enterprise-ready apps that can tolerate downtime. Pre-existing data is not lost during downtime with the default persistence configuration. Successful apps include those where the downtime is passively handled or where the app handles failover logic.
|Recommended Use Cases
Support for Multiple AZs
|Failure Recovery||VM failures and process failures are handled automatically by BOSH and Redis for PCF. Manual backup and restore instructions are available for on-demand and shared-VM Redis services. Automatic backup capabilities are enabled for on-demand and shared-VM Redis services.||
Manually Backing Up and Restoring Redis for Pivotal Cloud Foundry
Configuring Automated Service Backups
|Isolation||Isolation is provided when using the On-Demand service. Individual apps and workflows should have their own Redis for PCF instance to maximize isolation.|
|Day 2 Operations||More Information|
|Resource Planning||Operators can configure the number of VMs and the size of those VMs. For the On-Demand service, the operator does this by creating plans with specific VM sizes and quotas for each plan. For the Shared-VM service, the number and size of VMs are pre-provisioned by the operator. BOSH errands used for registration, upgrade and cleanup use short-lived VMs that cannot be configured but can be turned on or off.||
On-Demand Resource Planning
|Health Monitoring||The On-Demand service VMs emit metrics. These include Redis-specific metrics and Redis for PCF metrics. Guidance on critical metrics and alerting levels is captured with the Redis for PCF Key Performance Indicators (KPIs).||
Key Performance Indicators
|Scalability||For the On-Demand Service, the operator can configure three plans with different resource sizes. The operator can also scale up the VM size associated with the plan. Additionally, the operator can increase the quota, which caps the number of instances allowed for each On-Demand plan. To prevent data loss, only scaling up is supported. For the Shared-VM Service, the operators can change the Redis instance memory limit as well as change the instance limit. To prevent data loss, only scaling up is supported.||
Scaling the On-Demand Service
|Logging||All Redis services emit logs. Operators can configure syslog forwarding to a remote destination. This enables viewing logs from every VM in the Redis for PCF deployment in one place, effective troubleshooting when logs are lost on the source VM, and setting up alerts for important error logs to monitor the deployment.||Configuring syslog forwarding|
|Customization||The On-Demand service can be configured to best fit the needs of a specific app. The Shared-VM service cannot be customized.||Configuring the On-Demand service|
|Upgrades||For information about preparing an upgrade and about understanding the effects on your Redis for PCF and other services, see Upgrading Redis for PCF. Redis for PCF upgrades run a post deployment BOSH errand called smoke tests to validate the success of the upgrade.||
|Encrypted Communication in Transit||Redis for PCF has been tested with the IPsec Add-on for PCF. Beyond that Redis for PCF does not provide additional encryption on top of Redis.||
Securing Data in Transit with the IPsec add-on|
OS Redis Security
Redis for PCF supports configuring multiple availability zones (AZs). However, assigning multiple AZs to Redis instances does not guarantee high availability as clustered Redis is not supported. Redis instances operate as single nodes.
- On-Demand plans can be configured to deploy instances to any AZ.
- Shared-VM instances run on a single node in the AZ in which the tile is deployed.