gnunet-svn
[Top][All Lists]
Advanced

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

[taler-grid5k] 103/189: add upstream response time


From: gnunet
Subject: [taler-grid5k] 103/189: add upstream response time
Date: Thu, 28 Apr 2022 10:47:53 +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 9af5e28d80445e8976483fe8568ae1fb33e856ee
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Tue Mar 22 08:36:59 2022 +0100

    add upstream response time
---
 configs/etc/monitor/promtail.yaml       |  9 ++++++++-
 configs/etc/nginx/sites-available/proxy |  1 +
 experiment/scripts/database.sh          | 12 ++++++------
 3 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/configs/etc/monitor/promtail.yaml 
b/configs/etc/monitor/promtail.yaml
index 94d98c7..56753b6 100644
--- a/configs/etc/monitor/promtail.yaml
+++ b/configs/etc/monitor/promtail.yaml
@@ -32,7 +32,7 @@ scrape_configs:
        selector: '{job="proxy"}'
        stages:
        - regex:
-           expression: 
'.*uri=/(?P<ep>[a-zA-Z]+)(?:/\w+)?(?:/(?P<act>[a-zA-Z]+))? 
s=(?P<status>\d{3}).*rt=(?P<response_time>\d+\.\d+) rl=(?P<request_length>\d+) 
bs=(?P<bytes_sent>\d+).*'
+           expression: 
'.*uri=/(?P<ep>[a-zA-Z]+)(?:/\w+)?(?:/(?P<act>[a-zA-Z]+))? 
s=(?P<status>\d{3}).*urt=(?P<upstream_response_time>\d+\.\d+) 
rt=(?P<response_time>\d+\.\d+) rl=(?P<request_length>\d+) 
bs=(?P<bytes_sent>\d+).*'
        - template:
            source: endpoint
            template: '{{ printf "%s-%s" .ep .act | trimSuffix "-" }}'
@@ -69,6 +69,13 @@ scrape_configs:
              source: response_time
              config:
                buckets: 
[0.001,0.0025,0.005,0.010,0.025,0.050,0.1,0.25,0.5,1,2,5]
+           upstream_response_time:
+             prefix: 'taler_requests_'
+             type: Histogram
+             description: "Time taken for the Exchange to respond to Nginx"
+             source: upstream_response_time
+             config:
+               buckets: 
[0.001,0.0025,0.005,0.010,0.025,0.050,0.1,0.25,0.5,1,2,5]
 - job_name: wallet
   syslog:
     listen_address: 0.0.0.0:1516
diff --git a/configs/etc/nginx/sites-available/proxy 
b/configs/etc/nginx/sites-available/proxy
index e2fcac0..a356ee8 100644
--- a/configs/etc/nginx/sites-available/proxy
+++ b/configs/etc/nginx/sites-available/proxy
@@ -7,6 +7,7 @@ upstream exchange {
   # <SERVERS_HERE>
 }
 
+# This format is expected by promtail (configs/etc/monitor/promtail.yaml)
 log_format taler 'm=$request_method uri=$uri s=$status '
                  'uct=$upstream_connect_time '
                  'urt=$upstream_response_time '
diff --git a/experiment/scripts/database.sh b/experiment/scripts/database.sh
index 5d2e591..52e1b27 100755
--- a/experiment/scripts/database.sh
+++ b/experiment/scripts/database.sh
@@ -134,7 +134,7 @@ function setup_config() {
 
   # Bad when turned off - Recovering db may not be possible
   # https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-FSYNC
-  fsync = off
+  # fsync = off
 
   # Not so bad as when turning off fsync, but single transactions might get 
lost on crash - but
   # like they would have aborted cleanly
@@ -308,11 +308,11 @@ GRANT SELECT,INSERT,UPDATE ON ALL TABLES IN SCHEMA public 
TO "${DB_USER}";
 GRANT USAGE ON ALL SEQUENCES IN SCHEMA public TO "${DB_USER}";
 EOF
 
-  for i in $(seq $NUM_PARTITIONS); do
-    su postgres << EOF
-psql -d ${DB_NAME} -tAc "ALTER TABLE known_coins_${i} SET (fillfactor=90)";
-EOF
-  done
+#  for i in $(seq $NUM_PARTITIONS); do
+#    su postgres << EOF
+#psql -d ${DB_NAME} -tAc "ALTER TABLE known_coins_${i} SET (fillfactor=90)";
+#EOF
+#  done
 
   enable_remote_access
   systemctl restart postgresql

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