# Load balance the workload across multiple instances in Instance group

**URL:** <https://forum.ansible.com/t/load-balance-the-workload-across-multiple-instances-in-instance-group/40843>\
**Category:** Get Help\
**Tags:** awx-operator, awx-project, awx\
**Created:** [March 7, 2025, 2:46pm UTC](https://forum.ansible.com/t/load-balance-the-workload-across-multiple-instances-in-instance-group/40843 "2025-03-07T14:46:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![prateektl](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/prateektl/32/8985_2.png) [@prateektl](https://forum.ansible.com/u/prateektl)\
**Post date:** [March 7, 2025, 2:46pm UTC](https://forum.ansible.com/t/load-balance-the-workload-across-multiple-instances-in-instance-group/40843/1 "2025-03-07T14:46:21Z")

</div>

Currently we use AWX 24.6.0 with operator 2.19.0 version. We have configured several servers as instance with Node Type as execution. We use this instance to run our Tasks, as it has the connectivity to the target servers.

Now we are creating workflow templates with parallel execution flows. And Below are the observations.

In the Workflow we have nearly 30+ templates integrated and when we trigger this Work flow template, we have configured the instance group as part of the inventory.

Now the instance group has 4 instances (execution node).

Instance\_group\_1 : instance\_A, instance\_B, instance\_C and instance\_D

What we have observed is that when the workflow is triggered, all the job templates are assigned to only one instance (execution node) and doesn’t get assigned to others.

The only scenario what we have seen is, if the assigned instance (execution node) goes does, the job template gets assigned to other instance (execution node).

What we are looking for is, if the load can be equally distributed across the 4 instance (execution node ) that is part of the instance group. Making the whole execution of the workflow template quicker.

---

<div class="post-metadata">

**Author:** ![nsavich](https://avatars.discourse-cdn.com/v4/letter/n/d78d45/32.png) [@nsavich](https://forum.ansible.com/u/nsavich)\
**Post date:** [March 7, 2025, 2:55pm UTC](https://forum.ansible.com/t/load-balance-the-workload-across-multiple-instances-in-instance-group/40843/2 "2025-03-07T14:55:56Z")

</div>

You might look into something called job slicing. This has worked effectively in our environment.

> **[17. Job Slicing — Ansible Tower User Guide v3.8.6](https://docs.ansible.com/ansible-tower/latest/html/userguide/job_slices.html)**

---

<div class="post-metadata">

**Author:** ![prateektl](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/prateektl/32/8985_2.png) [@prateektl](https://forum.ansible.com/u/prateektl)\
**Post date:** [March 7, 2025, 3:16pm UTC](https://forum.ansible.com/t/load-balance-the-workload-across-multiple-instances-in-instance-group/40843/3 "2025-03-07T15:16:09Z")

</div>

@nsavich let me explore and share the results. Thanks for suggesting.

---

<div class="post-metadata">

**Author:** ![prateektl](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/prateektl/32/8985_2.png) [@prateektl](https://forum.ansible.com/u/prateektl)\
**Post date:** [March 16, 2025, 3:41pm UTC](https://forum.ansible.com/t/load-balance-the-workload-across-multiple-instances-in-instance-group/40843/4 "2025-03-16T15:41:32Z")

</div>

@nsavich i explored the above suggestion you made. It actually helped me to load balance the work in a different approach. Since there is no direct approach of distributing the work at the instance level, i think we should approach this solution. The only drawback what i observed is, when the template is sliced and its triggered, a workflow is created. Which is fine, but once all the jobs are completed, there is no consolidated way to get the result. Its fragmented. Apart from this, it works like a charm.

Thanks again for the suggestion, Cheers.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [April 15, 2025, 3:42pm UTC](https://forum.ansible.com/t/load-balance-the-workload-across-multiple-instances-in-instance-group/40843/5 "2025-04-15T15:42:15Z")

</div>

Closed on April 15, 2025, 3:42pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
