Menu
Amazon ElastiCache
User Guide (API Version 2015-02-02)

Creating a Cluster (Console): Memcached

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 Node Auto Discovery (Memcached).

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 dropdown in the upper right corner, choose the region 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 will create 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. In Name, type in a name for your cluster.

      Cluster naming constraints

      • Must contain from 1 to 20 alphanumeric characters or hyphens.

      • Must begin with a letter.

      • Cannot contain two consecutive hyphens.

      • Cannot end with a hyphen.

    2. For Engine version compatibility, choose the Memcached engine version 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, type the port number.

    4. For Parameter group, choose the default parameter group, choose the parameter group 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 you want, choose the node type you want to use for this cluster, and then choose Save.

      For more information, see Choosing Your Node Size.

    6. For Number of nodes, choose the number of nodes you want for this cluster. You will 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 Memcached

  7. Click Advanced Memcached settings and complete the section.

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

      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 chose to specify the Availability Zones, for each node choose an Availability Zone from the list to the right of each 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 you want to apply to this cluster.

      For more information, see ElastiCache and Security Groups.

    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 Maintenance Window.

    5. For Notifications, choose an existing Amazon Simple Notification Service (Amazon SNS) topic, or choose manual ARN input and type in 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 Step 4: Authorize Access and Step 5: 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.