Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ID-893 Sam Read Replicas #1227

Merged
merged 1 commit into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion env/local.env
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export OIDC_AUTHORITY_ENDPOINT="https://terradevb2c.b2clogin.com/terradevb2c.onm
export OPENCENSUS_SAMPLING_PROBABILITY=0
export OPENCENSUS_STACKDRIVER_ENABLED="false"
export POSTGRES_PASSWORD="sam-test"
export POSTGRES_URL="jdbc:postgresql://localhost:5432/testdb"
export POSTGRES_READ_URL="jdbc:postgresql://localhost:5432/testdb"
export POSTGRES_WRITE_URL="jdbc:postgresql://localhost:5432/testdb"
export POSTGRES_USERNAME="sam-test"
export SAM_PEM_PATH="src/main/resources/rendered/sam-account.pem"
export SAM_SA_PATH="src/main/resources/rendered/sam-account.json"
Expand Down
3 changes: 2 additions & 1 deletion env/test.env
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export OIDC_AUTHORITY_ENDPOINT="https://terradevb2c.b2clogin.com/terradevb2c.onm
export OPENCENSUS_SAMPLING_PROBABILITY=0
export OPENCENSUS_STACKDRIVER_ENABLED="false"
export POSTGRES_PASSWORD="sam-test"
export POSTGRES_URL="jdbc:postgresql://localhost:5432/testdb"
export POSTGRES_READ_URL="jdbc:postgresql://localhost:5432/testdb"
export POSTGRES_WRITE_URL="jdbc:postgresql://localhost:5432/testdb"
export POSTGRES_USERNAME="sam-test"
export SAM_PEM_PATH="src/main/resources/rendered/sam-account.pem"
export SAM_SA_PATH="src/main/resources/rendered/sam-account.json"
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/sam.conf
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ db {
poolMaxSize = 8
poolConnectionTimeoutMillis = 5000
driver = "org.postgresql.Driver"
url = ${?POSTGRES_URL}
url = ${?POSTGRES_READ_URL}
user = ${?POSTGRES_USERNAME}
password = ${?POSTGRES_PASSWORD}
}
Expand All @@ -145,7 +145,7 @@ db {
# Changes to this value should be reflected in liquibase.properties
driver = "org.postgresql.Driver"
# Changes to this value should be reflected in liquibase.properties
url = ${?POSTGRES_URL}
url = ${?POSTGRES_WRITE_URL}
user = ${?POSTGRES_USERNAME}
password = ${?POSTGRES_PASSWORD}
}
Expand All @@ -158,7 +158,7 @@ db {
poolMaxSize = 5
poolConnectionTimeoutMillis = 5000
driver = "org.postgresql.Driver"
url = ${?POSTGRES_URL}
url = ${?POSTGRES_WRITE_URL}
user = ${?POSTGRES_USERNAME}
password = ${?POSTGRES_PASSWORD}
}
Expand Down
Loading