Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Elasticache -- How to flush node from console?

I have a number of Elasticache nodes running and would like to clear them. I know it's possible to do this programmatically but I'd like to use the AWS console instead.

How can I flush an Elasticache node using only the AWS console?

like image 634
Billy Blob Snortin Avatar asked May 10 '16 18:05

Billy Blob Snortin


People also ask

How do I clear AWS Redis cache?

What is the command to delete all keys from my redis cluster? FLUSHDB command – Delete all the keys of the currently selected DB. FLUSHALL command – Remove all the keys of all the existing databases, not just the currently selected one.

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.


2 Answers

Connect to your redis-cli with

redis-cli -h host -p port_number

After you connect, FLUSHALL

like image 142
abhilashv Avatar answered Sep 20 '22 18:09

abhilashv


The only way as i see it will be to reboot the node

like image 31
Shimon Tolts Avatar answered Sep 23 '22 18:09

Shimon Tolts