chef-provisioning-aws icon indicating copy to clipboard operation
chef-provisioning-aws copied to clipboard

machine_batch should batch requests

Open tyler-ball opened this issue 9 years ago • 2 comments

If a user has a recipe containing the following:

machine_batch "apache cluster" do
  (1..10).each do |i|
    machine "apache_#{i}" do
      machine_options #...
      run_list ["recipe[apache]"]
    end
  end
end

We should be only be making 1 request to AWS to create all 10 machines. With the AWS SDK V2 we can set a min_count and max_count parameter on the create_instances call.

tyler-ball avatar Aug 31 '15 22:08 tyler-ball

See also #17, #227

charlesjohnson avatar Aug 31 '15 22:08 charlesjohnson

This is useful for properly utilizing placement groups.

bpoweski avatar Nov 02 '16 15:11 bpoweski