Cloud Pak for Integration

 View Only
Expand all | Collapse all

Dynamic MQ Object creation on a running pod

  • 1.  Dynamic MQ Object creation on a running pod

    Posted Tue October 22, 2024 01:17 PM

    Hi Team,

    Is there a way to create objects from an mqsc or a script (this can be config map too)  on a running MQ instance on CP4i with out recycling the qmanager instance ?

    We would like to explore the options to be able to define objects dynamically on a qmanager while keeping the config maps in sync with new changes and without restarting the qmanager every time we increase depth or when we create new queues.

    Thanks,

    Madhuri 



    ------------------------------
    Madhuri Chadaram
    ------------------------------


  • 2.  RE: Dynamic MQ Object creation on a running pod

    Posted Thu October 24, 2024 09:32 PM

     Hello Madhuri,

    @Martin Evans has an example of doing just this, using an MQ service to run a long-running script that monitors the config map and runs the MQSC file only when the contents change. 

     It's part of the mq-gitops-samples repo, with the script itself at https://github.com/ibm-messaging/mq-gitops-samples/blob/main/queue-manager-deployment/components/scripts/start-mqsc.sh being created as an MQ service by another MQSC script at https://github.com/ibm-messaging/mq-gitops-samples/blob/cbf070b04b8ebf5b879a337db48bfb3be73e8aec/queue-manager-deployment/queue-managers/uniform-cluster-01/uniform/static-uc.mqsc#L4 .

     Hope this helps!

    -- Trevor D.



    ------------------------------
    Trevor Dolby
    IBM Expert Labs
    ------------------------------