Is it possible to stop nodes in AWS ElastiCache cluster

这一生的挚爱 提交于 2019-12-21 12:03:39

问题


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


回答1:


At this time there is not a way to STOP and EMR cluster in the same sense you can with EC2 instances. The EMR cluster uses instance-store volumes and the EC2 start/stop feature relies on the use of EBS volumes which are not appropriate for high-performance, low-latency HDFS utilization.

The best way to simulate this behavior is to store the data in S3 and then just ingest as a start up step of the cluster then save back to S3 when done.

Documentation Reference:

https://forums.aws.amazon.com/thread.jspa?threadID=149772

Hope it helps.

EDIT1:

If you want to maintain the same dns, you can use the API/CLI to update the elastic cluster.

Reference:

http://docs.aws.amazon.com/cli/latest/reference/es/update-elasticsearch-domain-config.html

Hope it helps.




回答2:


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.



来源:https://stackoverflow.com/questions/46535278/is-it-possible-to-stop-nodes-in-aws-elasticache-cluster

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!