diff --git a/content/chinese/news/images/news-post-17-1.png b/content/chinese/news/images/news-post-17-1.png new file mode 100644 index 0000000..22e82ff Binary files /dev/null and b/content/chinese/news/images/news-post-17-1.png differ diff --git a/content/chinese/news/news-post-17.md b/content/chinese/news/news-post-17.md index a2411eb..981b40b 100644 --- a/content/chinese/news/news-post-17.md +++ b/content/chinese/news/news-post-17.md @@ -146,190 +146,189 @@ chown -R opentenbase:opentenbase data/opentenbase 各个节点的配置方案如下 -![](https://oss-emcsprod-public.modb.pro/image/auto/modb_20240920_63647f48-7712-11ef-926c-fa163eb4f6be.png) +
\*接下来的操作在单个节点192.168.56.101上即可 ● 创建pgxc\_ctl\_cluster.conf文件,保存到/home/opentenbase/pgxc\_ctl\_cluster.conf - -`#!/bin/bash -# Cluster Configuration - -IP_1=192.168.56.101 -IP_2=192.168.56.102 - -pgxcInstallDir=/opt/opentenbase -pgxcOwner=opentenbase -defaultDatabase=postgres -pgxcUser=$pgxcOwner -tmpDir=/tmp -localTmpDir=$tmpDir -configBackup=n -configBackupHost=pgxc-linker -configBackupDir=$HOME/pgxc -configBackupFile=pgxc_ctl.bak - -#---- GTM ---------- -gtmName=gtm -gtmMasterServer=$IP_1 -gtmMasterPort=5000 -gtmMasterDir=/data/opentenbase/cluster/gtm -gtmExtraConfig=none -gtmMasterSpecificExtraConfig=none -gtmSlave=y -# 新增,否则slave配置中为null -gtmSlaveName=gtm-slave -gtmSlaveServer=$IP_2 -gtmSlavePort=5000 -gtmSlaveDir=/data/opentenbase/cluster/gtm -gtmSlaveSpecificExtraConfig=none - -#---- Coordinators ------- -coordMasterDir=/data/opentenbase/cluster/cn -coordArchLogDir=/data/opentenbase/cluster/cn_archlog - -coordNames=(cn01 cn02) -coordPorts=(30000 30000) -poolerPorts=(31110 31110) -coordPgHbaEntries=(0.0.0.0/0) -coordMasterServers=($IP_1$IP_2) -coordMasterDirs=($coordMasterDir$coordMasterDir) -coordMaxWALsernder=2 -coordMaxWALSenders=($coordMaxWALsernder$coordMaxWALsernder) -coordSlave=y -coordSlaveSync=y -coordArchLogDirs=($coordArchLogDir$coordArchLogDir) - -coordExtraConfig=coordExtraConfig -cat > $coordExtraConfig < $coordExtraPgHba < $datanodeExtraConfig < $datanodeExtraPgHba < $coordExtraConfig < $coordExtraPgHba < $datanodeExtraConfig < $datanodeExtraPgHba <