失效链接处理 |
GreenPlum安装、扩容、缩容、HA实践手册 PDF 下载
本站整理下载:
相关截图:
主要内容:
1 GreenPlum 的安装
计划在 VM 虚拟机中安装如下的节点:先安装前 3 台。其余后续再扩容安装。
IP 地址 主机名称 备注
10.75.5.110 gpmaster Master 节点
10.75.5.111 segment1 Segment 节点
10.75.5.112 segment2 Segment 节点
10.75.5.113 segment3 Segment 节点-暂不安装
10.75.5.114 segment4 Segment 节点-暂不安装
10.75.5.109 standbymaster StandbyMaster 节点-暂不安
装
1.1 修改 hostname
修改:/etc/sysconfig/network,增加主机名称
NETWORKING=yes
HOSTNAME=gpmaster
1.2 修改 etc/hosts 文件
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.72.5.110 gpmaster
10.72.5.111 segment1
10.72.5.112 segment2
1.3 关闭防火墙
关闭防火墙,或者开启也可以,开启需求配置 GP 更多东西。但是建议关闭防火墙。
root 用户执行如下命令,检查防火墙状态:
/sbin/chkconfig --list iptables
关闭防火墙:
/sbin/chkconfig iptables off
1.4 修改系统内存参数/etc/sysctl.conf
设置系统参数,vi /etc/sysctl.conf
kernel.shmmax = 500000000
kernel.shmmni = 4096
kernel.shmall = 4000000000
kernel.sem = 250 512000 100 2048
更多 IT 认证课程请访问 美河学习在线 www.eimhe.com
kernel.sysrq = 1
kernel.core_uses_pid = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.msgmni = 2048
net.ipv4.tcp_syncookies = 1
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.conf.all.arp_filter = 1
net.ipv4.ip_local_port_range = 1025 65535
net.core.netdev_max_backlog = 10000
net.core.rmem_max = 2097152
net.core.wmem_max = 2097152
vm.overcommit_memory = 2
用下面的参数也可也。
#for greenplum begin
xfs_mount_options = rw,noatime,inode64,allocsize=16m
kernel.shmmax = 500000000
kernel.shmall = 4000000000
kernel.shmmni = 4096
kernel.sem = 250 512000 100 2048
kernel.sysrq = 1
kernel.core_uses_pid = 1
kernel.msgmni = 2048
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.conf.all.arp_filter = 1
net.ipv4.ip_local_port_range = 1025 65535
net.core.netdev_max_backlog = 10000
vm.overcommit_memory = 2
#for greenplum end
|