File tree 5 files changed +12
-7
lines changed
ansible/prerequisites/tasks
5 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ echo "Wait some time in-between killings"
14
14
sleep 2
15
15
echo
16
16
17
- echo " Killing instance A (port 8002)"
17
+ echo " Killing instance B (port 8002)"
18
18
ps auxf | grep 8002 | awk ' {system("sudo kill " $2)}'
19
19
sleep 0.5
20
20
systemctl status faas001_b
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ while [ $i -le 5 ]
6
6
do
7
7
echo " Killing faas001_a ${i} th time"
8
8
ps auxf | grep killer-whiles | grep python | grep 8001 | awk ' {system("sudo kill " $2)}'
9
- sleep 0.5
9
+ sleep 1.25
10
10
i=$[$i +1]
11
11
done
12
12
@@ -20,7 +20,7 @@ while [ $i -le 5 ]
20
20
do
21
21
echo " Killing faas001_b ${i} th time"
22
22
ps auxf | grep killer-whiles | grep python | grep 8002 | awk ' {system("sudo kill " $2)}'
23
- sleep 0.5
23
+ sleep 1.25
24
24
i=$[$i +1]
25
25
done
26
26
Original file line number Diff line number Diff line change @@ -9,12 +9,15 @@ validate:
9
9
10
10
build : validate
11
11
${packer_bin} build -on-error=ask ${template_file}
12
- ls -al ${output_dir}
12
+ ls -alh ${output_dir}
13
13
14
14
package :
15
15
shasum -a 256 ${output_dir} /* | tee chaos-engineering-VM.sha256
16
16
zip -s 1g -sv ${vm_name} .zip ${output_dir} /*
17
17
shasum -a 256 ${vm_name} * | tee parts.sha256
18
18
ls -alh ${vm_name} *
19
19
20
- .PHONY : validate build package
20
+ clean :
21
+ rm -rf ${output_dir}
22
+
23
+ .PHONY : validate build package clean
Original file line number Diff line number Diff line change
1
+ [defaults]
2
+ callback_whitelist = profile_tasks
Original file line number Diff line number Diff line change 112
112
echo 1 > /proc/sys/vm/overcommit_memory
113
113
114
114
- name : Prebuild python 3.7 from source with dtrace support
115
- become : make
116
115
shell : |
117
116
# install the dependencies
118
117
sudo apt-get install -y build-essential
136
135
curl -o Python-3.7.0.tgz https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz
137
136
tar -xzf Python-3.7.0.tgz
138
137
cd Python-3.7.0
139
- ./configure --with-dtrace --enable-optimizations
138
+ ./configure --with-dtrace --without-tests
140
139
make
141
140
#make test
142
141
sudo make install
142
+ ./python --version
143
143
144
144
- name : Install pip dependencies
145
145
become : true
You can’t perform that action at this time.
0 commit comments