"use strict";
var prefix = '';
module.exports = {
"type": "daemon", //tells the composer whether this is the config for a service or a daemon
"dbs": [ //tells the composer what databases does this service user
{
prefix: prefix,
name: "esClient",
es: true
},
{
prefix: prefix,
name: "myDatabase",
multitenant: false,
mongo: true
}
],
"esIndexes": {
"master": ["test_intersection"],
"profile": ["clean"]
},
prerequisites: { //requirements for High Availability mode
cpu: '',
memory: ''
},
serviceName: "aggregator", //the name of our daemon
serviceGroup: "411AGG", //the name of the daemon group
servicePort: 4060, //the port where the daemon will run
"errors": {}, //list of errors that can be returned by this daemon
"schema": {
"buildMasterIndex": { //name of the daemon job
"mw": __dirname + "/lib/mw/master.js", //business logic of the job
"_apiInfo": {
"l": "Build Master Index"
}
},
"cleanUpProfileIndex": {
"mw": __dirname + "/lib/mw/profile.js",
"_apiInfo": {
"l": "Clean Profile Cities, Features & Categories from Autocomplete Indexes"
}
},
"buildProfileAccessoriesIndex": {
"mw": __dirname + "/lib/mw/profile.js",
"_apiInfo": {
"l": "Build Profile Categories, Cities, Features and Auto Complete Indexes"
}
},
"buildProfilecategoryCitiesIndex": {
"mw": __dirname + "/lib/mw/profile.js",
"_apiInfo": {
"l": "Build Profile Category_cities Indexes"
}
},
"buildProfileIndex": {
"mw": __dirname + "/lib/mw/profile.js",
"_apiInfo": {
"l": "Build Profile Addresses and Autocomplete Indexes"
}
},
"fullTest": {
"mw": __dirname + "/lib/mw/fullRun.js",
"_apiInfo": {
"l": "Build Both Master and Profile Indexes"
}
}
}
}; |