Creating a Memcached Cluster (Console) - Amazon ElastiCache

Creating a Memcached Cluster (Console)

When you use the Memcached engine, Amazon ElastiCache supports horizontally partitioning your data over multiple nodes. Memcached enables auto discovery so you don't need to keep track of the endpoints for each node. Memcached tracks each node's endpoint, updating the endpoint list as nodes are added and removed. All your application needs to interact with the cluster is the configuration endpoint. For more information on auto discovery, see Automatically Identify Nodes in your Memcached Cluster.

To create a Memcached cluster using the ElastiCache console:

  1. Sign in to the AWS Management Console and open the Amazon ElastiCache console at https://console.aws.amazon.com/elasticache/.

  2. From the list in the upper-right corner, choose the AWS Region that you want to launch this cluster in.

  3. Choose Memcached from the navigation pane.

  4. Choose Create.

  5. For Cluster engine, choose Memcached. Choosing Memcached creates a Memcached cluster that looks something like this. The number of nodes is determined by the number of nodes you choose in Step 5.f (up to a maximum of 20).

    Image: Memcached cluster with data partitioning

    Memcached cluster with data partitioning

  6. Complete the Memcached settings section.

    1. For Name, enter a name for your cluster.

      Cluster naming constraints are as follows:

      • Must contain 1–40 alphanumeric characters or hyphens.

      • Must begin with a letter.

      • Can't contain two consecutive hyphens.

      • Can't end with a hyphen.

    2. For Engine version compatibility, choose the Memcached engine version that you want this cluster to run. Unless you have a specific reason to run an older version, we recommend that you choose the latest version.

      Important

      You can upgrade to newer engine versions. For more information, see Upgrading Engine Versions. Any change in Memcached engine versions is a disruptive process in which you lose your cluster data.

    3. In Port, accept the default port, 11211. If you have a reason to use a different port, enter the port number.

    4. For Parameter group, choose the default parameter group, choose the parameter group that you want to use with this cluster, or choose Create new to create a new parameter group to use with this cluster.

      Parameter groups control the run-time parameters of your cluster. For more information on parameter groups, see Memcached Specific Parameters and Creating a Parameter Group.

    5. For Node type, click the down arrow ( ). In the Change node type dialog box, choose the Instance family of the node type that you want, choose the node type that you want to use for this cluster, and then choose Save.

      For more information, see Choosing Your Memcached Node Size.

    6. For Number of nodes, choose the number of nodes that you want for this cluster. You partition your data across the cluster's nodes.

      If you need to change the number of nodes later, scaling horizontally is quite easy with Memcached. For more information, see Scaling ElastiCache for Memcached Clusters

  7. Click Advanced Memcached settings and complete the section.

    1. For Subnet group, choose the subnet that you want to apply to this cluster.

      If you are Using Local Zones with ElastiCache , you must create or choose a subnet that is in the local zone.

      For more information, see Subnets and Subnet Groups.

    2. For Availability zone(s), you have two options:

      • No preference – ElastiCache chooses the Availability Zone for each node in your cluster.

      • Specify availability zones – Specify the Availability Zone for each node in your cluster.

        If you choose to specify the Availability Zones, for each node choose an Availability Zone at the right of the node name.

        We recommend locating your nodes in multiple Availability Zones for improved fault tolerance. For more information, see Mitigating Availability Zone Failures.

      For more information, see Choosing Regions and Availability Zones.

    3. For Security groups, choose the security groups that you want to apply to this cluster.

      For more information, see Amazon VPCs and ElastiCache Security.

    4. The Maintenance window is the time, generally an hour in length, each week when ElastiCache schedules system maintenance for your cluster. You can allow ElastiCache choose the day and time for your maintenance window (No preference), or you can choose the day, time, and duration yourself (Specify maintenance window). If you choose Specify maintenance window, choose the Start day, Start time, and Duration (in hours) for your maintenance window. All times are UCT times.

      For more information, see Managing Maintenance.

    5. For Notifications, choose an existing Amazon Simple Notification Service (Amazon SNS) topic, or choose manual ARN input and enter the topic Amazon Resource Name (ARN). Amazon SNS allows you to push notifications to Internet-connected smart devices. The default is to disable notifications. For more information, see https://aws.amazon.com/sns/.

  8. Review all your entries and choices, then go back and make any needed corrections. When you're ready, choose Create to launch your cluster.

As soon as your cluster's status is available, you can grant Amazon EC2 access to it, connect to it, and begin using it. For more information, see Authorize Access and Connect to a Cluster's Node.

Important

As soon as your cluster becomes available, you're billed for each hour or partial hour that the cluster is active, even if you're not actively using it. To stop incurring charges for this cluster, you must delete it. See Deleting a Cluster.