Amazon ElastiCache

Create ElastiCache for Redis database and Memcache memory caching

Amazon ElastiCache is a serverless, Redis- and Memcached-compatible caching service delivering real-time, cost-optimized performance for modern applications.

Creating a Memcached ElastiCache instance

  1. In the DuploCloud Portal, navigate to Cloud Services -> Database.

  2. Select the ElastiCache tab, and click Add. The Create a ElastiCache page displays.

  3. Provide the database Name.

  4. Select the number of replicas in the Replicas field.

  5. In the Type list box, select Memcached.

  6. Select the Memcache Version.

  7. Select the node size in the Size list box.

  8. Click Create. The Memcached ElastiCache instance is created.

Pass the cache endpoint to your application through the Environment Variables via the AWS Service.

Creating a Redis ElastiCache instance

  1. In the DuploCloud Portal, navigate to Cloud Services -> Database.

  2. Select the ElastiCache tab, and click Add. The Create an ElastiCache page displays.

  1. Provide the database Name.

  2. Select the number of Replicas.

  3. Optionally, if you selected more than 2 replicas, enable Automatic Failover. When automatic failover is enabled and the primary Redis node in the cluster fails, one of the read replicas is automatically promoted to become the new primary node.

  4. Optionally, enable Cluster Mode.

  5. In the Type field, select Redis.

  6. In the Size list box, select the node size.

  7. Optionally, complete the Redis Version, Parameter Group Name, KMS (Optional), Encryption At Transit, Snapshot Name, Snapshot ARNs, and Snapshot Retention Limit fields.

  8. Optionally, click the CloudWatch link above the Log Delivery Configuration field to configure the Redis instance to deliver its engine logs to Amazon CloudWatch Logs. The Add CloudWatch Logs: Log Delivery Configuration pane displays. Complete the Log Format, Log Type, and Log Group fields. Click Add Config. The configuration is added to the Log Delivery Configuration field.

  1. Click Create. The Redis database instance is created

Troubleshooting Redis Connection Issues in AWS

When a Redis instance in an AWS environment is experiencing connection issues, ensure the Security Group (SG) configuration allows VPN traffic to port 6379. Then, using the nc command, verify the Redis instance's accessibility.

If you encounter local DNS resolution problems, consider changing your DNS provider or connecting directly using the Redis instance's IP address, which can be obtained via the dig command.

For persistent DNS issues, resetting your router or using external DNS query tools may help. If other troubleshooting steps fail, exploring AWS network interfaces can offer additional insights.

Last updated

Logo

© DuploCloud, Inc. All rights reserved. DuploCloud trademarks used herein are registered trademarks of DuploCloud and affiliates