Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.04 KB

localhost-cluster.md

File metadata and controls

34 lines (23 loc) · 1.04 KB

Creating a Localhost Cluster

Prerequisites

  • Install the CLI and make sure you look at the pre-reqs there & get both password-less ssh and passwordless sudo to localhost working first.

Create a localhost pgEdge cluster

./pgedge localhost cluster-create --name cl1 --nodes 2  --port1 6432

The above command creates the cl1 localhost 2 node cluster with node n1 on port 6432 and n2 on port 6433.

Install the Northwind app and

You can install the Northwind database on this localhost cluster with the following command:

./pgedge cluster app-install cl1 northwind

the app-install for northwind echo's out all the configuration commands done on each node

Use ACE to ensure tables are in sync

./pgedge ace table-diff cl1 northwind.accounts

You can easily issue CLI commands or SQL commands on any (or all) nodes

  ./pgedge cluster command cl1 n1 info
  ./pgedge cluster command cl1 all info