Skip to content

Commit ee4cf41

Browse files
authored
Update conf files in init_system.sh (#26)
* Add ulimit -n 65536 to create cluster script * Add additional confs * Add make install regess for all tests as step
1 parent 10170ad commit ee4cf41

3 files changed

Lines changed: 43 additions & 0 deletions

File tree

build_automation/gpdb/scripts/create-gpdb-demo-cluster.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ init_environment "Greenplum Demo Cluster Script" "${CLUSTER_LOG}" "/opt/greenplu
8383
# Setup environment
8484
log_section "Environment Setup"
8585
source /opt/greenplum-db-6/greenplum_path.sh || exit 1
86+
execute_cmd ulimit -n 65536 || exit 1
8687
log_section_end "Environment Setup"
8788

8889
# # Verify SSH access

build_automation/gpdb/scripts/test-gpdb.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ echo "PGOPTIONS: ${PGOPTIONS}"
7979

8080
# Execute specified target
8181
log_section "Install Check"
82+
execute_cmd make install -C src/test/regress || exit 2
8283
execute_cmd make ${MAKE_TARGET} ${MAKE_DIRECTORY} || exit 2
8384
log_section_end "Install Check"
8485

images/docker/gpdb/build/jammy/configs/init_system.sh

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,47 @@ ssh-add ~/.ssh/id_rsa
2121
sudo service ssh start
2222
ssh -o StrictHostKeyChecking=no gpadmin@$(hostname) "echo 'Hello world'"
2323

24+
# --------------------------------------------------------------------
25+
# Configure limits
26+
# --------------------------------------------------------------------
27+
sudo bash -c 'cat >> /etc/ld.so.conf <<-EOF
28+
/usr/local/lib
29+
30+
EOF'
31+
sudo ldconfig
32+
33+
sudo bash -c 'cat >> /etc/sysctl.conf <<-EOF
34+
kernel.shmmax = 500000000
35+
kernel.shmmni = 4096
36+
kernel.shmall = 4000000000
37+
kernel.sem = 500 1024000 200 4096
38+
kernel.sysrq = 1
39+
kernel.core_uses_pid = 1
40+
kernel.msgmnb = 65536
41+
kernel.msgmax = 65536
42+
kernel.msgmni = 2048
43+
net.ipv4.tcp_syncookies = 1
44+
net.ipv4.ip_forward = 0
45+
net.ipv4.conf.default.accept_source_route = 0
46+
net.ipv4.tcp_tw_recycle = 1
47+
net.ipv4.tcp_max_syn_backlog = 4096
48+
net.ipv4.conf.all.arp_filter = 1
49+
net.ipv4.ip_local_port_range = 1025 65535
50+
net.core.netdev_max_backlog = 10000
51+
net.core.rmem_max = 2097152
52+
net.core.wmem_max = 2097152
53+
vm.overcommit_memory = 2
54+
55+
EOF'
56+
57+
sudo bash -c 'cat >> /etc/security/limits.conf <<-EOF
58+
* soft nofile 65536
59+
* hard nofile 65536
60+
* soft nproc 131072
61+
* hard nproc 131072
62+
63+
EOF'
64+
2465
# --------------------------------------------------------------------
2566
# Display a Welcome Banner
2667
# --------------------------------------------------------------------

0 commit comments

Comments
 (0)