Skip to content

Commit 21d413c

Browse files
authored
SQL resource optimization (#606)
1 parent 45aca90 commit 21d413c

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

api/src/main/resources/application.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@ spring:
66
hikari:
77
pool-name: educ-grad-batch-graduation-api-cp
88
maximum-pool-size: ${MAXIMUM_POOL_SIZE}
9-
connection-timeout: ${CONNECTION_TIMEOUT}
109
max-lifetime: ${MAX_LIFETIME}
11-
minimum-idle: ${MIN_IDLE}
12-
idle-timeout: ${IDLE_TIMEOUT}
1310
url: ${CONNECTION_STRING}
1411
username: ${USERNAME}
1512
password: ${PASSWORD}
16-
driver-class-name: oracle.jdbc.driver.OracleDriver
1713
jpa:
1814
show-sql: ${SHOW_SQL_LOGS}
1915
database-platform: org.hibernate.dialect.OracleDialect

tools/config/update-configmap.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,8 @@ oc create -n "$OPENSHIFT_NAMESPACE"-"$envValue" configmap "$APP_NAME"-config-map
6969
--from-literal=KEYCLOAK_TOKEN_URL="https://soam-$envValue.apps.silver.devops.gov.bc.ca/" \
7070
--from-literal=REG_ALG_CRON="0 30 18 * * *" \
7171
--from-literal=RECORDS_STALE_IN_DAYS="1095" \
72-
--from-literal=CONNECTION_TIMEOUT='30000' \
7372
--from-literal=MAXIMUM_POOL_SIZE='25' \
74-
--from-literal=MIN_IDLE='25' \
75-
--from-literal=IDLE_TIMEOUT='300000' \
76-
--from-literal=MAX_LIFETIME='1500000' \
73+
--from-literal=MAX_LIFETIME='300000' \
7774
--from-literal=ENABLE_COMPRESSION="true" \
7875
--dry-run=client -o yaml | oc apply -f -
7976

0 commit comments

Comments
 (0)