From b5a1da0a651ab281d1612349f360b659f2f1f64b Mon Sep 17 00:00:00 2001 From: Boss Marco Date: Tue, 10 May 2022 18:54:04 +0200 Subject: update dashboards --- additional/grafana/transactions.json | 34 ++++++++++++---------------------- experiment/scripts/auditor.sh | 27 +++++++++++++++++++++++++++ experiment/scripts/benchmark.sh | 2 +- experiment/scripts/database.sh | 5 ++++- experiment/scripts/shard.sh | 5 ++++- 5 files changed, 48 insertions(+), 25 deletions(-) create mode 100644 experiment/scripts/auditor.sh diff --git a/additional/grafana/transactions.json b/additional/grafana/transactions.json index 76c8e7a..13aaf09 100644 --- a/additional/grafana/transactions.json +++ b/additional/grafana/transactions.json @@ -1503,8 +1503,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] } @@ -1563,8 +1562,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] } @@ -1655,8 +1653,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] }, @@ -1713,8 +1710,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] } @@ -1774,8 +1770,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1859,8 +1854,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] } @@ -1921,8 +1915,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] } @@ -2015,8 +2008,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] }, @@ -2071,8 +2063,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] } @@ -2135,8 +2126,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2552,7 +2542,7 @@ "type": "timeseries" }, { - "description": "Number of deposits done to each account - accounts are only displayed by ID.", + "description": "Number of deposits done to each account, this is only updated once the aggregator was run and the bank logged the transfers.", "fieldConfig": { "defaults": { "color": { @@ -2632,6 +2622,6 @@ "timezone": "", "title": "Transactions", "uid": "83vvgKKnk", - "version": 143, + "version": 144, "weekStart": "" } \ No newline at end of file diff --git a/experiment/scripts/auditor.sh b/experiment/scripts/auditor.sh new file mode 100644 index 0000000..850a69c --- /dev/null +++ b/experiment/scripts/auditor.sh @@ -0,0 +1,27 @@ +#!/bin/bash +set -eux +source ~/scripts/helpers.sh + +INFO_MSG=" +Setup the auditor node +(Start taler-auditor) +" +OPT_MSG=" +init: + Configure and start the auditor together with its database +" + +function init_auditor() { + echo "TBD" +} + +case $1 in + init) + init_auditor + ;; + *) + taler_perf_help $0 "$INFO_MSG" "$OPT_MSG" + ;; +esac + +exit 0 diff --git a/experiment/scripts/benchmark.sh b/experiment/scripts/benchmark.sh index 1f97391..e0b4478 100755 --- a/experiment/scripts/benchmark.sh +++ b/experiment/scripts/benchmark.sh @@ -27,7 +27,7 @@ function start_wallet_bench() { LOG_LEVEL=INFO fi - NUM_DEPOSITS=$((RANDOM %21)) + NUM_DEPOSITS=$((RANDOM %100)) if [[ ${WALLET_WITHDRAW_ONLY} == "true" ]]; then NUM_DEPOSITS=0 fi diff --git a/experiment/scripts/database.sh b/experiment/scripts/database.sh index d3cfc53..9851b54 100755 --- a/experiment/scripts/database.sh +++ b/experiment/scripts/database.sh @@ -81,6 +81,9 @@ function setup_config() { sysctl -p fi + # disable swap + swapoff -a + # Allow longer lines to be logged by postgres sed -i '1 i\$MaxMessageSize 4k' /etc/rsyslog.conf @@ -179,7 +182,7 @@ function setup_config() { # When having replication, this one can be changed (in local only on and off are of use) # https://www.postgresql.org/docs/13/runtime-config-replication.html#GUC-SYNCHRONOUS-STANDBY-NAMES # on causes us to get 100% IO load - synchronous_commit = on + synchronous_commit = off # Default off wal_compression = off diff --git a/experiment/scripts/shard.sh b/experiment/scripts/shard.sh index 4160c5d..921605f 100755 --- a/experiment/scripts/shard.sh +++ b/experiment/scripts/shard.sh @@ -25,7 +25,7 @@ function setup_config() { fi # Get hardware info to tune in postgresql.conf - SHARED_MEM=$(($(awk '/MemTotal/ {print $2}' /proc/meminfo) / 3 )) + SHARED_MEM=$(($(awk '/MemTotal/ {print $2}' /proc/meminfo) / 4 )) CACHE_SIZE=$(($(awk '/MemTotal/ {print $2}' /proc/meminfo) * 3/4)) NUM_CPU=$(lscpu | grep "CPU(s)" | head -n 1 | awk '{print $2}') @@ -41,6 +41,9 @@ function setup_config() { sysctl -p fi + # disable swap + swapoff -a + # Configure postgres with an additional file and include this # in the main configuration echo " -- cgit v1.2.3