gnunet-svn
[Top][All Lists]
Advanced

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

[taler-grid5k] 48/73: update install script


From: gnunet
Subject: [taler-grid5k] 48/73: update install script
Date: Tue, 14 Dec 2021 15:10:30 +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 ea45216a62477a00976c6c50b60d4e771f7c8ed2
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Thu Dec 2 21:27:34 2021 +0100

    update install script
---
 experiment/README.md           |  3 ++-
 experiment/TODO                |  1 +
 experiment/scripts/database.sh |  5 +++--
 experiment/scripts/install.sh  | 32 ++++++++++++++++++++------------
 4 files changed, 26 insertions(+), 15 deletions(-)

diff --git a/experiment/README.md b/experiment/README.md
index feff76f..717c9cd 100644
--- a/experiment/README.md
+++ b/experiment/README.md
@@ -41,7 +41,8 @@ To quickly test fixes of new commits in 
gnunet,exchange,merchant and wallet, the
 which can be run inside a running experiment rather than rebuilding the whole 
image.
 
 To do so copy the following snippet into the `Multi Command` window in jFed:
-(Please adjust commits as needed)
+Please adjust commits as needed, the ones which are not defined will not be 
built.
+The ones which are empty will build on master.
 
 ```bash
 #!/bin/bash
diff --git a/experiment/TODO b/experiment/TODO
index 4907e43..049b337 100644
--- a/experiment/TODO
+++ b/experiment/TODO
@@ -2,3 +2,4 @@
 - I/O util 100%
 - lsblk -d -o name,rota - dahu ssd
 - htop - postgres processes using more and more memory
+* fix wallet stop
diff --git a/experiment/scripts/database.sh b/experiment/scripts/database.sh
index c1d0296..a5b180f 100755
--- a/experiment/scripts/database.sh
+++ b/experiment/scripts/database.sh
@@ -30,6 +30,7 @@ function setup_config() {
   effective_cache_size=$(($(awk '/MemTotal/ {print $2}' /proc/meminfo) * 
3/4))kB
   
   # 
(https://www.postgresql.org/docs/current/runtime-config-wal.html#GUC-MAX-WAL-SIZE)
+  min_wal_size=500
   max_wal_size=2GB 
   wal_buffers=16MB
   
@@ -41,8 +42,8 @@ function setup_config() {
   
   # Increase work mem to lower I/O utilization (max used =~ work_mem * 
max_connections)
   # NOTE: This formula is not completely correct 
-  # work_mem=128MB
-  # idle_in_transaction_session_timeout=10000
+  work_mem=128MB
+  idle_in_transaction_session_timeout=3000
   " > /etc/postgresql/13/main/exchange.conf
 
   if ! grep -q "include = 'exchange.conf'" \
diff --git a/experiment/scripts/install.sh b/experiment/scripts/install.sh
index a93af99..090dfbe 100755
--- a/experiment/scripts/install.sh
+++ b/experiment/scripts/install.sh
@@ -40,18 +40,26 @@ if [ ! -d "${TALER_HOME}" ]; then
   mkdir "${TALER_HOME}"
 fi
 
-echo "INFO installing GNUnet"
-install "https://git.gnunet.org/gnunet.git"; \
-        "${GNUNET_COMMIT_SHA:-master}"
+if [ ! -z "${GNUNET_COMMIT_SHA}" ]; then
+  echo "INFO installing GNUnet"
+  install "https://git.gnunet.org/gnunet.git"; \
+          "${GNUNET_COMMIT_SHA:-master}"
+fi
 
-echo "INFO installing Taler Exchange"
-install "https://git.taler.net/exchange.git"; \
-        "${EXCHANGE_COMMIT_SHA:-master}"
+if [ ! -z "${EXCHANGE_COMMIT_SHA}" ]; then
+  echo "INFO installing Taler Exchange"
+  install "https://git.taler.net/exchange.git"; \
+          "${EXCHANGE_COMMIT_SHA:-master}"
+fi
 
-echo "INFO installing Taler Merchant"
-install "https://git.taler.net/merchant.git"; \
-        "${MERCHANT_COMMIT_SHA:-master}"
+if [ ! -z "${MERCHANT_COMMIT_SHA}" ]; then
+  echo "INFO installing Taler Merchant"
+  install "https://git.taler.net/merchant.git"; \
+          "${MERCHANT_COMMIT_SHA:-master}"
+fi
 
-echo "INFO installing Taler Wallet"
-install "https://git.taler.net/wallet-core.git"; \
-        "${WALLET_COMMIT_SHA:-master}"
+if [ ! -z "${WALLET_COMMIT_SHA}" ]; then
+  echo "INFO installing Taler Wallet"
+  install "https://git.taler.net/wallet-core.git"; \
+          "${WALLET_COMMIT_SHA:-master}"
+fi

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