Configuring a remote MongoDB (AEN 4.1.3)#
To configure your remote database to work with AEN server:
Stop the server, gateway and compute nodes:
sudo service wakari-server stop sudo service wakari-gateway stop sudo service wakari-compute stop
Open the
/opt/wakari/wakari-server/etc/wakari/config.json
file and create the MONGO_URL key. For the value parameter, add the database information.The final file should read:
{ "MONGO_URL": "mongodb://MONGO-USER:MONGO-PASSWORD@MONGO-URL:MONGO-PORT", "WAKARI_SERVER": "http://YOUR-IP", "USE_SES": false, "CDN": "http://YOUR-IP/static/", "ANON_USER": "anonymous" }
For more information about configuration keys, see Using configuration files.
Migrate the data from the former database into the new one. For more information, see the MongoDB documentation website.
After migration, restart the nodes:
sudo service wakari-server start sudo service wakari-gateway start sudo service wakari-compute start