File tree 4 files changed +27
-9
lines changed
vm/ansible/prerequisites/tasks
4 files changed +27
-9
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ ps auxf | grep killer-whiles | grep python
5
5
echo
6
6
7
7
echo " Killing instance A (port 8001)"
8
- ps auxf | grep 8001 | awk ' {system("sudo kill " $2)}'
8
+ ps auxf | grep python | grep 8001 | awk ' {system("sudo kill " $2)}'
9
9
sleep 0.5
10
10
systemctl status faas001_a --no-pager
11
11
echo
@@ -15,7 +15,7 @@ sleep 2
15
15
echo
16
16
17
17
echo " Killing instance B (port 8002)"
18
- ps auxf | grep 8002 | awk ' {system("sudo kill " $2)}'
18
+ ps auxf | grep python | grep 8002 | awk ' {system("sudo kill " $2)}'
19
19
sleep 0.5
20
20
systemctl status faas001_b --no-pager
21
21
echo
Original file line number Diff line number Diff line change
1
+ config :
2
+ runStrategy :
3
+ runs : 1
4
+ scenarios :
5
+ - name : Toxiproxy latency
6
+ steps :
7
+ - clone :
8
+ source :
9
+ deployment :
10
+ name : goldpinger
11
+ namespace : default
12
+ replicas : 2
13
+ mutations :
14
+ - toxiproxy :
15
+ toxics :
16
+ - targetProxy : " 8080"
17
+ toxicType : latency
18
+ toxicAttributes :
19
+ - name : latency
20
+ value : 250
21
+ - wait :
22
+ seconds : 120
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ echo "Step 2. Copy some (very) minimal binaries"
11
11
for tool in $TOOLS ; do
12
12
cp -v --parents ` which $tool ` $NEW_FILESYSTEM_ROOT ;
13
13
done
14
+ # link /bin/bash to /usr/bin/bash to match Ubuntu 20.20
15
+ mkdir -p $NEW_FILESYSTEM_ROOT /bin
16
+ ln -s ../usr/bin/bash $NEW_FILESYSTEM_ROOT /bin/bash
14
17
15
18
echo " Step 3. Copy over their libs"
16
19
# use ldd to find the dependencies of the tools we've just copied
Original file line number Diff line number Diff line change 179
179
quit
180
180
EOF
181
181
182
- - name : Make sure mysql database listens on all interfaces
183
- become : true
184
- lineinfile :
185
- path : /lib/systemd/system/mysql.service
186
- regexp : ' ^ExecStart='
187
- line : ' ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/run/mysqld/mysqld.pid --bind-address=0.0.0.0 --port=3306'
188
-
189
182
# Stop services from starting on boot time
190
183
- name : Disable auto-boot services
191
184
become : true
You can’t perform that action at this time.
0 commit comments