<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Pgxc_ctl_tutorial</title><link>https://sourceforge.net/p/postgres-xc/xc-wiki/Pgxc_ctl_tutorial/</link><description>Recent changes to Pgxc_ctl_tutorial</description><atom:link href="https://sourceforge.net/p/postgres-xc/xc-wiki/Pgxc_ctl_tutorial/feed" rel="self"/><language>en</language><lastBuildDate>Fri, 27 Jun 2014 02:32:38 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/postgres-xc/xc-wiki/Pgxc_ctl_tutorial/feed" rel="self" type="application/rss+xml"/><item><title>Pgxc_ctl_tutorial modified by Koichi Suzuki</title><link>https://sourceforge.net/p/postgres-xc/xc-wiki/Pgxc_ctl_tutorial/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -31,16 +31,28 @@

 Before you start to configure Postgres-XC cluster, you need to determine several things and make hardware/software ready. 

+#### Postgres-XC component
+
+Postgres-XC database cluster consists of the following components. 
+
+  * gtm  
+gtm stands for "global transaction manager", which provides core of transaction management feature needed to run all the Postgres-XC component in a integrated way. Coordinators and datanodes connect to GTM to run transactions consisitently at different servers. 
+  * gtm_proxy  
+This is a proxy of a connection form coordinators/datanodes to GTM to reduce the amount of interaction and data. 
+  * coordinator  
+This is a connection point to Postgres-XC applications. A coordinator accepts SQL statements from applications, analyze and determines where the data is stored and handles SQL statements to each datanode. You can configure as many coordinators in Postgres-XC. 
+  * datanode  
+This node stores user data Datanode reads its local SQL statements from coordinators and handle them. 
+
 #### How many servers you need?

+If you are just testing Postgres-XC, you need only one server. This can even be a virtual machine. You can run sufficient component on this machine but it's not a good idea to run slave of each components. If you're in this stage, please read this page carefully. Pgxc_ctl will provide configuration file template but it is not suitable for this purpose. You may have to rewrite many of the template to fit to your single-server configuration. 
+
+If you are deploying Postgres-XC for more serious use, you should consider how many servers you need to store your data. [[Scalability|The scalability data of XC] will help to determine this. Additionally, you may want to run GTM at a separate server mainly for availability purpose and you may want another server to run GTM slave for hight availability. 
+
+It is highly advised to install gtm_proxy, coordinator and datanode at the rest of the servers. This simplifies the configuration and maintains worload of each servers nearly even. 
+
 #### Postgres-XC owner and administrator
-
-#### Postgres-XC component
-
-  * gm 
-  * gtm_proxy 
-  * coordinator 
-  * datanode 

 #### Considering HA with slaves

&lt;/pre&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:38 -0000</pubDate><guid>https://sourceforge.netd39c9df2e987a53691803e3bb4d4598d789f0b09</guid></item><item><title>Pgxc_ctl_tutorial modified by Koichi Suzuki</title><link>https://sourceforge.net/p/postgres-xc/xc-wiki/Pgxc_ctl_tutorial/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This page is now under the construction.&lt;/p&gt;
&lt;div class="toc"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#pgxc_ctl-overview"&gt;pgxc_ctl overview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#preparing-pgxc_ctl"&gt;Preparing pgxc_ctl&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#configuring-postgres-xc-step-by-step"&gt;Configuring Postgres-XC step-by-step&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="#before-you-start"&gt;Before you start&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="#how-many-servers-you-need"&gt;How many servers you need?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#postgres-xc-owner-and-administrator"&gt;Postgres-XC owner and administrator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#postgres-xc-component"&gt;Postgres-XC component&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#considering-ha-with-slaves"&gt;Considering HA with slaves&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#resources"&gt;Resources&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#configuring"&gt;Configuring&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;h2 id="pgxc_ctl-overview"&gt;pgxc_ctl overview&lt;/h2&gt;
&lt;h2 id="preparing-pgxc_ctl"&gt;Preparing pgxc_ctl&lt;/h2&gt;
&lt;p&gt;This section describes how to build and install pgxc&amp;gt;ctl. &lt;/p&gt;
&lt;p&gt;First, you need to configure the build options as follows: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;cd&lt;/span&gt; &lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="n"&gt;PGCXSRC&lt;/span&gt;
&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;configure&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;your&lt;/span&gt; &lt;span class="n"&gt;configuration&lt;/span&gt; &lt;span class="n"&gt;options&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;If you've done this to build Postgres-XC binaries, you don't have to do it again. &lt;/p&gt;
&lt;p&gt;Then, build and install pgxc_ctl as follows: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;cd&lt;/span&gt; &lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="n"&gt;PGXCSRC&lt;/span&gt;
&lt;span class="n"&gt;make&lt;/span&gt;
&lt;span class="n"&gt;make&lt;/span&gt; &lt;span class="n"&gt;install&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Simple enough! &lt;/p&gt;
&lt;h2 id="configuring-postgres-xc-step-by-step"&gt;Configuring Postgres-XC step-by-step&lt;/h2&gt;
&lt;h3 id="before-you-start"&gt;Before you start&lt;/h3&gt;
&lt;p&gt;Before you start to configure Postgres-XC cluster, you need to determine several things and make hardware/software ready. &lt;/p&gt;
&lt;h4 id="how-many-servers-you-need"&gt;How many servers you need?&lt;/h4&gt;
&lt;h4 id="postgres-xc-owner-and-administrator"&gt;Postgres-XC owner and administrator&lt;/h4&gt;
&lt;h4 id="postgres-xc-component"&gt;Postgres-XC component&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;gm &lt;/li&gt;
&lt;li&gt;gtm_proxy &lt;/li&gt;
&lt;li&gt;coordinator &lt;/li&gt;
&lt;li&gt;datanode &lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id="considering-ha-with-slaves"&gt;Considering HA with slaves&lt;/h4&gt;
&lt;h4 id="resources"&gt;Resources&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;Directory &lt;/li&gt;
&lt;li&gt;Port &lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="configuring"&gt;Configuring&lt;/h3&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:38 -0000</pubDate><guid>https://sourceforge.net53f7cba29eee0c24ac9a98b04a57fcc0c7304b44</guid></item></channel></rss>