安装介质:
greenplum-db-5.17.0-rhel6-x86_64.zip
地址:
https://network.pivotal.io/products/pivotal-gpdb#/releases/301769/file_groups/1397
有二进制安装包和RPM安装包,我这里选择二进制安装包来安装
机器规划(一个主节点,三个数据节点):
192.168.11.210 mdw
192.168.11.211 sdw1
192.168.11.212 sdw2
192.168.11.213 sdw3
1,禁用防火墙和selinux
service iptables stop
chkconfig iptables off
vi /etc/selinux/config
selinux=disabled
2,配置内核参数
配置内核参数文件:
vi /etc/sysctl.conf
kernel.shmmax = 500000000
kernel.shmmni = 4096
kernel.shmall = 4000000000
kernel.sem = 500 1024000 200 4096
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 = 10000 65535
net.core.netdev_max_backlog = 10000
net.core.rmem_max = 2097152
net.core.wmem_max = 2097152
vm.overcommit_memory = 2
vm.swappiness = 10
vm.dirty_expire_centisecs = 500
vm.dirty_writeback_centisecs = 100
vm.dirty_background_ratio = 0
vm.dirty_ratio=0
vm.dirty_background_bytes = 1610612736
vm.dirty_bytes = 4294967296
执行sysctl -p使内核参数生效
3,配置资源限制参数
vi /etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
* soft nproc 131072
* hard nproc 131072
4,文件系统格式
文件系统格式推荐使用XFS
5,配置磁盘文件预读参数
推荐配置为16384
获取当前值:/sbin/blockdev --getra /dev/sda
设置新值:/sbin/blockdev --setra 16384 /dev/sda
6,配置磁盘I/O调度策略
推荐设置成deadline模式,有两种设置方法
方法一:
echo deadline /sys/block/sda/queue/scheduler
重启之