Redis is deployed as a service in DigitalOcean with primary and standby nodes. It functions as a cache for a PostgreSQL database and does not include critical data.
Steps to Create a Redis Service in DigitalOcean:
-
Navigate to Managed Databases:
-
Go to the "Databases" section in the control panel.
-
Click on "Create Database."
-
-
Select Redis:
-
Choose Redis as the database engine.
-
Select the version:
Redis 7(Caching).
-
-
Configure Cluster Settings:
-
Choose the region (FRA1), node size, set Eviction policy as
allkeys-lru` -
Enable high availability by selecting primary and standby nodes.
-
Add trusted sources (IP addresses) that can access the Redis cluster.
-
-
Assign a name to Redis cluster (according to naming convention) and click "Create Database."
Redis Cluster Details:
|
Name |
Endpoint |
Port |
vCPU |
RAM |
Disk |
Version |
|---|---|---|---|---|---|---|
|
redis-db-prod |
redis-db.prod.rockengroup.com |
|
1 |
2 |
30 |
Caching 7 |
The communication between the application and the Redis cluster is exclusively routed through the internal VPC, with access to the public endpoint restricted.
Leave a Reply
You must be logged in to post a comment.