Browse Source

Preproduction

Bernhard 5 years ago
parent
commit
2c5a3eab91
11 changed files with 69 additions and 4 deletions
  1. 0 1
      _mysql_recycle.sh
  2. 0 1
      _mysql_short_recycle.sh
  3. 1 0
      pp_all_big.sh
  4. 27 0
      pp_complete_run.sh
  5. 35 0
      pp_init.ini
  6. 1 1
      _mysql.sh
  7. 1 0
      pp_mysql_recycle.sh
  8. 1 1
      _mysql_short.sh
  9. 1 0
      pp_mysql_short_recycle.sh
  10. 1 0
      pp_nginx_big.sh
  11. 1 0
      pp_re_big.sh

+ 0 - 1
_mysql_recycle.sh

@@ -1 +0,0 @@
-python3 API_Calls.py --users=1000 --products=1000 --server=https://app-test.earthsquad.global/api --mode=recycling --csv="/dist/auth_user_testserver.csv"

+ 0 - 1
_mysql_short_recycle.sh

@@ -1 +0,0 @@
-python3 API_Calls.py --users=100 --products=50 --server=https://app-test.earthsquad.global/api --mode=recycling --csv="/dist/auth_user_testserver.csv"

+ 1 - 0
pp_all_big.sh

@@ -0,0 +1 @@
+python3 API_Calls.py --users=500 --products=2000 --noimage=yes --ini_file=pp_init.ini --server=https://app-pp.earthsquad.global/api >/dev/null 2>&1 &

+ 27 - 0
pp_complete_run.sh

@@ -0,0 +1,27 @@
+#!/bin/bash
+
+_evalBg() {
+    eval "$@" &>/dev/null &disown;
+}
+
+short_all="./pp_short.sh"
+short_re="./pp_short_recycle.sh"
+
+for i in {1..3}
+do
+	echo "Starting short recycle iteration ${i}";
+	_evalBg "${short_all}";
+	_evalBg "${short_re}";
+	sleep 180s
+done
+
+
+for i in {1..20}
+do
+        echo "Starting all_big iteration and one recycling ${i}"
+	/bin/bash ./pp_all_big.sh
+        /bin/bash ./pp_re_big.sh
+        echo "Waiting 20 Minutes"
+	sleep 600s
+done
+echo "All done"

+ 35 - 0
pp_init.ini

@@ -0,0 +1,35 @@
+# Server
+server=https://app-pp.earthsquad.global/api
+
+# Loglevel
+ll=2
+
+# mode: either "recycling" for simulating daily recycling of users or "allnew"
+#mode=recycling
+mode=allnew
+
+# Location of database dump of "select username from auth_users" as CSV (for mode=Recycling)
+csv=auth_user_mysql.csv
+
+# Switch weather to upload images during product creation (no_image = yes will not upload image)
+noimage=yes
+
+# Image file name and location (image2.jpg is currently a small image. image.jpg is 3MB)
+image=test2.jpg
+
+# Number of products to be created (mode=allnew) or search for in CSV-File (mode=recycling)
+products=5
+
+# Number of users to be created (mode=allnew) or chosen for daily recycling (mode=recycling)
+users=5
+
+#Shall the recycling-count be rather high (=yes) or quite low (=no) per User per Day?
+#domass=yes
+domass=no
+
+####### section for nginx-Calls
+# which file-Names are there in the folder?
+file_names=file_01.file,file_02.file,file_03.file,file_04.file,file_05.file
+
+# how many iterations shall happen?
+iterations=1000

+ 1 - 1
_mysql.sh

@@ -1 +1 @@
-python3 API_Calls.py --users=100 --products=1000 --server=https://app-test.earthsquad.global/api
+python3 API_Calls.py --users=100 --products=1000 --server=https://app-pp.earthsquad.global/api

+ 1 - 0
pp_mysql_recycle.sh

@@ -0,0 +1 @@
+python3 API_Calls.py --users=1000 --products=1000 --server=https://app-pp.earthsquad.global/api --mode=recycling --csv="/dist/auth_user_pp.csv"

+ 1 - 1
_mysql_short.sh

@@ -1 +1 @@
-python3 API_Calls.py --users=10 --products=100 --server=https://app-test.earthsquad.global/api
+python3 API_Calls.py --users=10 --products=100 --server=https://app-pp.earthsquad.global/api

+ 1 - 0
pp_mysql_short_recycle.sh

@@ -0,0 +1 @@
+python3 API_Calls.py --users=100 --products=50 --server=https://app-pp.earthsquad.global/api --mode=recycling --csv="/dist/auth_user_pp.csv"

+ 1 - 0
pp_nginx_big.sh

@@ -0,0 +1 @@
+python3 API_Calls.py --mode=nginx --server=https://app-pp.earthsquad.global/api/image/nginx_static/ --iterations=50000 >/dev/null 2>&1 &

+ 1 - 0
pp_re_big.sh

@@ -0,0 +1 @@
+python3 API_Calls.py --users=1000 --products=500 --ini_file=pp_init.ini --server=https://app-pp.earthsquad.global/api --mode=recycling --csv="/dist/auth_user_pp.csv" >/dev/null 2>&1 &