Set batch queries log path

This commit is contained in:
Daniel García Aubert 2016-09-29 15:37:14 +02:00
parent 2cce19c3ff
commit 59e5c10f85
5 changed files with 5 additions and 1 deletions

View File

@ -209,7 +209,7 @@ function App() {
var isBatchProcess = process.argv.indexOf('--no-batch') === -1; var isBatchProcess = process.argv.indexOf('--no-batch') === -1;
if (global.settings.environment !== 'test' && isBatchProcess) { if (global.settings.environment !== 'test' && isBatchProcess) {
app.batch = batchFactory(metadataBackend, redisConfig, statsd_client); app.batch = batchFactory(metadataBackend, redisConfig, statsd_client, global.settings.batch_log_filename);
app.batch.start(); app.batch.start();
} }

View File

@ -30,6 +30,7 @@ module.exports.db_host = 'localhost';
module.exports.db_port = '5432'; module.exports.db_port = '5432';
module.exports.db_batch_port = '5432'; module.exports.db_batch_port = '5432';
module.exports.finished_jobs_ttl_in_seconds = 2 * 3600; // 2 hours module.exports.finished_jobs_ttl_in_seconds = 2 * 3600; // 2 hours
module.exports.batch_log_filename = 'logs/batch-queries.log';
// Max database connections in the pool // Max database connections in the pool
// Subsequent connections will wait for a free slot. // Subsequent connections will wait for a free slot.
// NOTE: not used by OGR-mediated accesses // NOTE: not used by OGR-mediated accesses

View File

@ -31,6 +31,7 @@ module.exports.db_host = 'localhost';
module.exports.db_port = '6432'; module.exports.db_port = '6432';
module.exports.db_batch_port = '5432'; module.exports.db_batch_port = '5432';
module.exports.finished_jobs_ttl_in_seconds = 2 * 3600; // 2 hours module.exports.finished_jobs_ttl_in_seconds = 2 * 3600; // 2 hours
module.exports.batch_log_filename = 'logs/batch-queries.log';
// Max database connections in the pool // Max database connections in the pool
// Subsequent connections will wait for a free slot.i // Subsequent connections will wait for a free slot.i
// NOTE: not used by OGR-mediated accesses // NOTE: not used by OGR-mediated accesses

View File

@ -31,6 +31,7 @@ module.exports.db_host = 'localhost';
module.exports.db_port = '6432'; module.exports.db_port = '6432';
module.exports.db_batch_port = '5432'; module.exports.db_batch_port = '5432';
module.exports.finished_jobs_ttl_in_seconds = 2 * 3600; // 2 hours module.exports.finished_jobs_ttl_in_seconds = 2 * 3600; // 2 hours
module.exports.batch_log_filename = 'logs/batch-queries.log';
// Max database connections in the pool // Max database connections in the pool
// Subsequent connections will wait for a free slot. // Subsequent connections will wait for a free slot.
// NOTE: not used by OGR-mediated accesses // NOTE: not used by OGR-mediated accesses

View File

@ -28,6 +28,7 @@ module.exports.db_host = 'localhost';
module.exports.db_port = '5432'; module.exports.db_port = '5432';
module.exports.db_batch_port = '5432'; module.exports.db_batch_port = '5432';
module.exports.finished_jobs_ttl_in_seconds = 2 * 3600; // 2 hours module.exports.finished_jobs_ttl_in_seconds = 2 * 3600; // 2 hours
module.exports.batch_log_filename = 'logs/batch-queries.log';
// Max database connections in the pool // Max database connections in the pool
// Subsequent connections will wait for a free slot. // Subsequent connections will wait for a free slot.
// NOTE: not used by OGR-mediated accesses // NOTE: not used by OGR-mediated accesses