WORKLOAD AUTOMATION COMMUNITY
  • Home
  • Blogs
  • Forum
  • Resources
  • Events
  • About
  • Contact
  • What's new

Optimizing resources with the affinity attribute

1/6/2025

0 Comments

 
Picture
​Efficient resource allocation and task synchronization are essential for workflow management. The affinity attribute ensures that tasks are run on the same workstation dynamically, improving performance and minimizing delays. This feature is especially valuable in environments using pool workstations.
What is Affinity?
The affinity attribute allocates tasks to run on the same workstation. This is set at the task level or the workflow level. It ensures multiple tasks dynamically share the same workstation, enhancing performance and simplifying resource management.
 
Key Benefits
Dynamic Resource Allocation: aligns tasks on the same dynamically chosen workstation.
Improved Workflow Efficiency: reduces overhead and enhances synchronization.
Resource Optimization: maximizes the use of workstation capabilities.
 
Affinity Requirements
Task Workflow Alignment: the tasks must belong to the same workflow.
Workstation Compatibility: the dynamic agents of the tasks must match. The workstation pools must either match or share members.
If these conditions are not met, the first task waits for 10 minutes (default) before failing.
 
Customization Options
Wait Time: set the UNO_WAITING_JOB_EXPIRE_TIMEOUT parameter in the “values.yaml” file to adjust the default 10-minute limit.
Monitoring Frequency: modify the UNO_WAITING_JOB_EXPIRE_FREQUENCY parameter to adjust the default 60+ second monitoring interval.
 
Priority in Definitions
Affinity can be added to:
Task Definitions: directly included during task configuration.
Workflow Definitions: applied for broader control.
Note: workflow-level definitions override task-level configurations.
 
Implementation Example:
Configure the definition as follows to run the tasks TASKDEF_1 and TASK2, run on workstation /WS_AGT_0 in the delta_pool:-
Picture
Conclusion
​

By leveraging the affinity attribute, tasks are run on the same workstation, reducing overhead and optimizing resource usage. Implement these strategies to enhance workflow reliability and guarantee optimal performances.

Picture
​Peddi Pranav - Technical Lead at HCL Software

Pranav became a member of HCL Software in August 2022 and currently contributes to the UnO Backend team. He specializes in technologies like Java, Spring Boot, RESTful Web Services, Hibernate, Microservices and MongoDB. Outside of work, he enjoys embarking on adventures to new destinations and tackling puzzles as a hobby.
0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    Archives

    July 2025
    June 2025
    May 2025
    March 2025
    February 2025
    January 2025
    December 2024
    November 2024
    October 2024
    September 2024
    August 2024
    July 2024
    June 2024
    May 2024
    April 2024
    March 2024
    February 2024
    January 2024
    October 2023
    August 2023
    July 2023
    June 2023
    May 2023
    April 2023
    March 2023
    February 2023
    January 2023
    December 2022
    September 2022
    August 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    June 2020
    May 2020
    April 2020
    March 2020
    January 2020
    December 2019
    November 2019
    October 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    July 2018
    June 2018
    May 2018
    April 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    October 2017
    September 2017
    August 2017
    July 2017
    June 2017
    May 2017

    Categories

    All
    Analytics
    Azure
    Business Applications
    Cloud
    Data Storage
    DevOps
    Monitoring & Reporting

    RSS Feed

www.hcltechsw.com
About HCL Software 
HCL Software is a division of HCL Technologies (HCL) that operates its primary software business. It develops, markets, sells, and supports over 20 product families in the areas of DevSecOps, Automation, Digital Solutions, Data Management, Marketing and Commerce, and Mainframes. HCL Software has offices and labs around the world to serve thousands of customers. Its mission is to drive ultimate customer success with their IT investments through relentless innovation of its products. For more information, To know more  please visit www.hcltechsw.com.  Copyright © 2024 HCL Technologies Limited
  • Home
  • Blogs
  • Forum
  • Resources
  • Events
  • About
  • Contact
  • What's new