# Cookbook dependency resolution error - knife ssh with concurrency

**URL:** <https://discourse.chef.io/t/cookbook-dependency-resolution-error-knife-ssh-with-concurrency/9193>\
**Category:** Chef Infra (archive)\
**Created:** [August 17, 2016, 9:52am UTC](https://discourse.chef.io/t/cookbook-dependency-resolution-error-knife-ssh-with-concurrency/9193 "2016-08-17T09:52:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amod](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/amod/32/1575_2.png) [@Amod](https://discourse.chef.io/u/Amod)\
**Post date:** [August 17, 2016, 9:52am UTC](https://discourse.chef.io/t/cookbook-dependency-resolution-error-knife-ssh-with-concurrency/9193/1 "2016-08-17T09:52:39Z")

</div>

We have randomly seen Cookbook dependency resolution error while using knife ssh with -C. Is it that the issue occurs when we have concurrency set to a high number? If so, how do we find the optimal value of C.

---

<div class="post-metadata">

**Author:** ![kallistec](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/kallistec/32/23_2.png) [@kallistec](https://discourse.chef.io/u/kallistec)\
**Post date:** [August 24, 2016, 8:03am UTC](https://discourse.chef.io/t/cookbook-dependency-resolution-error-knife-ssh-with-concurrency/9193/2 "2016-08-24T08:03:04Z")

</div>

> [@Amod](#):
>
> We have randomly seen Cookbook dependency resolution error while using knife ssh with -C. Is it that the issue occurs when we have concurrency set to a high number? If so, how do we find the optimal value of C.

There's no hard and fast rule; the amount of work Chef Server has to do to solve your dependencies changes based on how you use it. If you use environments to lock down your cookbooks to exact versions, the amount of work required will be a lot less.

Chef Server maintains a pool of dependency solver processes, so another thing you can do is increase the number of workers. See `opscode_erchef['depsolver_worker_count']` in [chef-server.rb Optional Settings](https://docs.chef.io/config_rb_server_optional_settings.html#opscode-erchef) for more info.

---

<div class="post-metadata">

**Author:** ![Amod](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/amod/32/1575_2.png) [@Amod](https://discourse.chef.io/u/Amod)\
**Post date:** [August 26, 2016, 1:36am UTC](https://discourse.chef.io/t/cookbook-dependency-resolution-error-knife-ssh-with-concurrency/9193/3 "2016-08-26T01:36:12Z")

</div>

Any pointers?
