Quantcast
Channel: Question and Answer » postgresql
Viewing all articles
Browse latest Browse all 1138

Are my queries to Postgresql hot spare actually being handled there?

$
0
0

I have master and minion database servers each running Arch Linux, with the latter acting as a hot spare database with replication. I wrote a service that is supposed to check whether the replication is working, which works by making SELECT queries to each and comparing the results. As part of my test to see if that service is working, I run systemctl stop postgresql.service on the hot spare and check to see whether my service alerts me that replication is failing. I created an instance of the (RoR) service in the console, which prints the results of its queries on each server. From this, I can see that the hot spare continues to have as many records as the master, so either replication is still working despite postgresql.service being stopped, or (it occurred to me) the queries that I think are taking place on the hot spare are actually being forwarded to the master or something like that. Is that possible?


Viewing all articles
Browse latest Browse all 1138

Trending Articles