diff options
author | Michael P | 2011-06-29 23:40:18 +0000 |
---|---|---|
committer | Michael P | 2011-06-29 23:40:18 +0000 |
commit | 9cf414760f30f6fb377f47ced0d0315460bf85a7 (patch) | |
tree | 8a7e5369c07c1c721d83b18752037f96b773b8f0 /src/backend/access/gist/gistget.c | |
parent | bc0decce1cb03d4f645f38bb61c7f73b16445fcb (diff) |
Support for GTM-Standby
GTM is the unique SPOF of Postgres-XC cluster.
This commit adds support for the creation of a Standby node related
to GTM to which it is possible to perform a failover in case of
a GTM failure.
GTM standby supports only serializable transactions and is not able
to keep consistent transaction IDs on both GTM and standby when
running transactions in parallel.
This commits adds 3 options for GTM at startup:
- s, to indicate if GTM instance is a standby or not
- i, to indicate host/IP of GTM to connect to
- q, to indicate port number of GTM to connect to
An example of standby startup command:
gtm -D $STANDBY_DATA -l $LOG_DATA/standbylog -p $STANDBY_PORT
-i $GTM_HOST -q $GTM_PORT -s -n 2 &
Two additional keywords have been added in gtm_ctl:
- promote, to promote a GTM-Standby to be a GTM
- status, to look if a GTM instance is active or standby
Ex:
gtm_ctl status -S gtm -D $STANDBY_DATA
gtm_ctl promote -S gtm -D $STANDBY_DATA
Former implementation by Satoshi Nagayasu and Koichi Suzuki.
Cleanup and some code refactoring by me.
Diffstat (limited to 'src/backend/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions