gnunet-svn
[Top][All Lists]
Advanced

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

[taler-grid5k] 52/73: possible to configure max_requests with env file


From: gnunet
Subject: [taler-grid5k] 52/73: possible to configure max_requests with env file
Date: Tue, 14 Dec 2021 15:10:34 +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 3252295ba1953320882a1078a680b77f61f72fd2
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Tue Dec 7 16:17:41 2021 +0100

    possible to configure max_requests with env file
---
 configs/etc/taler/conf.d/exchange-business.conf | 2 +-
 experiment/env                                  | 4 ++++
 experiment/scripts/exchange.sh                  | 1 +
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/configs/etc/taler/conf.d/exchange-business.conf 
b/configs/etc/taler/conf.d/exchange-business.conf
index 27e0f12..c5e6e17 100644
--- a/configs/etc/taler/conf.d/exchange-business.conf
+++ b/configs/etc/taler/conf.d/exchange-business.conf
@@ -12,7 +12,7 @@ MASTER_PUBLIC_KEY = <MASTER_KEY_HERE>
 # BASE_URL = https://example.com/
 BASE_URL = <BASE_URL_HERE>
 
-MAX_REQUESTS = 10000
+MAX_REQUESTS = <MAX_REQUESTS_HERE>
 
 # For your terms of service and privacy policy, you should specify
 # an Etag that must be updated whenever there are significant
diff --git a/experiment/env b/experiment/env
index b9b9f33..2c9e7dd 100644
--- a/experiment/env
+++ b/experiment/env
@@ -39,6 +39,10 @@ AGGREGATOR_ARGS="-y"
 # files ExecStart command, e.g. /usr/bin/valgrind 
--log-file=/tmp/exchange-%N.log
 EXCHANGE_CMD_PREFIX=""
 
+# Maximal number of requests an exchange process should handle
+# before it kills itself
+EXCHANGE_MAX_REQUESTS=10000
+
 # Datasource names registered in the grafana instance
 PROMETHEUS_DATASOURCE_NAME=Prometheus
 LOKI_DATASOURCE_NAME=Loki
diff --git a/experiment/scripts/exchange.sh b/experiment/scripts/exchange.sh
index e5f3b65..4d747c0 100755
--- a/experiment/scripts/exchange.sh
+++ b/experiment/scripts/exchange.sh
@@ -13,6 +13,7 @@ function setup_config() {
   sed -i -e "s/<BANK_HOST_HERE>/${BANK_DOMAIN}/g" \
          -e "s\<BASE_URL_HERE>\http://${EXCHANGE_DOMAIN}/\g"; \
          -e "s/<MASTER_KEY_HERE>/${MASTER_KEY}/g" \
+         -e "s/<MAX_REQUESTS_HERE>/${EXCHANGE_MAX_REQUESTS:-8192}/g" \
        /etc/taler/conf.d/exchange-business.conf
 }
 

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