gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-grid5k] 90/141: change number of iterations to 10 - bigger values


From: gnunet
Subject: [taler-grid5k] 90/141: change number of iterations to 10 - bigger values slow down wallets over time
Date: Thu, 18 Nov 2021 14:50:31 +0100

This is an automated email from the git hooks/post-receive script.

marco-boss pushed a commit to branch master
in repository grid5k.

commit e6160d91c35d0d588a1073d662090314fe50ff7a
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Tue Nov 2 16:42:27 2021 +0100

    change number of iterations to 10 - bigger values slow down wallets over 
time
---
 .../usr/lib/systemd/system/taler-wallet@.service   |  2 +-
 experiment/scripts/test.sh                         | 70 ++++++----------------
 experiment/scripts/test1.sh                        | 19 ------
 3 files changed, 18 insertions(+), 73 deletions(-)

diff --git a/configs/usr/lib/systemd/system/taler-wallet@.service 
b/configs/usr/lib/systemd/system/taler-wallet@.service
index 3b635c6..f6ccdfc 100755
--- a/configs/usr/lib/systemd/system/taler-wallet@.service
+++ b/configs/usr/lib/systemd/system/taler-wallet@.service
@@ -7,7 +7,7 @@ Type=simple
 Restart=always
 RestartSec=2
 EnvironmentFile=/etc/environment
-ExecStart=/root/scripts/test1.sh %I
+ExecStart=/root/scripts/test.sh %I
 
 StandardOutput=journal
 StandardError=journal
diff --git a/experiment/scripts/test.sh b/experiment/scripts/test.sh
index c8930ed..2c0f339 100755
--- a/experiment/scripts/test.sh
+++ b/experiment/scripts/test.sh
@@ -1,55 +1,19 @@
 #!/bin/bash
 
-FAKE_PID=$1
-DB_FILE=~/walletdb/wallet."${FAKE_PID}".json
-
-IP=$(hostname -I)
-
-function log() {
-  logger -s --tcp \
-         --port 1515 \
-         --server ${MONITOR_DOMAIN} \
-         --tag taler-wallet \
-         "ts=$(date -Ins) id=${FAKE_PID} host=${IP} level=${2:-INFO} ${1}"
-}
-
-for i in {0..10000};
-do
-
-  if taler-wallet-cli \
-      --wallet-db="${DB_FILE}" \
-      advanced withdraw-fakebank \
-        --exchange "http://${PROXY_DOMAIN}/"; \
-        --bank "http://${BANK_DOMAIN}/"; \
-        --amount KUDOS:1000;
-  then
-    log "action=reserve status=succeeded amount=KUDOS:1000" 
-  else
-    log "action=reserve status=failed" "ERROR"
-  fi
-
-  if taler-wallet-cli \
-      --wallet-db="${DB_FILE}" \
-      run-until-done \
-        --max-retries=10;
-  then
-    log "action=withdraw status=succeeded" 
-  else 
-    log "action=withdraw status=failed" "ERROR"
-  fi
-
-  for i in {1..10};
-  do
-    if taler-wallet-cli \
-        --wallet-db="${DB_FILE}" \
-       deposit create KUDOS:50 \
-        "payto://x-taler-bank/${BANK_DOMAIN}/Exchange";
-    then
-      log "action=deposit status=succeeded amount=KUDOS:50" 
-    else 
-      log "action=deposit status=failed" "ERROR"
-      continue
-    fi
-  done
-
-done
+case $1 in
+   *logging*)
+   echo "enable logging of wallet here"
+   ;;
+esac
+
+taler-wallet-cli \
+    advanced bench1 \
+      --config-json "
+{
+  \"exchange\": \"http://${PROXY_DOMAIN}/\";, 
+  \"bank\": \"http://${BANK_DOMAIN}/\";,
+  \"currency\": \"KUDOS\",
+  \"payto\": \"payto://x-taler-bank/${BANK_DOMAIN}/foo\",
+  \"iterations\": 10,
+  \"deposits\": 10
+}"
diff --git a/experiment/scripts/test1.sh b/experiment/scripts/test1.sh
deleted file mode 100755
index 1c3a993..0000000
--- a/experiment/scripts/test1.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-case $1 in
-   *logging*)
-   echo "enable logging of wallet here"
-   ;;
-esac
-
-taler-wallet-cli \
-    advanced bench1 \
-      --config-json "
-{
-  \"exchange\": \"http://${PROXY_DOMAIN}/\";, 
-  \"bank\": \"http://${BANK_DOMAIN}/\";,
-  \"currency\": \"KUDOS\",
-  \"payto\": \"payto://x-taler-bank/${BANK_DOMAIN}/foo\",
-  \"iterations\": 10000,
-  \"deposits\": 10
-}"

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]