|
|
@ -50,6 +50,8 @@ Data Node: 40001-40003, 41001-41003
|
|
|
|
-A INPUT -p tcp --dest 10.53.1.0/24 --dport 41002 -j ACCEPT
|
|
|
|
-A INPUT -p tcp --dest 10.53.1.0/24 --dport 41002 -j ACCEPT
|
|
|
|
-A INPUT -p tcp --dest 10.53.1.0/24 --dport 41003 -j ACCEPT
|
|
|
|
-A INPUT -p tcp --dest 10.53.1.0/24 --dport 41003 -j ACCEPT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Meh, open it wide:
|
|
|
|
|
|
|
|
-A INPUT -p tcp --dest 10.53.1.0/24 -j ACCEPT
|
|
|
|
|
|
|
|
|
|
|
|
# Set up SSH between hosts
|
|
|
|
# Set up SSH between hosts
|
|
|
|
|
|
|
|
|
|
|
@ -70,7 +72,7 @@ Git (better):
|
|
|
|
git clone https://git.postgresql.org/git/postgres-xl.git
|
|
|
|
git clone https://git.postgresql.org/git/postgres-xl.git
|
|
|
|
|
|
|
|
|
|
|
|
# Install Dependencies
|
|
|
|
# Install Dependencies
|
|
|
|
apt install build-essential bison flex libreadline-dev zlib1g-dev
|
|
|
|
apt install build-essential bison flex libreadline-dev zlib1g-dev pbzip2
|
|
|
|
|
|
|
|
|
|
|
|
# Build
|
|
|
|
# Build
|
|
|
|
git checkout remotes/origin/XL_10_STABLE
|
|
|
|
git checkout remotes/origin/XL_10_STABLE
|
|
|
@ -161,6 +163,10 @@ datanodePgHbaEntries=(127.0.0.1/32 10.53.1.0/24)
|
|
|
|
XXX Set up slaves/proxies
|
|
|
|
XXX Set up slaves/proxies
|
|
|
|
|
|
|
|
|
|
|
|
pgxc_ctl add gtm master gtm_1 pg-pgxl-gtm-1 20001 "$XLDIR/gtm-1"
|
|
|
|
pgxc_ctl add gtm master gtm_1 pg-pgxl-gtm-1 20001 "$XLDIR/gtm-1"
|
|
|
|
|
|
|
|
pgxc_ctl add gtm master gtm_2 pg-pgxl-gtm-2 20002 "$XLDIR/gtm-2"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pgxc_ctl add gtm_proxy proxy_1 pg-pgxl-proxy-1 20010 "$XLDIR/proxy-1"
|
|
|
|
|
|
|
|
|
|
|
|
XXX pgxc_ctl add gtm slave gtm_2 pg-pgxl-gtm-2 20002 "$XLDIR/gtm-2"
|
|
|
|
XXX pgxc_ctl add gtm slave gtm_2 pg-pgxl-gtm-2 20002 "$XLDIR/gtm-2"
|
|
|
|
XXX pgxc_ctl add gtm_proxy gtm_2 pg-pgxl-gtm-2 20003 "$XLDIR/gtm-3"
|
|
|
|
XXX pgxc_ctl add gtm_proxy gtm_2 pg-pgxl-gtm-2 20003 "$XLDIR/gtm-3"
|
|
|
|
|
|
|
|
|
|
|
@ -188,3 +194,12 @@ sudo su - postgres
|
|
|
|
psql -p 40001
|
|
|
|
psql -p 40001
|
|
|
|
\l
|
|
|
|
\l
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# MISC FIXES/TUNING
|
|
|
|
|
|
|
|
in /usr/local/pgsql/[data|gtm|coord]/postgresql.conf
|
|
|
|
|
|
|
|
Set max connections from 100 to 1000.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LOCATION: StreamConnection, /home/jebba/devel/postgres-xl/build_dir/../src/gtm/libpq/pqcomm.c:351
|
|
|
|
|
|
|
|
25497:3689674496:2018-11-27 13:55:47.067 MST -LOG: could not accept new connection: Too many open files
|
|
|
|
|
|
|
|
|
|
|
|