Increase replication threshold to 5 for 9 subscriptions
This commit is contained in:
+1
-1
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user