Increase replication threshold to 5 for 9 subscriptions

This commit is contained in:
2026-06-08 14:44:42 +02:00
parent a7c775a27b
commit 513d885792
+1 -1
View File
@@ -23,7 +23,7 @@ while ($true) {
$sshKey = "C:\lexware-db-connect\ssh\id_rsa" $sshKey = "C:\lexware-db-connect\ssh\id_rsa"
$result = & ssh -i $sshKey -o StrictHostKeyChecking=no -o ConnectTimeout=5 root@192.168.115.113 ` $result = & ssh -i $sshKey -o StrictHostKeyChecking=no -o ConnectTimeout=5 root@192.168.115.113 `
"sudo -u postgres psql -d f1 -tAc 'SELECT COUNT(*) FROM pg_stat_subscription WHERE received_lsn IS NOT NULL;' 2>/dev/null" "sudo -u postgres psql -d f1 -tAc 'SELECT COUNT(*) FROM pg_stat_subscription WHERE received_lsn IS NOT NULL;' 2>/dev/null"
$replOk = ([int]($result.Trim()) -ge 4) $replOk = ([int]($result.Trim()) -ge 5)
} catch {} } catch {}
if ($replOk) { if ($replOk) {