Configuring Disbatch 4.2
Copyright (c) 2016, 2019 by Ashley Willis.
Configure /etc/disbatch/config.json
- Copy
/etc/disbatch/config.json-exampleto/etc/disbatch/config.json - Make sure that only the process running Disbatch can read and edit
/etc/disbatch/config.json - Edit
/etc/disbatch/config.json- Change
mongohostto the URI of your MongoDB servers - Change
databaseto the MongoDB database name you are using for Disbatch - Ensure proper SSL settings in
attributes, or remove it if not using SSL - Change passwords in
authfor the respective MongoDB users, or delete the field or set its value tonullif not using MongoDB authentication - Set
pluginsto the name(s) of the plugins you want accessible for queue creation - Set
monitoringtofalseif you wantGET /monitoringto ignore checks - Set
balance.enabledtotrueif using QueueBalance - Uncomment values in
web_extensionsif needing to use deprecated routes - Set
activequeuesorignorequeuesper DEN if used - Remove the rest, which is optional and configured for development
- Change
See also Configuring and Using SSL with MongoDB and Configuring and Using SSL with the Disbatch Command Interface.
Create MongoDB users for Disbatch if using authentication
-
Configure the permissions your plugin needs in
/etc/disbatch/plugin-permissions.json. -
If your MongoDB
rootuser has a different name, passs that to--root_user. If no users exist yet, also pass--create_root. See the perldoc for more info.disbatch-create-users --config /etc/disbatch/config.json --root_user root