MQ

 View Only
  • 1.  Native HA functionality on Openshift

    Posted 11 days ago

    Hello,

    I downloaded MQ Advanced container from "cp.icr.io" registry and trying to deploy Native HA cluster on Openshift (without CP4I). I'm getting an error:

    Error 93 creating queue manager: AMQ5708E: Native HA is unavailable.

    I looked at a similar thread, but I didn't understand several things:

    1. How License annotations can affect the way the container runs on Openshift? I don't think it has any permissions to read it's own metadata from API.
    2. Do I have to deploy licensing operator ? I followed the instruction and it runs on Openshift, but it doesn't look like it's doing something.
    3. Do I have to build my own image to use Natie HA and prebuilt images do not have this functionality?

    Thank you in advance.



    ------------------------------
    Alexander Lavrov
    ------------------------------


  • 2.  RE: Native HA functionality on Openshift

    IBM Champion
    Posted 10 days ago

    Hi,

    Don't know all the bits and pieces as we have never used Openshift to run Native HA, but I have assumed that license annotations are there only for the license metric server/container/something to track that your licensing info is up-to-date. Doesn't affect to the container. 

    Using Native HA with prebuilt images should be possible, have you used the operator to configure the Native HA

    At the end, you should have the following environment variables populated in the running container in order the Native HA setup to work:

    • name: MQ_NATIVE_HA
        value: "true"
      - name: MQ_NATIVE_HA_INSTANCE_0_NAME
        value: <instance 1 name>
      - name: MQ_NATIVE_HA_INSTANCE_0_REPLICATION_ADDRESS
        value: <instance 1 address and port>
      - name: MQ_NATIVE_HA_INSTANCE_1_NAME
        value: <instance 2 name>
      - name: MQ_NATIVE_HA_INSTANCE_1_REPLICATION_ADDRESS
        value: <instance 2 address and port>
      - name: MQ_NATIVE_HA_INSTANCE_2_NAME
        value: <instance 3 name>
      - name: MQ_NATIVE_HA_INSTANCE_2_REPLICATION_ADDRESS
        value: <instance 3 address and port>

    Hope this helps.



    ------------------------------
    Hermanni Pernaa
    ------------------------------



  • 3.  RE: Native HA functionality on Openshift

    Posted 8 days ago

    Hi,

    You will need more resources in Openshift to run Native HA (pvc, config maps, secrets, replica set).

    I recommend you to use the Helm Chart https://github.com/ibm-messaging/mq-helm/tree/main

    There is an example of running the chart in OpenShift.



    ------------------------------
    Andres Colodrero
    ------------------------------