gnunet-svn
[Top][All Lists]
Advanced

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

[taler-grid5k] 45/141: add rsyslog config for better performance with lo


From: gnunet
Subject: [taler-grid5k] 45/141: add rsyslog config for better performance with loki
Date: Thu, 18 Nov 2021 14:49:46 +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 e1ff832e8e0998732d4ed806ba68e09b745d6e3b
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Wed Oct 13 22:45:57 2021 +0200

    add rsyslog config for better performance with loki
---
 configs/etc/rsyslog.d/taler.conf | 4 ++++
 experiment/scripts/exchange.sh   | 8 ++------
 experiment/scripts/monitor.sh    | 4 ++--
 experiment/scripts/proxy.sh      | 2 +-
 experiment/scripts/wallet.sh     | 2 +-
 experiment/setup.sh              | 3 +++
 6 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/configs/etc/rsyslog.d/taler.conf b/configs/etc/rsyslog.d/taler.conf
new file mode 100644
index 0000000..78ad873
--- /dev/null
+++ b/configs/etc/rsyslog.d/taler.conf
@@ -0,0 +1,4 @@
+$template TALER_LOGS,"/var/log/%programname%.log"
+
+if $programname startswith 'taler' then ?TALER_LOGS
+& stop
diff --git a/experiment/scripts/exchange.sh b/experiment/scripts/exchange.sh
index aa15bfc..8871721 100755
--- a/experiment/scripts/exchange.sh
+++ b/experiment/scripts/exchange.sh
@@ -27,7 +27,7 @@ until PGPASSWORD="${DB_PASSWORD}" psql \
       -c '\q';
 do
   echo "Database not ready yet"
-  sleep 1
+  sleep 2
 done
 
 sleep 1
@@ -41,13 +41,9 @@ until wget http://${EXCHANGE_DOMAIN}/management/keys \
       --quiet;
 do
   echo "Exchange not ready yet"
-  sleep 1
+  sleep 5
 done
 
-sleep 1
-
-wget http://${EXCHANGE_DOMAIN}/management/keys
-
 taler-exchange-offline download > sig-req.json
 taler-exchange-offline sign < sig-req.json > sig-res.json
 taler-exchange-offline enable-account $(taler-config -s exchange-account-1 -o 
payto_uri) > acct-res.json
diff --git a/experiment/scripts/monitor.sh b/experiment/scripts/monitor.sh
index 41fee47..fea91e6 100755
--- a/experiment/scripts/monitor.sh
+++ b/experiment/scripts/monitor.sh
@@ -44,7 +44,7 @@ until PGPASSWORD="${DB_PASSWORD}" psql \
       -c '\q';
 do
   echo "Database not ready yet"
-  sleep 1
+  sleep 2
 done
 
 # Proxy takes longer to start
@@ -56,7 +56,7 @@ until wget http://${PROXY_DOMAIN}/keys \
       --quiet;
 do
   echo "Exchange not ready yet"
-  sleep 1
+  sleep 5
 done
 
 systemctl restart prometheus-postgres-exporter \
diff --git a/experiment/scripts/proxy.sh b/experiment/scripts/proxy.sh
index ad36d2c..f03cbe0 100755
--- a/experiment/scripts/proxy.sh
+++ b/experiment/scripts/proxy.sh
@@ -11,7 +11,7 @@ until wget http://${EXCHANGE_DOMAIN}/keys \
        -q;
 do
   echo "Exchange not ready yet"
-  sleep 1
+  sleep 5
 done
 
 systemctl restart nginx 
diff --git a/experiment/scripts/wallet.sh b/experiment/scripts/wallet.sh
index 6a08c11..f4370ec 100755
--- a/experiment/scripts/wallet.sh
+++ b/experiment/scripts/wallet.sh
@@ -8,7 +8,7 @@ until wget http://${PROXY_DOMAIN}/keys \
       --quiet;
 do
   echo "Exchange not ready yet"
-  sleep 1
+  sleep 5
 done
 
 taler-wallet-cli advanced withdraw-manually --exchange http://${PROXY_DOMAIN}/ 
--amount KUDOS:10
diff --git a/experiment/setup.sh b/experiment/setup.sh
index 3814b35..210b814 100644
--- a/experiment/setup.sh
+++ b/experiment/setup.sh
@@ -18,6 +18,9 @@ rm /etc/nginx/sites-enabled/default > /dev/null 2>&1 || true
 # Override default configurations with the one from this Git.
 cp -r "${G5K_HOME}"/configs/* /
 
+# Apply our logging rules
+systemctl restart rsyslog
+
 # Add the dyndns key which will be used by the dns update
 cat << EOF > /root/ddns.key 
 key "ddns-key.perf.taler" {

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