Chef vault create - taking long time for 3k nodes


#1

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.


#2

What is the command that you execute?


#3

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.


#4

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


#5

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

Thanks


#6

The performance depends on your servers resources:
https://docs.chef.io/server_components.html#host-specifications

and also the chef-server configuration:
https://docs.chef.io/server_tuning.html


#7

Thanks Simark.

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