diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-08-08 16:22:03 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-08-08 16:22:03 +0200 |
| commit | 8fc543cd4773965a231b8b00e80730f5130fedd4 (patch) | |
| tree | ad2d6d876bf622a1a71d7df71bac5e23457ba39d | |
| parent | 10f425d24daef16f3abb15d2e6212996f2817a90 (diff) | |
| download | processor-8fc543cd4773965a231b8b00e80730f5130fedd4.tar.gz processor-8fc543cd4773965a231b8b00e80730f5130fedd4.zip | |
output config on boot, assert analyze queue
| -rw-r--r-- | worker.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -105,12 +105,18 @@ amqp.connect(RABBITMQ_URI).then(async (rabbit) => { const ch = await rabbit.createChannel(); await ch.assertQueue(QUEUE, { durable: true }); await ch.assertQueue(QUEUE + "_failed", { durable: true }); + await ch.assertQueue(ANALYZE_QUEUE, { durable: true }); // as long as the queue is filled, msg are not ACKed // server sends as long as there are less than `prefetch` unACKed await ch.prefetch(BATCHSIZE); const model = require("../orm/model")(seq, Seq); + logger.info("configuration", { + QUEUE, BATCHSIZE, CHUNKSIZE, MAXCONNS, LOAD_TIMEOUT, IDLE_TIMEOUT, + DOANALYZEMATCH, ANALYZE_QUEUE + }); + // performance logging let load_timer = undefined, idle_timer = undefined, |
