Clearing the cache (flushing) nightly
I have what I hope is a simple question.
I want to flush the cache (empty it) nightly at midnight.
I have a cron that will do this:
/opt/couchbase/bin/couchbase-cli bucket-flush -c 127.0.0.1:8091 --bucket=default
Do I have to do this on all 5 of the servers in the cluster, or if I do it on one will that clear/empty/flush all of them?
If I do only need to do this on one server is there a master or preferred server? I don't see anything like a master/preferred server in the docs or web interface, so I am guessing any server will do.
If I only have to flush on 1 server do I need to restart them all, or just the one I flushed?
When I tested this, the server I flushed (I only had one at the time) stopped working until I restarted it.
Thanks for your help.