Billy Blob Snortin
Billy Blob Snortin

Reputation: 1201

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?

Upvotes: 18

Views: 45547

Answers (5)

Sivaram Rasathurai
Sivaram Rasathurai

Reputation: 6333

This is possible from AWS console. enter image description here

Click connect to cache enter image description here

Click run

then execute the below command to clear the cache

FLUSHALL

You will see OK from console

Double check with below command

keys *

Output will be empty

Upvotes: 0

papam
papam

Reputation: 1

The correct answer is - "NO, you can't." There is no way to flush from the AWS console. You have to connect with Redis tools, eg cli, to Redis and then flush.

Upvotes: 0

mondaini
mondaini

Reputation: 137

It's not possible to run from the AWS Console, but you can clear the cache running FLUSHALL connecting using telnet:

telnet HOST PORT

After you connect, run FLUSHALL.

telnet host123.0001.use1.cache.amazonaws.com 6379
Trying 172.0.1.1...
Connected to host123.0001.use1.cache.amazonaws.com.
The escape character is '^]'.
FLUSHALL
+OK

Upvotes: 1

abhilashv
abhilashv

Reputation: 1482

Connect to your redis-cli with

redis-cli -h host -p port_number

After you connect, FLUSHALL

Upvotes: 56

Shimon Tolts
Shimon Tolts

Reputation: 1692

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

Upvotes: 7

Related Questions