In an automated orchestration environment, precise control over parallel process execution is crucial when managing multiple workflows or tasks. This is where resources come into play, representing limited units that workflows or tasks can reserve and consume during run time. What is a resource? In HCL universal orchestrator, a resource is a consumable entity that limits how many tasks or workflows can run simultaneously based on its available quantity. This helps the system run efficiently by controlling access to shared components that are finite in number. Without such restrictions, multiple tasks may attempt to use the same resource at the same time, potentially leading to conflicts or failures. Resources help avoid such scenarios by managing these limitations effectively. Why are resources necessary? Resources are essential for managing equitable use of shared infrastructure and preventing overloading. HCL universal orchestrator ensures the following benefits when resources are defined and linked to tasks or workflows: · Controlled concurrency – Only selected number of tasks run simultaneously. · Resource sharing – multiple workflows can share a resource if designed to do so. · Conflict avoidance – Workflows or tasks wait until the required resource units are available. · Efficient scheduling – System utilization improves without bottlenecks. Consider resources as a parking space with limited slots, only a certain number of vehicles (workflows or tasks) can be parked (run) at a given point in time and the remaining vehicles need to wait until a spot is available. Defining resources using CLI Use the orchestration CLI command to define a new resource: ocli model new resource Then complete the following template: Kind: Resource Def: Folder: <mandatory> Name: <mandatory> Workstation: <optional> Description: <optional> Quantity: <mandatory> Resources Once defined or created, the resource can be referenced in your workflow or task definitions. Managing resources using the UI You can also create and manage resources from the graphical designer UI. Steps to create a new resource:
Conclusion Resources are a powerful mechanism to manage concurrency and ensure optimal usage of shared infrastructure in orchestration systems. Whether you are building tasks using CLI or UI, leveraging resource constraints can lead to a more predictable, balanced, and reliable operating environment.
0 Comments
Your comment will be posted after it is approved.
Leave a Reply. |
Archives
June 2025
Categories
All
|