Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
artemtech authored Apr 18, 2024
1 parent c007cb2 commit 1446f66
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# flask-pgsqlcheck
flask version of xinetd for pgsqlcheck
flask version of xinetd for pgsqlcheck.
The idea is we run query to postgres `select pg_is_in_recovery()`. This query will return true or false.
So, if it is true, then our instance is standby node, otherwise it is primary node. If the node is unreachable, then it will marked as DOWN.
This script is suitable for creating high-availability postgresql behind haproxy.

## Build docker image
```
Expand Down

0 comments on commit 1446f66

Please sign in to comment.