# Chef vault create - taking long time for 3k nodes

**URL:** <https://discourse.chef.io/t/chef-vault-create-taking-long-time-for-3k-nodes/14156>\
**Category:** Chef Infra (archive)\
**Created:** [December 18, 2018, 9:59am UTC](https://discourse.chef.io/t/chef-vault-create-taking-long-time-for-3k-nodes/14156 "2018-12-18T09:59:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![szinjad](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@szinjad](https://discourse.chef.io/u/szinjad)\
**Post date:** [December 18, 2018, 9:59am UTC](https://discourse.chef.io/t/chef-vault-create-taking-long-time-for-3k-nodes/14156/1 "2018-12-18T09:59:56Z")

</div>

Team,

We have chef server with 3000+ nodes with it, while I am trying to create vault for them it's taking long time. . any workaround for same.

Thanks,  
Suraj B. Zinjad.  
DevOps Engg.

---

<div class="post-metadata">

**Author:** ![simark](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/simark/32/2099_2.png) [@simark](https://discourse.chef.io/u/simark)\
**Post date:** [December 18, 2018, 7:39pm UTC](https://discourse.chef.io/t/chef-vault-create-taking-long-time-for-3k-nodes/14156/2 "2018-12-18T19:39:38Z")

</div>

What is the command that you execute?

---

<div class="post-metadata">

**Author:** ![szinjad](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@szinjad](https://discourse.chef.io/u/szinjad)\
**Post date:** [December 19, 2018, 12:18pm UTC](https://discourse.chef.io/t/chef-vault-create-taking-long-time-for-3k-nodes/14156/3 "2018-12-19T12:18:49Z")

</div>

Hi Simark,

I am using below command to create vault.

time sudo knife vault create vault\_name item\_name --json /tmp/item.json --search '_:_' --mode client

FYI.  
[chef@chef-workstation]$ knife status | wc -l  
Output : 5017

Thanks.

---

<div class="post-metadata">

**Author:** ![simark](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/simark/32/2099_2.png) [@simark](https://discourse.chef.io/u/simark)\
**Post date:** [December 19, 2018, 2:35pm UTC](https://discourse.chef.io/t/chef-vault-create-taking-long-time-for-3k-nodes/14156/4 "2018-12-19T14:35:01Z")

</div>

I have tried the following command for 1000 nodes and it finished in ~10 seconds

`knife vault create deleteme deleteme '{"username": "root", "password": "mypassword"}' --search '*:*' --mode client`

---

<div class="post-metadata">

**Author:** ![szinjad](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@szinjad](https://discourse.chef.io/u/szinjad)\
**Post date:** [December 20, 2018, 8:37am UTC](https://discourse.chef.io/t/chef-vault-create-taking-long-time-for-3k-nodes/14156/5 "2018-12-20T08:37:24Z")

</div>

> [@simark](#):
>
> knife vault create deleteme deleteme '{"username": "root", "password": "mypassword"}' --search '_:_' --mode client

It's taking long time for me, is any another work around for same ?

Thanks

---

<div class="post-metadata">

**Author:** ![simark](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/simark/32/2099_2.png) [@simark](https://discourse.chef.io/u/simark)\
**Post date:** [December 20, 2018, 10:21am UTC](https://discourse.chef.io/t/chef-vault-create-taking-long-time-for-3k-nodes/14156/6 "2018-12-20T10:21:26Z")

</div>

The performance depends on your servers resources:  
[https://docs.chef.io/server\_components.html#host-specifications](https://docs.chef.io/server_components.html#host-specifications)

and also the chef-server configuration:  
[https://docs.chef.io/server\_tuning.html](https://docs.chef.io/server_tuning.html)

---

<div class="post-metadata">

**Author:** ![szinjad](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@szinjad](https://discourse.chef.io/u/szinjad)\
**Post date:** [December 20, 2018, 11:11am UTC](https://discourse.chef.io/t/chef-vault-create-taking-long-time-for-3k-nodes/14156/7 "2018-12-20T11:11:31Z")

</div>

Thanks Simark.

I will check related things and let you know thanks for your help.

---

<div class="post-metadata">

**Author:** ![szinjad](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@szinjad](https://discourse.chef.io/u/szinjad)\
**Post date:** [January 28, 2019, 11:09am UTC](https://discourse.chef.io/t/chef-vault-create-taking-long-time-for-3k-nodes/14156/8 "2019-01-28T11:09:00Z")

</div>

I getting below error when I create chef vault ( I have 5670 nodes)

[chef@chef-workstation ~]$ time knife vault create removeme removeme '{"username": "root", "password": "mypassword"}' --search '_:_' --mode client

ERROR: Request Entity Too Large  
Response: JSON must be no more than 1000000 bytes.  
real 2m25.753s  
user 1m11.261s  
sys 0m5.682s  
[chef@chef-workstation ~]$
