aboutsummaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-12-16 08:20:50 +0100
committerGitHub <noreply@github.com>2016-12-16 08:20:50 +0100
commit57e629e154749a7e5e9787f05590073ca21e53f5 (patch)
treea165b882965fd3c02e37a85a661d683197bc4f6f /app
parentbe8033bf12b8545183870325755df0a2ffc80f8b (diff)
parent881b0578e782e947706124a4e1d625a3dd3ddc1c (diff)
downloadwallabag-57e629e154749a7e5e9787f05590073ca21e53f5.tar.gz
wallabag-57e629e154749a7e5e9787f05590073ca21e53f5.tar.zst
wallabag-57e629e154749a7e5e9787f05590073ca21e53f5.zip
Merge pull request #2690 from wallabag/improve-rmq-config
Added QoS for RabbitMQ
Diffstat (limited to 'app')
-rw-r--r--app/config/config.yml8
-rw-r--r--app/config/parameters.yml.dist1
2 files changed, 9 insertions, 0 deletions
diff --git a/app/config/config.yml b/app/config/config.yml
index d52f37c8..591b5294 100644
--- a/app/config/config.yml
+++ b/app/config/config.yml
@@ -300,6 +300,7 @@ old_sound_rabbit_mq:
300 queue_options: 300 queue_options:
301 name: 'wallabag.import.pocket' 301 name: 'wallabag.import.pocket'
302 callback: wallabag_import.consumer.amqp.pocket 302 callback: wallabag_import.consumer.amqp.pocket
303 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
303 import_readability: 304 import_readability:
304 connection: default 305 connection: default
305 exchange_options: 306 exchange_options:
@@ -308,6 +309,7 @@ old_sound_rabbit_mq:
308 queue_options: 309 queue_options:
309 name: 'wallabag.import.readability' 310 name: 'wallabag.import.readability'
310 callback: wallabag_import.consumer.amqp.readability 311 callback: wallabag_import.consumer.amqp.readability
312 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
311 import_instapaper: 313 import_instapaper:
312 connection: default 314 connection: default
313 exchange_options: 315 exchange_options:
@@ -316,6 +318,7 @@ old_sound_rabbit_mq:
316 queue_options: 318 queue_options:
317 name: 'wallabag.import.instapaper' 319 name: 'wallabag.import.instapaper'
318 callback: wallabag_import.consumer.amqp.instapaper 320 callback: wallabag_import.consumer.amqp.instapaper
321 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
319 import_pinboard: 322 import_pinboard:
320 connection: default 323 connection: default
321 exchange_options: 324 exchange_options:
@@ -324,6 +327,7 @@ old_sound_rabbit_mq:
324 queue_options: 327 queue_options:
325 name: 'wallabag.import.pinboard' 328 name: 'wallabag.import.pinboard'
326 callback: wallabag_import.consumer.amqp.pinboard 329 callback: wallabag_import.consumer.amqp.pinboard
330 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
327 import_wallabag_v1: 331 import_wallabag_v1:
328 connection: default 332 connection: default
329 exchange_options: 333 exchange_options:
@@ -332,6 +336,7 @@ old_sound_rabbit_mq:
332 queue_options: 336 queue_options:
333 name: 'wallabag.import.wallabag_v1' 337 name: 'wallabag.import.wallabag_v1'
334 callback: wallabag_import.consumer.amqp.wallabag_v1 338 callback: wallabag_import.consumer.amqp.wallabag_v1
339 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
335 import_wallabag_v2: 340 import_wallabag_v2:
336 connection: default 341 connection: default
337 exchange_options: 342 exchange_options:
@@ -340,6 +345,7 @@ old_sound_rabbit_mq:
340 queue_options: 345 queue_options:
341 name: 'wallabag.import.wallabag_v2' 346 name: 'wallabag.import.wallabag_v2'
342 callback: wallabag_import.consumer.amqp.wallabag_v2 347 callback: wallabag_import.consumer.amqp.wallabag_v2
348 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
343 import_firefox: 349 import_firefox:
344 connection: default 350 connection: default
345 exchange_options: 351 exchange_options:
@@ -348,6 +354,7 @@ old_sound_rabbit_mq:
348 queue_options: 354 queue_options:
349 name: 'wallabag.import.firefox' 355 name: 'wallabag.import.firefox'
350 callback: wallabag_import.consumer.amqp.firefox 356 callback: wallabag_import.consumer.amqp.firefox
357 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
351 import_chrome: 358 import_chrome:
352 connection: default 359 connection: default
353 exchange_options: 360 exchange_options:
@@ -356,6 +363,7 @@ old_sound_rabbit_mq:
356 queue_options: 363 queue_options:
357 name: 'wallabag.import.chrome' 364 name: 'wallabag.import.chrome'
358 callback: wallabag_import.consumer.amqp.chrome 365 callback: wallabag_import.consumer.amqp.chrome
366 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
359 367
360fos_js_routing: 368fos_js_routing:
361 routes_to_expose: 369 routes_to_expose:
diff --git a/app/config/parameters.yml.dist b/app/config/parameters.yml.dist
index a4dc0bde..97f51ed1 100644
--- a/app/config/parameters.yml.dist
+++ b/app/config/parameters.yml.dist
@@ -49,6 +49,7 @@ parameters:
49 rabbitmq_port: 5672 49 rabbitmq_port: 5672
50 rabbitmq_user: guest 50 rabbitmq_user: guest
51 rabbitmq_password: guest 51 rabbitmq_password: guest
52 rabbitmq_prefetch_count: 10
52 53
53 # Redis processing 54 # Redis processing
54 redis_scheme: tcp 55 redis_scheme: tcp