AWS ElastiCache Using Notes

Source: Internet
Author: User
Tags redis cluster aws elasticache aws management console

To create a Redis cache cluster using the AWS management console

Create a subnet group

To create a cluster in an Amazon VPC, you must specify a cache subnet group. ElastiCache Use this cache subnet group to select a subnet and an IP address within this subnet to relate to your cache node.

Create a security group

Use Amazon VPC security groups to control access to your cache cluster.

Create a parameter group

To create a Redis cache cluster using the AWS management console

Select the Redis engine

Specify cluster details

Configure Advanced Settings

View and start

Modifying a ElastiCache cache cluster

Connecting to a cluster node

To find an endpoint using the AWS Management Console

Click the number of nodes that the cluster has

Finding endpoints using the AWS CLI

$ AWS ElastiCache Describe-cache-clusters--cache-cluster-ID my-cache--show-cache-node-Info

Connect to a Redis cluster

Connect to a redis cluster using redis-cli

Installing GCC

sudo Yum Install GCC

Download the Compile REDIS-CLI utility

wget http://download.redis.io/redis-stable.tar.gztar xvzf redis-stable. Tar . gz$ CD Redis-make&& make install

Connect to a Redis cluster

6379

You are now connected to the cluster and can run Redis commands. The following is an example.

" Hello "     // Set Key "A" with a string value and no expiration ok> get a               // Get value for key "a" " Hello " > Get B               // Get value for key ' B ' results in Miss (nil)                > Quit               //  Exit from Redis-cli
Create a cache subnet group using the AWS CLI
$ AWS ElastiCache create-cache-subnet-Group     --cache-subnet-group-name Mycachesubnetgroup      "testing"--subnet-ids     subnet-53df9c3a

AWS ElastiCache Using Notes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.