File tree Expand file tree Collapse file tree
build_automation/gpdb/scripts
images/docker/gpdb/build/jammy/configs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ init_environment "Greenplum Demo Cluster Script" "${CLUSTER_LOG}" "/opt/greenplu
8383# Setup environment
8484log_section " Environment Setup"
8585source /opt/greenplum-db-6/greenplum_path.sh || exit 1
86+ execute_cmd ulimit -n 65536 || exit 1
8687log_section_end " Environment Setup"
8788
8889# # Verify SSH access
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ echo "PGOPTIONS: ${PGOPTIONS}"
7979
8080# Execute specified target
8181log_section " Install Check"
82+ execute_cmd make install -C src/test/regress || exit 2
8283execute_cmd make ${MAKE_TARGET} ${MAKE_DIRECTORY} || exit 2
8384log_section_end " Install Check"
8485
Original file line number Diff line number Diff line change @@ -21,6 +21,47 @@ ssh-add ~/.ssh/id_rsa
2121sudo service ssh start
2222ssh -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# --------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments