Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'cloud-generate.sh')
-rw-r--r--cloud-generate.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/cloud-generate.sh b/cloud-generate.sh
new file mode 100644
index 0000000000..df160bdc27
--- /dev/null
+++ b/cloud-generate.sh
@@ -0,0 +1,17 @@
+
+source cloud-config.sh
+
+for I in $(seq 1 $END); do
+ for ((n=1;n<$(( ( RANDOM % 5 ) + 1 ));n++));
+ do
+ echo "Generating traffic for Piwik instance $I and website id = $n..."
+ echo ""
+ CMD="./console visitorgenerator:generate-visits --idsite=$n --limit-fake-visits=$(( ( RANDOM % 50 ) + 1 )) --no-logs --piwik-domain=http://test$I.piwik.pro"
+ echo $CMD
+ $CMD
+ echo ""
+
+ done
+
+done
+