export PIPEDREAM_LOAD_TESTING__POSTGRES__DATABASE_NAME="pipedream_accounting"
export PIPEDREAM_LOAD_TESTING__POSTGRES__HOST="internal-postgres.cp4rxnpmuhoe.us-west-1.rds.amazonaws.com"
export PIPEDREAM_LOAD_TESTING__POSTGRES__PASSWORD="$(vault read -field=value secret/pipedream/accounting/production-us-west-1/postgres_password)"
export PIPEDREAM_LOAD_TESTING__POSTGRES__USERNAME="pipedream_accounting"
export PIPEDREAM_LOAD_TESTING__ES__HOST="https://search-pipedream-production-p6ky3lun6ce7nrodlsaoiys4la.us-west-2.es.amazonaws.com"

bazel run //pipedream/load_test_harness/pipeline_scheduler:pipedream_load_test_harness  -- \
--accounting-db-host=$PIPEDREAM_LOAD_TESTING__POSTGRES__HOST \
--accounting-db-user=$PIPEDREAM_LOAD_TESTING__POSTGRES__USERNAME \
--accounting-db-name=$PIPEDREAM_LOAD_TESTING__POSTGRES__DATABASE_NAME \
--accounting-db-password=$PIPEDREAM_LOAD_TESTING__POSTGRES__PASSWORD \
--accounting-db-port=5432 \
--accounting-db-page-size=250 \
--es-host=$PIPEDREAM_LOAD_TESTING__ES__HOST \
--start-date="$START_DATE" \
--end-date="$END_DATE"
