gnunet-svn
[Top][All Lists]
Advanced

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

[taler-grid5k] 98/189: fix


From: gnunet
Subject: [taler-grid5k] 98/189: fix
Date: Thu, 28 Apr 2022 10:47:48 +0200

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

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

commit 7312f95ec95d2ae7c0ce7a17ae80b55cf7df3ebc
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Sat Mar 19 20:34:57 2022 +0100

    fix
---
 experiment/scripts/monitor.sh    |  2 +-
 experiment/scripts/proxy.sh      |  2 +-
 experiment/scripts/taler-perf.sh | 12 ++++++++----
 3 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/experiment/scripts/monitor.sh b/experiment/scripts/monitor.sh
index 0c35580..bc4ea57 100755
--- a/experiment/scripts/monitor.sh
+++ b/experiment/scripts/monitor.sh
@@ -161,7 +161,7 @@ function remove_exchanges_from_prometheus() {
 
   HOSTS=$(get_exchange_hosts)
 
-  for PORT in $(seq $START $END); do
+  for PORT in $(seq $END $START); do
     for HOST in $HOSTS; do
       sed -i "/${EXCHANGE_DOMAIN//\*/${HOST}}:${PORT}/d" \
               /etc/monitor/prometheus.yaml
diff --git a/experiment/scripts/proxy.sh b/experiment/scripts/proxy.sh
index 6f6954f..d681053 100755
--- a/experiment/scripts/proxy.sh
+++ b/experiment/scripts/proxy.sh
@@ -100,7 +100,7 @@ function remove_exchanges() {
 
   EXCHANGES=$(get_exchange_hosts)
 
-  for PORT in $(seq $START $END); do
+  for PORT in $(seq $END $START); do
     for HOST in ${EXCHANGES}; do
       sed -i "/${EXCHANGE_DOMAIN//\*/${HOST}}:${PORT};/d" \
             /etc/nginx/sites-available/proxy
diff --git a/experiment/scripts/taler-perf.sh b/experiment/scripts/taler-perf.sh
index 83c7153..45ec3b5 100644
--- a/experiment/scripts/taler-perf.sh
+++ b/experiment/scripts/taler-perf.sh
@@ -33,8 +33,10 @@ function start_exchanges() {
     ssh -o StrictHostKeyChecking=no ${EXCHANGE_DOMAIN//\*/${HOST}} \
            "/bin/bash /root/scripts/exchange.sh start 
${1:-${NUM_EXCHANGE_PROCESSES}}" 
   done
-  ssh -o StrictHostKeyChecking=no ${PROXY_DOMAIN} \
-         "/bin/bash /root/scripts/proxy.sh start ${RUNNING} 
${1:-${NUM_EXCHANGE_PROCESSES}}"
+  for HOST in $(get_proxy_hosts); do
+    ssh -o StrictHostKeyChecking=no ${HOST}.${PROXY_DOMAIN} \
+           "/bin/bash /root/scripts/proxy.sh start ${RUNNING} 
${1:-${NUM_EXCHANGE_PROCESSES}}"
+  done
   ssh -o StrictHostKeyChecking=no ${MONITOR_DOMAIN} \
          "/bin/bash /root/scripts/monitor.sh start ${RUNNING} 
${1:-${NUM_EXCHANGE_PROCESSES}}"
 }
@@ -45,8 +47,10 @@ function stop_exchanges() {
   RUNNING=$(get_running_exchanges_per_host)
   ssh -A -o StrictHostKeyChecking=no ${MONITOR_DOMAIN} \
          "/bin/bash /root/scripts/monitor.sh stop-exchanges ${RUNNING} 
${1:-${NUM_EXCHANGE_PROCESSES}}"
-  ssh -A -o StrictHostKeyChecking=no ${PROXY_DOMAIN} \
-         "/bin/bash /root/scripts/proxy.sh stop ${RUNNING} 
${1:-${NUM_EXCHANGE_PROCESSES}}"
+  for HOST in $(get_proxy_hosts); do
+    ssh -A -o StrictHostKeyChecking=no ${HOST}.${PROXY_DOMAIN} \
+           "/bin/bash /root/scripts/proxy.sh stop ${RUNNING} 
${1:-${NUM_EXCHANGE_PROCESSES}}"
+  done
   sleep 5
   for HOST in $(get_exchange_hosts); do
     ssh -o StrictHostKeyChecking=no ${EXCHANGE_DOMAIN//\*/${HOST}} \

-- 
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]