Guest User

Untitled

a guest
Apr 23rd, 2018
1,199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. [rabbitmq]
  2. host = HOST
  3. username = USERNAME
  4. password = PASSWORD
  5. vhost=/VHOST
  6. port=PORT
  7. queue=stock
  8. compression=Off
  9.  
  10. [exchange]
  11. name=exports
  12. type=direct
  13. durable=On
  14.  
  15. [queuesettings]
  16. routingkey=stock
  17. messagettl=10000
  18. deadLetterExchange=exports.dl
  19. deadLetterroutingkey=stock
  20. priority=10
  21.  
  22. 2018/04/23 11:35:54 Connecting RabbitMQ...
  23. 2018/04/23 11:35:54 Connected.
  24. 2018/04/23 11:35:54 Opening channel...
  25. 2018/04/23 11:35:54 Done.
  26. 2018/04/23 11:35:54 Setting QoS...
  27. 2018/04/23 11:35:54 Succeeded setting QoS.
  28. 2018/04/23 11:35:54 Declaring queue "stock"...
  29. 2018/04/23 11:35:54 Registering consumer...
  30. 2018/04/23 11:35:54 failed to register a consumer: Exception (504) Reason: "channel/connection is not open"
  31.  
  32. old_sound_rabbit_mq:
  33. producers:
  34. exports:
  35. connection: default
  36. exchange_options:
  37. name: 'exports'
  38. type: direct
  39. exports_dl:
  40. connection: default
  41. exchange_options:
  42. name: 'exports.dl'
  43. type: direct
  44.  
  45. consumers:
  46. stock_dead_letter:
  47. connection: default
  48. exchange_options:
  49. name: exports.dl
  50. type: direct
  51. queue_options:
  52. name: stock.dl
  53. routing_keys:
  54. - stock
  55. arguments:
  56. x-dead-letter-exchange: ['S', 'exports']
  57. x-dead-letter-routing-key: ['S', 'stock']
  58. x-message-ttl: ['I', 60000]
  59. callback: amqp.consumers.exports.stock
  60.  
  61. multiple_consumers:
  62. exports:
  63. connection: default
  64. exchange_options:
  65. name: 'exports'
  66. type: direct
  67. queues:
  68. stock:
  69. name: stock
  70. callback: amqp.consumers.exports.stock
  71. routing_keys:
  72. - stock
  73. arguments:
  74. x-dead-letter-exchange: ['S', 'exports.dl']
  75. x-dead-letter-routing-key: ['S', 'stock']
Add Comment
Please, Sign In to add comment