A vagrant plugin to simulate a cpu burn failure on a node
The plugin allows you to make a burn-cpu failure to a vagrant node, after installation all you have to do is the following
vagrant burn-cpu [node_name]
Vagrant.configure(2) do |config|
config.vm.box = "precise64"
config.cpuburn_vagrant.burn_cpus = 1
(1..2).each do |n|
config.vm.define ("memcachednode%d" % n) do |machine|
machine.vm.network :public_network
# You have to specify the configuration
machine.cpuburn_vagrant.burn_cpus = 1
# You have to use the cpuburn_vagrant provisioner
machine.vm.provision "cpuburn_vagrant" do |p|
p.cpu_burn = true
end
end
end
end