Cloud Pak for Integration

 View Only
  • 1.  How to increase MQ channel size on CP4I

    Posted Sat August 13, 2022 02:24 AM
    Dear Team,

    How to increase MQ channel size on cp4i platform.

    Currently I'm facing an issue with the existing mq channel. Sharing few screenshots.


    Kindly, give me resolution.

    Thanks

    ------------------------------
    Abhiram Emmadishetty
    ------------------------------


  • 2.  RE: How to increase MQ channel size on CP4I

    Posted Tue August 30, 2022 02:05 PM

    Hi Abhiram,

    The number of channels is controlled by the MaxChannels attribute of the Channels stanza in the qm.ini file.
    https://www.ibm.com/docs/en/ibm-mq/9.1?topic=information-channels-stanza-qmini-file

    The qm.ini file contents are declared in an OpenShift ConfigMap.
    The qm.ini file is mounted onto the pod under the ini key in the Queue Manager custom resource

    If there is an existing ConfigMap with the qm.ini file contents that is being mounted onto the pod, then you will need to add a Channels stanza to the file with the new MaxChannels value and perform a rolling restart of the the Queue Manager pods.
     e.g

     qm.ini: |-
        Channels:
          MaxChannels=200


    ------------------------------
    Peter Giathi
    ------------------------------



  • 3.  RE: How to increase MQ channel size on CP4I

    Posted Tue August 30, 2022 02:26 PM
      |   view attached
    In CP4I you have to modify the Queue Manager YAML to inject MQSC commands to modify the Channel/Queues/etc. You create a ConfigMap of the MQSC commands and configure the Queue Manager YAML to use that ConfigMap when creating the Queue Manager Pod. This is in the CP4I documentation

    ------------------------------
    Robert (Bobbee) Broderick
    Senior WebSphere Consultant
    IBM
    Madison AL
    917-453-6790
    ------------------------------



  • 4.  RE: How to increase MQ channel size on CP4I

    Posted Tue August 30, 2022 02:30 PM
    apiVersion: mq.ibm.com/v1beta1kind:
    QueueManagermetadata:  name: mqsc-ini-cp4ispec: 
    version: 9.2.0.1-r1-eus 
    license:    accept: false    
    license: L-RJON-BUVMQX   
    use: NonProduction 
    web:    enabled: true 
    queueManager:   
    name: "MQSCINI"   
    mqsc:   
    - configMap:       
    name: mqsc-ini-example        
    items:       
    - example1.mqsc       
    - example2.mqsc    
    ini:   
    - configMap:       
    name: mqsc-ini-example       
    items:       
    - example.ini   
    storage:     
    queueManager:       
    type: ephemeral


    ------------------------------
    Robert (Bobbee) Broderick
    Senior WebSphere Consultant
    IBM
    Madison AL
    917-453-6790
    ------------------------------



  • 5.  RE: How to increase MQ channel size on CP4I

    Posted Wed August 31, 2022 06:48 AM
    I think Bobbee is showing you how to increase the MAXMSGL (allowed size of a message) parameter of a channel (related to your earlier post) using MQSC. Peter is correct in stating that you need to change the mq.ini file to alter the number of allowed connections to the queue manager (via channels), related to the error you pasted above.

    Bobbee's example for setting up MQSC and the ini file might be little clearer with these example names:

    mqsc:   
    - configMap:       
    name: qm-mqsc-definitions
    items:       
    - queue-definitions.mqsc       
    - channel-definitions.mqsc    

    ini:   
    - configMap:       
    name: qm-ini-file
    items:       
    - qm.ini   



    ------------------------------
    Regards,

    Martin Evans
    IBM MQ Technical Product Manager
    ------------------------------