App Connect

 View Only
  • 1.  Significance of Additional Instance in bar file, when deploying it in CP4I

    Posted Wed September 29, 2021 05:16 AM
    Hi,

    If I mention Additional Instances greater than 1 in bar file and deploy it in CP4I but keeping pod as 1 , will it really process more than 1 thread or additional instances will not be having any impact on CP4I environment and only number of pods defines the number of threads?

    ------------------------------
    Thanks,
    Santhosh Ramanathan
    ------------------------------


  • 2.  RE: Significance of Additional Instance in bar file, when deploying it in CP4I

    Posted Wed September 29, 2021 01:21 PM
    Hi,

    I don't have experience with CP4I but I hope that setting additional instances is independent of an underlying runtime. So If you set it to more than 1, than I would expect that a flow would run with more than one thread regardless you run it on OpenShift, Virtual server or bare metal.

    ------------------------------
    Martin Citron
    Prague
    ------------------------------



  • 3.  RE: Significance of Additional Instance in bar file, when deploying it in CP4I

    Posted Thu September 30, 2021 04:52 AM
    Hi Santhosh,

    If you have threads that are I/O bound, very light on CPU or running infrequently - having more threads in a container might make better use of the CPU allocated to it. However, you need consider whether you will max-out the CPU allocated to the container and cause contention, if that happens it might be better to consider running multiple Pods with less threads and using the Horizontal Pod Autoscaler to cope with spikes.

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

    Martin Evans
    Integration Architect
    IBM Expert Labs
    https://ibm.com/expertlabs
    ------------------------------



  • 4.  RE: Significance of Additional Instance in bar file, when deploying it in CP4I

    Posted Thu September 30, 2021 10:09 AM
    Thanks @Martin Citron and @Martin Evans .. So the additional instance mentioned in bar file level is still be effective on CP4I and pods provide additional thread capacity on OpenShift layer?​​

    ------------------------------
    Thanks,
    Santhosh Ramanathan
    ------------------------------



  • 5.  RE: Significance of Additional Instance in bar file, when deploying it in CP4I

    Posted Thu September 30, 2021 10:33 AM
    Yes, the CPU limits you place on the container are analogous to those that you would set on a VM. So if you really wanted to you could scale a container vertically and add threads, but that kind of flies in the face of an elastically scalable container platform. That said, increasing the number of instances/threads for a flow that is spending time waiting for I/O could make better use of a Pod that is not getting near to 100% of its CPU allocation and increase throughput.

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

    Martin Evans
    Integration Architect
    IBM Expert Labs
    https://ibm.com/expertlabs
    ------------------------------