From 371d80ff356a23b82d30f12c515c9f40b1984bf5 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Mon, 1 Aug 2016 16:10:10 +0900 Subject: [PATCH] Document `repmgr cluster show --csv` --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 841bfc87..3185074c 100644 --- a/README.md +++ b/README.md @@ -1416,6 +1416,18 @@ which contains connection details for the local database. To show database connection errors when polling nodes, run the command in `--verbose` mode. + The `cluster show` command now accepts the optional parameter `--csv`, which + outputs the replication cluster's status in a simple CSV format, suitable for + parsing by scripts: + + $ repmgr -f /etc/repmgr.conf cluster show --csv + 1,-1 + 2,0 + 3,1 + + The first column is the node's ID, and the second column represents the + node's status (0 = master, 1 = standby, -1 = failed). + * `cluster cleanup` Purges monitoring history from the `repl_monitor` table to prevent excessive @@ -1494,5 +1506,6 @@ Thanks from the repmgr core team. Further reading --------------- +* http://blog.2ndquadrant.com/improvements-in-repmgr-3-1-4/ * http://blog.2ndquadrant.com/managing-useful-clusters-repmgr/ * http://blog.2ndquadrant.com/easier_postgresql_90_clusters/