Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to stop nodes in AWS ElastiCache cluster

I have an AWS account which is used for development. Because the developers are in one timezone, we switch off the resources after hours to conserve usage.

Is it possible to temporarily switch off nodes in elasticache cluster? all i found in cli reference was 'delete cluster': http://docs.aws.amazon.com/cli/latest/reference/elasticache/index.html

like image 761
zaitsman Avatar asked Oct 02 '17 23:10

zaitsman


People also ask

How do I delete a node in ElastiCache?

Using the ElastiCache console, you can only delete one node at a time, so choosing multiple nodes means that you can't use the Delete node button. The Delete Node page appears. To delete the node, complete the Delete Node page and choose Delete Node. To keep the node, choose Cancel.

What is the maximum number of cache nodes you can run in Amazon ElastiCache?

Q: How many nodes can I run per region in Amazon ElastiCache Memcached? You can run a maximum of 300 nodes per region.

How many Redis nodes are in a single ElastiCache cluster?

The node or shard limit can be increased to a maximum of 500 per cluster if the Redis engine version is 5.0.


1 Answers

ElastiCache clusters cannot be stopped. They can only be deleted and recreated. You can use this pattern to avoid paying for time when you're not using the cluster.

If you are using a Redis ElastiCache cluster, you can create a snapshot as the cluster is being deleted. Then, you can restore the cluster from the snapshot when you create it. This way, you preserve the data in the cluster.

The cluster endpoints are derived from a combination of

  • the cluster IDs,
  • the region,
  • the AWS account.

So as long as you delete and re-create clusters with those parts being constant, then the clusters will maintain the same endpoint.

like image 77
Matt Houser Avatar answered Oct 21 '22 18:10

Matt Houser