github.com/greenplum-db/gpbackup@v0.0.0-20240517212602-89daab1885b3/ci/scripts/ddboost-plugin-perf.bash (about) 1 #!/bin/bash 2 3 set -ex 4 5 . gpbackup/ci/scripts/setup-perf.bash 6 7 cat <<SCRIPT > /tmp/run_perf.bash 8 #!/bin/bash 9 10 set -e 11 source env.sh 12 13 # important: whitespace of yaml below is critical, do not change it 14 cat << CONFIG > \${HOME}/ddboost_config.yaml 15 executablepath: \${GPHOME}/bin/gpbackup_ddboost_plugin 16 options: 17 hostname: ${DD_SOURCE_HOST} 18 username: ${DD_USER} 19 storage_unit: GPDB 20 directory: gpbackup_tests${GPDB_VERSION} 21 replication: "off" 22 replication_streams: 10 23 pgport: 5432 24 password: ${DD_PW} 25 remote_hostname: ${DD_DEST_HOST} 26 remote_username: ${DD_USER} 27 remote_storage_unit: GPDB 28 remote_directory: gpbackup_tests${GPDB_VERSION} 29 remote_password: ${DD_ENCRYPTED_PW} 30 remote_password_encryption: "on" 31 gpbackup_ddboost_plugin: 66706c6c6e677a6965796f68343365303133336f6c73366b316868326764 32 CONFIG 33 34 # important: whitespace of yaml below is critical, do not change it 35 cat << CONFIG > \${HOME}/ddboost_config_replication.yaml 36 executablepath: \${GPHOME}/bin/gpbackup_ddboost_plugin 37 options: 38 hostname: ${DD_SOURCE_HOST} 39 username: ${DD_USER} 40 storage_unit: GPDB 41 directory: gpbackup_tests${GPDB_VERSION} 42 replication: "on" 43 pgport: 5432 44 password: ${DD_PW} 45 remote_hostname: ${DD_DEST_HOST} 46 remote_username: ${DD_USER} 47 remote_storage_unit: GPDB 48 remote_directory: gpbackup_tests${GPDB_VERSION} 49 remote_password: ${DD_ENCRYPTED_PW} 50 remote_password_encryption: "on" 51 gpbackup_ddboost_plugin: 66706c6c6e677a6965796f68343365303133336f6c73366b316868326764 52 CONFIG 53 54 pushd \${GOPATH}/src/github.com/greenplum-db/gpbackup/plugins 55 ./plugin_test_scale.sh \${GPHOME}/bin/gpbackup_ddboost_plugin \${HOME}/ddboost_config.yaml 56 ./plugin_test_scale.sh \${GPHOME}/bin/gpbackup_ddboost_plugin \${HOME}/ddboost_config_replication.yaml 57 popd 58 59 SCRIPT 60 61 chmod +x /tmp/run_perf.bash 62 scp /tmp/run_perf.bash cdw: 63 ssh -t cdw "/home/gpadmin/run_perf.bash" 64 ssh -t cdw "source env.sh && dropdb tpchdb"