Menu

Configure_Datanodes

Koichi Suzuki

What we've determined

As in [Laptop_Configuration], we've assigned the following:

  1. Work directory: /home/postgresxc/pgxc/datanode1 and /home/postgresxc/pgxc/datanode2
  2. Node name: datanode1 and datanode2
  3. Port number: 20006 and 20007
  4. GTM port: 20001

The configuration is very similar to GTM configuration. Now configure datanode1 first and datanode2.

You can create the template of coord1 as follows:

$ initdb --nodename=databide1 -D /home/postgresxc/pgxc/databide1
$

Please note that we specify the node name here. Then you configure coord1 like:

$ cat >> /home/postgresxc/pgxc/datanode1/postgresql.conf

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.