Can i run multiple chef-clients in parallel?


#1

i want to do mutiple tasks on a node(vm), e.g setting up 10 new apacheHttp, mysqldb, redis etc. Is there a way to run mutiple chef-clients with different recipes in parallel. this will help save lot of time. Or is there any better approach for similar use case?


#2

No, you can not run simultaneous chef clients. The client checks for a lock to ensure only one process is running.

Unless this is a development environment, you probably want to have separate vms for each service. (redis, mysql, apache).


#3

I’d add that there is an RFC for parallelization of resources but that running multiple chef-clients is definitely discouraged and almost invariably going to explode in unexpected ways.