[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-grid5k] 19/48: logical replication implemented
From: |
gnunet |
Subject: |
[taler-grid5k] 19/48: logical replication implemented |
Date: |
Sat, 28 May 2022 12:11:39 +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 16e0c5a88fac5f3e5f2a45e4d1771229f518f894
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Thu May 12 22:44:40 2022 +0200
logical replication implemented
---
configs/etc/taler/conf.d/auditor.conf | 2 ++
experiment/scripts/auditor.sh | 16 ++++------------
2 files changed, 6 insertions(+), 12 deletions(-)
diff --git a/configs/etc/taler/conf.d/auditor.conf
b/configs/etc/taler/conf.d/auditor.conf
index 501d272..52a4ac8 100644
--- a/configs/etc/taler/conf.d/auditor.conf
+++ b/configs/etc/taler/conf.d/auditor.conf
@@ -9,6 +9,8 @@ DB = postgres
SERVE = unix
UNIXPATH = /var/run/taler/auditor-httpd/auditor.sock
+TINY_AMOUNT = KUDOS:0.01
+
[auditordb-postgres]
CONFIG = postgresql:///auditor
diff --git a/experiment/scripts/auditor.sh b/experiment/scripts/auditor.sh
index d602214..32406d1 100644
--- a/experiment/scripts/auditor.sh
+++ b/experiment/scripts/auditor.sh
@@ -44,24 +44,14 @@ psql postgres -tAc "SELECT 1 FROM pg_roles WHERE
rolname='auditor-ingress'" | \
psql postgres -tAc "SELECT 1 FROM pg_roles WHERE rolname='auditor'" | \
grep -q 1 || \
createuser auditor
-psql postgres -tAc "SELECT 1 FROM pg_roles WHERE rolname='sync'" | \
- grep -q 1 || \
- createuser sync
createdb -O auditor-ingress "exchange-ingress"
createdb -O auditor "auditor"
EOF
su auditor-ingress << EOF
-psql -d exchange-ingress -U auditor-ingress -tAc 'GRANT ALL ON ALL TABLES IN
SCHEMA public TO sync;'
+psql -d exchange-ingress -U auditor-ingress -tAc 'GRANT ALL ON ALL TABLES IN
SCHEMA public TO auditor;'
EOF
-
- # Only needed if we want to repicate this database again
- #
- #createdb -O sync exchange-production
- #createdb -O auditor-wire libeufin
- #psql -d exchange-prodution -U sync -tAc 'GRANT SELECT ON ALL TABLE IN
SCHEMA public TO auditor;'
- #psql -d libeufin -U auditor-wire -tAc 'GRANT SELECT ON ALL TABLE IN SCHEMA
public TO auditor;'
}
function setup_exchange_replication() {
@@ -81,7 +71,9 @@ function setup_exchange_replication() {
DB_USER=egress wait_for_db
su postgres << EOF
- psql -d exchange-ingress -tAc "CREATE SUBSCRIPTION IF NOT EXISTS
${NODE_NAME} CONNECTION
'postgresql://egress:${DB_PASSWORD}@${DB_HOSTS}/${DB_NAME}' PUBLICATION
exchange;"
+ psql -d exchange-ingress -tAc "ALTER SUBSCRIPTION ${NODE_NAME} DISABLE;"
+ psql -d exchange-ingress -tAc "ALTER SUBSCRIPTION ${NODE_NAME} SET
(slot_name=NONE);"
+ psql -d exchange-ingress -tAc "CREATE SUBSCRIPTION ${NODE_NAME} CONNECTION
'postgresql://egress:${DB_PASSWORD}@${DB_HOSTS}/${DB_NAME}' PUBLICATION
exchange;" || true
EOF
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-grid5k] branch master updated (87b3f10 -> 653b702), gnunet, 2022/05/28
- [taler-grid5k] 03/48: nodejs must be installed manually, gnunet, 2022/05/28
- [taler-grid5k] 02/48: nodejs must be installed manually, gnunet, 2022/05/28
- [taler-grid5k] 01/48: add shard user and domain in taler config, gnunet, 2022/05/28
- [taler-grid5k] 05/48: bank log on different port, gnunet, 2022/05/28
- [taler-grid5k] 16/48: auditor added to exchange, gnunet, 2022/05/28
- [taler-grid5k] 04/48: fix permissions, gnunet, 2022/05/28
- [taler-grid5k] 09/48: update dashboards, gnunet, 2022/05/28
- [taler-grid5k] 19/48: logical replication implemented,
gnunet <=
- [taler-grid5k] 06/48: fix promtail, gnunet, 2022/05/28
- [taler-grid5k] 11/48: add auditor config files, gnunet, 2022/05/28
- [taler-grid5k] 08/48: recognize bench3 in promtail, gnunet, 2022/05/28
- [taler-grid5k] 14/48: various fixes for auditor, gnunet, 2022/05/28
- [taler-grid5k] 17/48: update, gnunet, 2022/05/28
- [taler-grid5k] 33/48: update bank, gnunet, 2022/05/28
- [taler-grid5k] 10/48: fix merchant, gnunet, 2022/05/28
- [taler-grid5k] 21/48: update, gnunet, 2022/05/28
- [taler-grid5k] 13/48: fix typo, gnunet, 2022/05/28
- [taler-grid5k] 07/48: drop loglines from fakebank when done, gnunet, 2022/05/28