Join the Customer Advisory Board

WebSphere & Liberty CAB

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  worm manager vs alert manager

    Posted Thu March 31, 2022 06:25 AM
    Hello,
    I am a WAS Administrator and recently a developer asked me to define work managers.
    I was reading about async beans and work managers and alert managers, but I can not find a place that explains me well what is the real relationship between the 'number of Alert threads' in the work manager configuration and the work that is really started.
    I understood that it is these alert threads that wake up the thread in the work manager thread pool and makes it initiate the work. Is it right?
    And if so, what starts the alert? I suppose it is controlled somehow by some application module since there are no schedulers defined in this server. I saw also some time manager definitions, but not sure they are related with this work managers.
    Can anyone help me understand this better?

    ------------------------------
    JOAO PEDRO ALEXANDRE
    ------------------------------


  • 2.  RE: worm manager vs alert manager

    Posted Fri April 01, 2022 03:21 AM
    Hello Joao,

    Some information in WAS 8.5

    - https://www.ibm.com/docs/en/was/8.5.5?topic=applications-developing-asynchronous-beans

    When you are relating the work managers with the alert managers, do you mean this?

    https://www.ibm.com/docs/en/was/8.5.5?topic=scopes-developing-asynchronous

    In was 9.5 seems diferent

    https://www.ibm.com/docs/en/was/9.0.5?topic=environment-administering-concurrency

    https://www.ibm.com/docs/en/was/9.0.5?topic=applications-developing-concurrency

    Hope this helps.

    regards,

    ------------------------------
    Gabriel Aberasturi
    Versia tecnologias emergentes
    ------------------------------



  • 3.  RE: worm manager vs alert manager

    Posted Fri April 01, 2022 06:02 AM
    Hello Gabriel,
    Yes, that documentation help me to understand. 
    Thanks.
    Best regards,
    Joao Pedro Alexandre

    ------------------------------
    JOAO PEDRO ALEXANDRE
    ------------------------------



  • 4.  RE: worm manager vs alert manager

    Posted Tue April 05, 2022 05:43 PM
    Hi Joao Pedro, if you need some more information, here's potentially some more documentation I received from a WAS developer:

    "Work Managers do not have alert threads and alert managers.  The documentation of the setting is here:
    https://www.ibm.com/docs/en/was/8.5.5?topic=beans-configuring-work-managers

    To summarize, a WorkManager uses its main thread pool to run Work.  It uses a separate thread pool to run Alarms."

    Hope this helps as well.

    Sergio.

    ------------------------------
    Sergio Costa
    Software Development Manager
    IBM
    Durham NC
    9194549089
    ------------------------------



  • 5.  RE: worm manager vs alert manager

    Posted Wed April 06, 2022 05:03 AM
    I will check that documentation to clarify some of the doubts.
    Thanks, Sergio.

    ------------------------------
    JOAO PEDRO ALEXANDRE
    ------------------------------



  • 6.  RE: worm manager vs alert manager

    Posted Wed April 06, 2022 06:18 AM
    I was reading all the documentation that was suggested and the conclusion that I reached is that I am in the hands of the developer, I have to speak with him and try to understand how he programmed this work that is initiated in the workmanager thread pool. How does it start? What schedules the work? Is it some message that arrives at some queue? Is it some subscription on a Topic? Or some other Event from an event listener?
    An alarm is associated with a work manager that is associated with some asynchronous scope, the alarm runs java code at a given time interval, but again what it does and if it is even used by the developer I can only know talking with him to tell me what is the architecture of this application and what do what.
    I am monitoring the work manager thread pools and got to a conclusion that in one of them I need to increase the max threads setting. Since I still do not know what starts the work or even if the alamManager is being used, I do not know if I need to monitor the Alarms. I did not find alarm thread pools in the Thread Pools PMI, so Is suppose they are not used. I am an infrastructure administrator, and my concern here is to create the necessary alarmistic to help us to define a baseline and identify problems when some metrics reach some values that are not 'normal' compared to the baseline we defined.

    ------------------------------
    JOAO PEDRO ALEXANDRE
    ------------------------------



  • 7.  RE: worm manager vs alert manager

    Posted Wed April 06, 2022 10:11 AM
    It sounds good. Let us know if we can be of further help after you talk to the developer(s).  Good luck!

    Sergio.

    ------------------------------
    Sergio Costa
    Software Development Manager
    IBM
    Durham NC
    9194549089
    ------------------------------