Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Activate it in all configuration files mentioned below

In server-config for PaltformService and PlatfromEngine

Enable enableDeadLetterExchange in messageQueue section of server-config.json

"messageQueue": {
"host": "localhost",
"port": 5672,
"user": "",
"password": "",
"prefetchCount": 5,
"enableDeadLetterExchange":false
},

In Deamon Agent and In Agent

Enable enableDeadLetterExchange in mqConfig section of Config.json

In PlatformInsightsWebHook

Enable app.enableDeadLetterExchange in webhook_subscriber.properties

2.Restart all services after property changes


How to use it

  • One user activates DLX, application will create "iRecover" Exchange name with type "fanout" in RabbitMq
  • INSIGHTS_RECOVER_QUEUE will be created.
  • Declaration of DLX in RabbitMQ


Queue
Image Modified
Exchange
Image Modified
Agent/

...

WebHook Queue
Image Modified

  • When any exception occurs during processing of messages then Insights application Reject that message and it will send to DLX Queue
  • Message in INSIGHTS_RECOVER_QUEUE of DLX contain in following format

Image Modified

Upgrading from older version of Insights

    • Stop All Agent
    • Consume all data from queue
    • Stop Engine, Daemon Agent and platform service
    • Delete all existing queue
    • Activate DLX mention in above section
    • start all services

Deactivating DLX

    • Stop All Agent
    • Consume all data from queue
    • Stop Engine, Daemon Agent and platform service
    • Delete all existing queue
    • Deactivate DLX by disabling enableDeadLetterExchange to false in server-config.json,
  • Agnets
    • Agents config.json and daemon agent config.json
    • Start all services