# Adjust Parallelism in circle.yml

**URL:** <https://discuss.circleci.com/t/adjust-parallelism-in-circle-yml/1833>\
**Category:** Build Environment\
**Tags:** parallelism\
**Created:** [January 30, 2016, 9:11pm UTC](https://discuss.circleci.com/t/adjust-parallelism-in-circle-yml/1833 "2016-01-30T21:11:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![j-po](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/j-po/32/1314_2.png) [@j-po](https://discuss.circleci.com/u/j-po)\
**Post date:** [January 30, 2016, 9:11pm UTC](https://discuss.circleci.com/t/adjust-parallelism-in-circle-yml/1833/1 "2016-01-30T21:11:14Z")

</div>

I’m testing out custom parallelism in my branch, but in the meantime would prefer for builds on the rest of the repo not take up extra containers they’re not using (I’ve checked; there’s no automatic gain from adding containers because of how our test runner works). Is there a way to automatically set number of containers at build time (i.e. in circle.yml) or at least only for a single branch?

(Also, the “paralellism” tag here on the Discuss site is misspelled–should be “parallelism” 🙂 .)

---

<div class="post-metadata">

**Author:** ![pwnall](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/pwnall/32/13352_2.png) [@pwnall](https://discuss.circleci.com/u/pwnall)\
**Post date:** [July 7, 2016, 6:59pm UTC](https://discuss.circleci.com/t/adjust-parallelism-in-circle-yml/1833/2 "2016-07-07T18:59:55Z")

</div>

We would also find this very useful. When we buy extra containers, we would like to bump the parallelism for all our users.

Without a way to change parallelism automatically, some users forget to update their settings, and we find ourselves not getting the expected value out of our containers.

---

<div class="post-metadata">

**Author:** ![midhunkrishna](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/midhunkrishna/32/17213_2.png) [@midhunkrishna](https://discuss.circleci.com/u/midhunkrishna)\
**Post date:** [October 17, 2017, 5:43pm UTC](https://discuss.circleci.com/t/adjust-parallelism-in-circle-yml/1833/3 "2017-10-17T17:43:20Z")

</div>

It would be great to have this feature. Our entire app is split into micro services and each of these are further split into modules. For example, a user module (dealing with authorization) is same throughout these microservices. Most often nothing gets added to this module and we have a setup which checks for changes in such modules and run only specs from these modules.

Now, we run all these specs on master/production/staging branches, and such full builds take up time.

Say I have an option to run a script which checks on which branch this build currently in, if in master, run with 16x parallelism, if not then run with 4x parallelism.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:37am UTC](https://discuss.circleci.com/t/adjust-parallelism-in-circle-yml/1833/4 "2018-06-18T11:37:58Z")

</div>

Closed on June 18, 2018, 11:37am UTC


