Use oef_test db for AWS load testing
This commit is contained in:
parent
86dc90bc15
commit
359f2957c1
3 changed files with 11 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
RDSHOST="oef-free-tier.cjsemjfwbreb.eu-central-1.rds.amazonaws.com"
|
RDSHOST="oef-micro.cjsemjfwbreb.eu-central-1.rds.amazonaws.com"
|
||||||
TOKEN="$(aws rds generate-db-auth-token --hostname $RDSHOST --port 3306 --region eu-central-1 --username admin)"
|
echo -n Password:
|
||||||
echo $TOKEN
|
read -s password
|
||||||
mysql --host=$RDSHOST --port=3306 --ssl-ca=/sample_dir/rds-combined-ca-bundle.pem --enable-cleartext-plugin --user=admin --password=$TOKEN
|
mysql --host=$RDSHOST --port=3306 --user=admin --password=$password
|
||||||
|
|
6
bash/rds-import.bash
Executable file
6
bash/rds-import.bash
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
RDSHOST="oef-micro.cjsemjfwbreb.eu-central-1.rds.amazonaws.com"
|
||||||
|
echo -n Password:
|
||||||
|
read -s password
|
||||||
|
mysql --host=$RDSHOST --port=3306 --user=admin --password=$password $1 < $2
|
|
@ -9,7 +9,7 @@ keys:
|
||||||
jwt_signing_key: "ytOC>3,"
|
jwt_signing_key: "ytOC>3,"
|
||||||
|
|
||||||
orm:
|
orm:
|
||||||
connection: "admin:remaccio1607@tcp(oef-micro.cjsemjfwbreb.eu-central-1.rds.amazonaws.com:3306)/oef_prod"
|
connection: "admin:remaccio1607@tcp(oef-micro.cjsemjfwbreb.eu-central-1.rds.amazonaws.com:3306)/oef_test"
|
||||||
options: "charset=utf8&parseTime=True&loc=Local"
|
options: "charset=utf8&parseTime=True&loc=Local"
|
||||||
automigrate: true
|
automigrate: true
|
||||||
reset: false
|
reset: false
|
||||||
|
|
Loading…
Reference in a new issue