<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to GTM_Standby_Configuration</title><link>https://sourceforge.net/p/postgres-xc/xc-wiki/GTM_Standby_Configuration/</link><description>Recent changes to GTM_Standby_Configuration</description><atom:link href="https://sourceforge.net/p/postgres-xc/xc-wiki/GTM_Standby_Configuration/feed" rel="self"/><language>en</language><lastBuildDate>Fri, 27 Jun 2014 02:32:07 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/postgres-xc/xc-wiki/GTM_Standby_Configuration/feed" rel="self" type="application/rss+xml"/><item><title>GTM_Standby_Configuration modified by Koichi Suzuki</title><link>https://sourceforge.net/p/postgres-xc/xc-wiki/GTM_Standby_Configuration/</link><description>&lt;div class="markdown_content"&gt;&lt;h2 id="draft"&gt;(Draft)&lt;/h2&gt;
&lt;h2 id="what-is-gtm-standby"&gt;What is GTM standby&lt;/h2&gt;
&lt;p&gt;GTM is Postgres-XC's central component which provides MVCC (multi-version concurrent control) information and sequence information to all the Postgres-XC transaction to implement single database view. Postgres-XC assumes that GTM is running and GTM crash leads to whole XC cluster crash. Because GTM provides tens of thousands of MVCC information per second, it is not practical to make static backup of GTM status used in the failover. &lt;/p&gt;
&lt;p&gt;GTM standby usually runs on different server and backs up all the status change in GTM and maintains copy of GTM status for the failover. For the test or for your experience, GTM standby can run on the same server though. This page describes how to configure GTM standby and how it can be failed over when the master GTM crashes. &lt;/p&gt;
&lt;p&gt;You should be familiar with GTM configuration. Plase visit &lt;span&gt;[Real_Server_Configuration]&lt;/span&gt; and &lt;span&gt;[Configure_Server_GTM]&lt;/span&gt; pages to learn this. All the configurations here are based upon these pages. Please note that GTM standby assumes Postgres-XC is configured with GTM proxy to handle GTM failover. &lt;/p&gt;
&lt;h2 id="gtm-standby-configuration"&gt;GTM standby configuration&lt;/h2&gt;
&lt;p&gt;Here, we're going to configure GTM standby as follows: &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Server: runs on the server node04 &lt;/li&gt;
&lt;li&gt;Port: uses the port 20001 &lt;/li&gt;
&lt;li&gt;Nodename: gtm (same as Master GTM) --&amp;gt; &lt;em&gt;Need to test of this is okay!!&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Working directory: /home/postgresxc/pgxc/gtm &lt;/li&gt;
&lt;li&gt;Master GM server: master GTM runs on the server node03 (&lt;span&gt;[Real_Server_Configuration]&lt;/span&gt;) &lt;/li&gt;
&lt;li&gt;Master GTM server port: 20001 &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;4 and 5 are taken from the fundamental configuration we've used in basic XC configuration. &lt;/p&gt;
&lt;p&gt;To configure the above GTM standby, do as follows: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;main&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="err"&gt;$&lt;/span&gt; &lt;span class="n"&gt;ssh&lt;/span&gt; &lt;span class="n"&gt;node04&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;node04&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="err"&gt;$&lt;/span&gt; &lt;span class="n"&gt;initgtm&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;Z&lt;/span&gt; &lt;span class="n"&gt;gtm&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;D&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;home&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;postgresxc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;pgxc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;gtm&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;node04&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="err"&gt;$&lt;/span&gt; &lt;span class="n"&gt;cat&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;gt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;gt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;home&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;postgresxc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;pgxc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;gtm&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;gtm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;conf&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Koichi Suzuki</dc:creator><pubDate>Fri, 27 Jun 2014 02:32:07 -0000</pubDate><guid>https://sourceforge.net4607eda6f9f0bac06cdd5b1446401a4d4a577ef0</guid></item></channel></rss>