-
Notifications
You must be signed in to change notification settings - Fork 96
Deleting all your data (DEV TESTING ONLY!)
If you've been working on something for a while, it's possible you might want to start fresh. In general, the process is to:
-
Shut down your rabbitmq, cassandra, elasticsearch, redis, hilary servers
-
Clear out RabbitMQ to ensure you don't have tasks hanging around:
$ rabbitmqctl stop_app $ rabbitmqctl reset $ rabbitmqctl start_app
-
Delete any persistent Redis files (dump.rdb) and flush Redis using the redis-cli flushall command
-
Delete the elasticsearch index on the file-system from the elasticsearch data directory
-
Delete the user-uploaded files, by default, these are on the same folder level als
3akai-ux
orHilary
-
Delete the 'oae' index from the Cassandra data directory, delete the cassandra commitlog file and everything inside the saved_caches directory as well $ ./bin/cqlsh cassandra> drop keyspace "oae"; $ rm -rf /var/lib/cassandra/*
-
Start rabbitmq, cassandra, elasticsearch and redis (not Hilary, wait for these components to become available again)
-
Start a single Hilary server so that it may recreate the Cassandra column families, rabbitmq queues, ElasticSearch index etc... without contention with other Hilary instances
-
Start the rest of your Hilary servers.